cornell-brg / pymtl

Python-based hardware modeling framework
BSD 3-Clause "New" or "Revised" License
234 stars 83 forks source link

sext(concat()) does not translate #178

Open wizard97 opened 5 years ago

wizard97 commented 5 years ago

If you do sext(concat(a, b, c)) it will not translate. It appears nested sext()'s and concat() do not translate. The translation fails with something similar to:

E         AttributeError: 
E         Unexpected error during VerilogTranslation!
E         Please contact the PyMTL devs!
E         'Call' object has no attribute '_object'
E         
E         > <unknown>
E         
E         File:      /home/aaron/Code/pymtl-rv64gc/src/core/rtl/frontend/decode.py
E         Model:     Decode_0x32fcb92d0a0d639a
E         Function:  handle_imm
E         Line:      ~125

../../../vc/git-hub/cornell-brg/pymtl/pymtl/tools/translation/verilog_behavioral.py:106: AttributeError