Closed ghost closed 8 years ago
Can one of the admins verify this patch?
Also this was also wrong:
val mask = Op("-", widthInfer, Op("<<", widthInfer, UInt(1), hiMinusLoPlus1), UInt(1))
because widthInfer is equal to Node.widthOf(0) if width = -1, that's why it was interpreted as 1-bit wide wire.
ok to test
Unfortunately, this assumes width is available in the front end, and breaks existing code. Since both the C++ and Verilog backends know how to extract(), I think the best solution is to leave it up to them. Work on this is continuing in the extract621 branch.
Closed by #649
This patch is related to issue #621