Libre RISC-V Mailing list Archives (accessible via public-inbox)
 help / color / Atom feed
From: Tobias Platen <libre-soc@platen-software.de>
To: libre-riscv-dev@lists.libre-riscv.org
Subject: Re: [libre-riscv-dev] daily kan-ban update 04aug2020
Date: Wed, 5 Aug 2020 18:48:11 +0200
Message-ID: <20200805184811.6e06ee8fa6b4a493dff57dd0@platen-software.de> (raw)
In-Reply-To: <20200805184058.c0b4c856e310d6f75f83d29c@platen-software.de>

On Wed, 5 Aug 2020 18:40:58 +0200
Tobias Platen <libre-soc@platen-software.de> wrote:

> On Tue, 4 Aug 2020 18:32:34 +0100
> Luke Kenneth Casson Leighton <lkcl@lkcl.net> wrote:
> 
> > On Tue, Aug 4, 2020 at 6:19 PM Tobias Platen
> > <libre-soc@platen-software.de> wrote:
> > >
> > > today:
> > >
> > > unit test for DualPortSplitter
> > 
> > ok great.  btw you saw that i had to revert a commit that you made:
> Yes, I saw 
> > please do ensure that you commit code that is "working" or at least
> > doesn't cause other people to not be able to do "work".  i've had to
> > do this three times now.
> > 
> > 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)
ldm 255 0b11010011
dlm 15 0b1100
dmask 0b11111111000000000000
dmask1 0b1111
dmask 0b1111000000000000
lds
send_ld
waiting
ld data1 0b11010011 0b11000000000000 12 0b1111000000000000
ld data2 16 0b0 0b1101
0b11 0b11010011
Traceback (most recent call last):
  File "addr_split.py", line 270, in <module>
    sim(dut)
  File "addr_split.py", line 261, in sim
    sim.run()
  File "/home/isengaara/Hacking/lSOC/TEST/nmigen/nmigen/sim/pysim.py", line 382, in run
    while self.advance():
  File "/home/isengaara/Hacking/lSOC/TEST/nmigen/nmigen/sim/pysim.py", line 371, in advance
    self._real_step()
  File "/home/isengaara/Hacking/lSOC/TEST/nmigen/nmigen/sim/pysim.py", line 347, in _real_step
    process.run()
  File "/home/isengaara/Hacking/lSOC/TEST/nmigen/nmigen/sim/_pycoro.py", line 120, in run
    self.coroutine.throw(exn)
  File "/home/isengaara/Hacking/lSOC/TEST/nmigen/nmigen/sim/_pycoro.py", line 61, in run
    command = self.coroutine.send(response)
  File "/home/isengaara/Hacking/lSOC/TEST/nmigen/nmigen/sim/pysim.py", line 265, in wrapper
    yield from process()
  File "addr_split.py", line 232, in send_ld
    assert ld_data_o == data
AssertionError
make: *** [Makefile:4: test_ldst_splitter] Fehler 1
I'll investigate that.
> > 
> > also: the left port needs to be for when addr[4] == 0 and the right
> > port for when addr[4] == 1.  this is achieved with a crossbar on
> > *both* the LD *and* ST data.
> > l.
> > 
> > _______________________________________________
> > libre-riscv-dev mailing list
> > libre-riscv-dev@lists.libre-riscv.org
> > http://lists.libre-riscv.org/mailman/listinfo/libre-riscv-dev
> 
> 
> -- 
> Tobias Platen <libre-soc[at]platen-software[dot]de>
> 
> _______________________________________________
> libre-riscv-dev mailing list
> libre-riscv-dev@lists.libre-riscv.org
> http://lists.libre-riscv.org/mailman/listinfo/libre-riscv-dev


-- 
Tobias Platen <libre-soc[at]platen-software[dot]de>

_______________________________________________
libre-riscv-dev mailing list
libre-riscv-dev@lists.libre-riscv.org
http://lists.libre-riscv.org/mailman/listinfo/libre-riscv-dev

  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 [this message]
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
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=20200805184811.6e06ee8fa6b4a493dff57dd0@platen-software.de \
    --to=libre-soc@platen-software.de \
    --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