Libre RISC-V Mailing list Archives (accessible via public-inbox)
 help / color / Atom feed
From: bugzilla-daemon@libre-riscv.org
To: libre-riscv-dev@lists.libre-riscv.org
Subject: [libre-riscv-dev] [Bug 257] Implement demo Load/Store queueing algorithm
Date: Fri, 20 Mar 2020 19:53:41 +0000
Message-ID: <bug-257-13-ajVraMvO0w@http.bugs.libre-riscv.org/> (raw)
In-Reply-To: <bug-257-13@http.bugs.libre-riscv.org/>

http://bugs.libre-riscv.org/show_bug.cgi?id=257

--- Comment #7 from Luke Kenneth Casson Leighton <lkcl@lkcl.net> ---
(In reply to Jacob Lifshay from comment #6)
> Was assuming that the L1 cache has a single cache-line-sized R or W port,
> though having 2 ports makes it even better.

here's the code i'd like to drop-in-place (literally), i.e. just use it.

https://git.libre-riscv.org/?p=soc.git;a=blob;f=src/soc/minerva/units/loadstore.py;hb=HEAD

that's already set up for "masking" - bear in mind it's only 32-bit-wide
so the x_mask signal is only 4 bits: we need to expand that to 16-bits
and it will fit perfectly with the 16-bit "mask" from the PartialAddressBitmap
class.

so the other end of the interface, jacob, is the LoadStoreUnitInterface.  a
test can be written which bypasses the cache, for now, to make life a bit
simpler.



> Remember that we probably want another cache-line-sized port for
> communication with the L2 and the rest of the SoC.

one step at a time :)

wait... ahh... everything memory-wise goes through the L1 cache. the cores are
"slaves" of the wishbone bus (not masters).  all communication is done by way
of memory-addressing (all peripherals are memory-addressable).

even "management" of the L2 cache (and L1 "flush" commands) etc. should ideally
be done by way of memory-addressable "registers".

or, we have a special side-channel wishbone bus that communicates "messages". 
basically drops a pre-determined data structure (a nmigen Record) onto the
side-channel WB bus at a known "address", it gets routed to where is needed,
and the recipient decodes it as "commands".

but as far as communication with periherals is concerned, they're *all*
memory-addressable.  all of them.  any "setup" is done by way of "Registers"...
which are also simply memory-addressable... over the WB memory bus.

some of those, because they are I/O, cacheing is not permitted.  so we have to
be on the lookout for that.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
libre-riscv-dev mailing list
libre-riscv-dev@lists.libre-riscv.org
http://lists.libre-riscv.org/mailman/listinfo/libre-riscv-dev

  parent reply index

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-13 18:40 [libre-riscv-dev] [Bug 257] New: " bugzilla-daemon
2020-03-18  5:23 ` [libre-riscv-dev] [Bug 257] " bugzilla-daemon
2020-03-18  6:59 ` bugzilla-daemon
2020-03-20 11:03 ` bugzilla-daemon
2020-03-20 13:06 ` bugzilla-daemon
2020-03-20 18:34 ` bugzilla-daemon
2020-03-20 19:07 ` bugzilla-daemon
2020-03-20 19:53 ` bugzilla-daemon [this message]
2020-03-20 20:21 ` bugzilla-daemon
2020-03-21  0:48 ` bugzilla-daemon
2020-03-21  1:56 ` bugzilla-daemon
2020-03-21  4:12 ` bugzilla-daemon
2020-03-21 15:28 ` bugzilla-daemon
2020-03-21 15:36 ` bugzilla-daemon
2020-03-22 11:37 ` bugzilla-daemon
2020-03-24 11:16 ` bugzilla-daemon
2020-03-24 11:54 ` bugzilla-daemon
2020-03-25 13:07 ` bugzilla-daemon
2020-03-26 17:06 ` bugzilla-daemon
2020-03-26 20:58 ` bugzilla-daemon
2020-03-26 21:23 ` bugzilla-daemon
     [not found] <bug-257-13@https.bugs.libre-soc.org/>
2020-04-22  2:58 ` bugzilla-daemon
2020-04-22  8:30 ` bugzilla-daemon
2020-04-22  8:39 ` bugzilla-daemon
2020-04-22  8:54 ` bugzilla-daemon
2020-04-22  9:48 ` bugzilla-daemon
2020-04-22 13:06 ` bugzilla-daemon
2020-04-22 13:38 ` bugzilla-daemon
2020-04-29 11:16 ` bugzilla-daemon
2020-04-29 21:39 ` bugzilla-daemon
2020-05-06  0:33 ` bugzilla-daemon
2020-05-06  0:36 ` bugzilla-daemon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-257-13-ajVraMvO0w@http.bugs.libre-riscv.org/ \
    --to=bugzilla-daemon@libre-riscv.org \
    --cc=libre-riscv-dev@lists.libre-riscv.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Libre RISC-V Mailing list Archives (accessible via public-inbox)

Archives are clonable: git clone --mirror https://inbox.libre-soc.org/libre-riscv-dev

Example config snippet for mirrors


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git