Closed stitchlibar closed 3 years ago
The yosys issue is caused by signed signal connections. The bus delimiter [3:0] should be removed to pass yosys. .p4syn (p4syn[3:0]), .p4syn2 (p4syn2[3:0]),
Sorry, I would like to take back. Seems the netlist is correct in the signed bit extension. So it's not an issue.
That Yosys assertion failure is tracked in https://github.com/YosysHQ/yosys/issues/2654, and has a pending fix: https://github.com/YosysHQ/yosys/pull/2716.
I think the signed bit extending has some issue SV assign p4syn = 4'(p4vs(en, err, din)); to V, the input is actually 3 bits not four bits
Yosys errors out with this, not sure it's directly related ERROR: Assert `arg->is_signed == sig.as_wire()->is_signed' failed in frontends/ast/genrtlil.cc:1858.
test_copy4.txt