[libre-riscv-dev] test_decoder_gas.py still fails after update for unknown reason

Tobias Platen libre-soc at platen-software.de
Wed Apr 1 07:59:21 BST 2020

I installed a working version of the GNU toolchain (via buildroot),
but the test_decoder_gas.py still fails. Both soc and nmigen have been
updated to the latest version.

ERROR: test_rot (__main__.DecoderTestCase)
Traceback (most recent call last):
  File "test_decoder_gas.py", line 448, in test_rot
    self.run_tst(RotateOp, "rot")
  File "test_decoder_gas.py", line 432, in run_tst
  File "/usr/local/lib/python3.7/dist-packages/nmigen-0.3.dev12+g2d1e12d-py3.7.egg/nmigen/back/pysim.py", line 1120, in write_vcd
    vcd_file=vcd_file, gtkw_file=gtkw_file, traces=traces)
  File "/usr/local/lib/python3.7/dist-packages/nmigen-0.3.dev12+g2d1e12d-py3.7.egg/nmigen/back/pysim.py", line 95, in __init__
    if trace not in signal_names:
  File "/usr/lib/python3.7/_collections_abc.py", line 666, in __contains__
  File "/usr/local/lib/python3.7/dist-packages/nmigen-0.3.dev12+g2d1e12d-py3.7.egg/nmigen/hdl/ast.py", line 1392, in __getitem__
    key = None if key is None else self._map_key(key)
  File "/usr/local/lib/python3.7/dist-packages/nmigen-0.3.dev12+g2d1e12d-py3.7.egg/nmigen/hdl/ast.py", line 1582, in __init__
    raise TypeError("Object {!r} is not an nMigen signal".format(signal))
TypeError: Object [(sig raw_opcode_in), (sig bigendian), (sig opcode_in), (sig function_unit), (sig in1_sel), (sig in2_sel), (sig in3_sel), (sig out_sel), (sig ldst_len), (sig rc_sel), (sig internal_op), (sig form), (sig cr_in), (sig cr_out), (sig inv_a), (sig inv_out), (sig cry_out), (sig br), (sig sgn_ext), (sig upd), (sig rsrv), (sig is_32b), (sig sgn), (sig lk), (sig sgl_pipe), (sig valid), (sig insn_type), (sig nia), (sig lk), (sig invert_a), (sig invert_out), (sig input_carry), (sig output_carry), (sig input_cr), (sig output_cr), (sig is_32bit), (sig is_signed), (sig insn), (sig data_len), (sig byte_reverse), (sig sign_extend), (sig update), (sig oe), (sig oe_ok), (sig rc), (sig rc_ok), (sig spro), (sig spro_ok), (sig spr1), (sig spr1_ok), (sig spr2), (sig spr2_ok), (sig rego), (sig rego_ok), (sig reg1), (sig reg1_ok), (sig reg2), (sig reg2_ok), (sig reg3), (sig reg3_ok), (sig imm), (sig imm_ok)] is not an nMigen signal

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

More information about the libre-riscv-dev mailing list