grantslape / CS3339-MIPS32

5 stage, pipelined MIPS32 processor in myHDL and Verilog
GNU General Public License v3.0
4 stars 0 forks source link

TestInstMemPython fails intermittenly #74

Open grantslape opened 5 years ago

grantslape commented 5 years ago

The build fails unit test TestInstMemPython seemingly randomly. This is difficult to reproduce, which seems to be caused by the PRNG not being seeded in a consistent manner.


======================================================================
ERROR: testInstMemDynamicPython (test.test_inst_mem.TestInstructionMemory)
Testing regular operation Python
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/app/test/test_inst_mem.py", line 45, in testInstMemDynamicPython
    Simulation(stim, self.dut).run(quiet=1)
  File "/usr/local/lib/python3.6/site-packages/myhdl/_Simulation.py", line 152, in run
    waiter.next(waiters, actives, exc)
  File "/usr/local/lib/python3.6/site-packages/myhdl/_Waiter.py", line 172, in next
    clause = next(self.generator)
  File "/usr/local/lib/python3.6/site-packages/myhdl/_always_comb.py", line 83, in genfunc
    func()
  File "/app/src/python/inst_mem.py", line 25, in logic
    inst_out.next = raw_mem[inst_reg//4]
IndexError: list index out of range```