From: Luke Kenneth Casson Leighton <lkcl@lkcl.net>
To: Libre-RISCV General Development <libre-riscv-dev@lists.libre-riscv.org>
Subject: Re: [libre-riscv-dev] daily kan-ban update 04aug2020
Date: Wed, 5 Aug 2020 19:39:20 +0100
Message-ID: <CAPweEDx=hnH4uuq-Aujn4xtwV9DFa+QSf5NCBy1O1oMF-4NQ0A@mail.gmail.com> (raw)
In-Reply-To: <20200805193743.c1394fca391141c88693affd@platen-software.de>
On Wed, Aug 5, 2020 at 6:37 PM Tobias Platen
<libre-soc@platen-software.de> wrote:
>
> On Wed, 5 Aug 2020 18:08:04 +0100
> Luke Kenneth Casson Leighton <lkcl@lkcl.net> wrote:
>
> > > > > as best i can tell when i wrote the unit test for LDSTSplitter, the
> > > > > "logic" behind LDSTSplitter is correct, however the mask works on
> > > > > *bits* not bytes (sigh).
> > > That might be the reason why I get an error when running the unit tests:
> > > LenExpand 4 1 unsigned(16)
> > > LenExpand 4 1 unsigned(16)
>
> I found those two commits in the git history.
ok so the one you just changed, was this:
diff --git a/src/soc/scoreboard/addr_split.py b/src/soc/scoreboard/addr_split.py
index 0cd546ce..aa99f63c 100644
--- a/src/soc/scoreboard/addr_split.py
+++ b/src/soc/scoreboard/addr_split.py
@@ -100,7 +100,7 @@ class LDSTSplitter(Elaboratable):
mzero = Const(0, mlen)
m.submodules.ld1 = ld1 = LDLatch(self.dwidth, self.awidth-dlen, mlen)
m.submodules.ld2 = ld2 = LDLatch(self.dwidth, self.awidth-dlen, mlen)
- m.submodules.lenexp = lenexp = LenExpand(self.dlen, cover=8)
+ m.submodules.lenexp = lenexp = LenExpand(self.dlen)
and that got the unit test "working".... by *returning* LDSTSplitter
to do *bit* masking *not* byte masking.
this means that instead of having a 16 bit mask to cover 128 bits of
data, a whopping *128* bit mask is needed and that's precisely what
we do not want.
l.
_______________________________________________
libre-riscv-dev mailing list
libre-riscv-dev@lists.libre-riscv.org
http://lists.libre-riscv.org/mailman/listinfo/libre-riscv-dev
next prev parent reply index
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-04 12:45 Luke Kenneth Casson Leighton
2020-08-04 15:34 ` Luke Kenneth Casson Leighton
2020-08-04 17:18 ` Tobias Platen
2020-08-04 17:32 ` Luke Kenneth Casson Leighton
2020-08-05 16:40 ` Tobias Platen
2020-08-05 16:48 ` Tobias Platen
2020-08-05 17:08 ` Luke Kenneth Casson Leighton
2020-08-05 17:37 ` Tobias Platen
2020-08-05 18:39 ` Luke Kenneth Casson Leighton [this message]
2020-08-05 18:55 ` Tobias Platen
2020-08-05 19:02 ` Luke Kenneth Casson Leighton
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='CAPweEDx=hnH4uuq-Aujn4xtwV9DFa+QSf5NCBy1O1oMF-4NQ0A@mail.gmail.com' \
--to=lkcl@lkcl.net \
--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