[Libre-soc-bugs] [Bug 50] nmigen pinmux

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Fri Nov 19 11:35:08 GMT 2021


https://bugs.libre-soc.org/show_bug.cgi?id=50

--- Comment #39 from andrey at technepisteme.xyz ---
(In reply to Luke Kenneth Casson Leighton from comment #38)
> (In reply to andrey from comment #37)
> $ pip3 list | grep vcd
> pyvcd                           0.2.3
Thanks Luke, fixed by re-installing pyvcd.


To stop my madness of copying soc files into pinmux repo, I set up a new
schroot "libresoc-dev", and have ran "hdl-dev-repos" script to get soc and
supporting libraries.
Then I modified test_jtag_tap_srv.py to use the original import paths.

Steps I take to try to run the test:
- Open two separate terminals and call "schroot -c libresoc-dev" to get into
schroot

Terminal 1:
- cd ~/src/soc/pinmux/src/spec/
- python3 test_jtag_tap_srv.py

Terminal 2:
- cd ~/src/soc/src/soc/debug/test/
- python3 test_jtag_tap.py

Error in when running server in Terminal 1:
Traceback (most recent call last):
  File "test_jtag_tap_srv.py", line 265, in <module>
    sim.run()
  File "/home/rohdo/src/nmigen/nmigen/sim/core.py", line 165, in run
    while self.advance():
  File "/home/rohdo/src/nmigen/nmigen/sim/core.py", line 156, in advance
    return self._engine.advance()
  File "/home/rohdo/src/nmigen/nmigen/sim/pysim.py", line 319, in advance
    self._step()
  File "/home/rohdo/src/nmigen/nmigen/sim/pysim.py", line 308, in _step
    process.run()
  File "/home/rohdo/src/nmigen/nmigen/sim/_pycoro.py", line 123, in run
    self.coroutine.throw(exn)
  File "/home/rohdo/src/nmigen/nmigen/sim/_pycoro.py", line 64, in run
    command = self.coroutine.send(response)
  File "/home/rohdo/src/nmigen/nmigen/sim/core.py", line 90, in wrapper
    yield from process()
  File "/home/rohdo/src/nmutil/src/nmutil/util.py", line 53, in wrapper
    yield from process
  File "test_jtag_tap_srv.py", line 66, in jtag_sim
    yield srv_dut.ios[0].pad.i.eq(1)
KeyError: 0


Error in when running server in Terminal 2:
Traceback (most recent call last):
  File "test_jtag_tap.py", line 178, in <module>
    sim.run()
  File "/home/rohdo/src/nmigen/nmigen/sim/core.py", line 165, in run
    while self.advance():
  File "/home/rohdo/src/nmigen/nmigen/sim/core.py", line 156, in advance
    return self._engine.advance()
  File "/home/rohdo/src/nmigen/nmigen/sim/pysim.py", line 319, in advance
    self._step()
  File "/home/rohdo/src/nmigen/nmigen/sim/pysim.py", line 308, in _step
    process.run()
  File "/home/rohdo/src/nmigen/nmigen/sim/_pycoro.py", line 123, in run
    self.coroutine.throw(exn)
  File "/home/rohdo/src/nmigen/nmigen/sim/_pycoro.py", line 64, in run
    command = self.coroutine.send(response)
  File "/home/rohdo/src/nmigen/nmigen/sim/core.py", line 90, in wrapper
    yield from process()
  File "/home/rohdo/src/nmutil/src/nmutil/util.py", line 53, in wrapper
    yield from process
  File "test_jtag_tap.py", line 118, in jtag_sim
    assert status == 0
AssertionError

I don't know what causes Error1, but Error2 looks like it might be formal
verification error.


Am I missing something else or not calling the tests correctly?
I'd really want to see something existing work.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-soc-bugs mailing list