llvm / circt

Circuit IR Compilers and Tools
https://circt.org
Other
1.69k stars 302 forks source link

[FIRRTL] Parse dshlw #180

Closed seldridge closed 4 years ago

seldridge commented 4 years ago

The Scala FIRRTL compiler adds an undocumented operand, dshlw, in the PadWidths transform. This will show up in emitted output if you run a low FIRRTL IR emitter with optimizations turned on, e.g.,:

firrtl -i Foo.fir -X verilog -E low -E verilog

This operand should (at least) be parsed by the FIRRTL CIRCT dialect for the same reason that we also parse cmem and smem---we should strive for interoperability with the lone extant FIRRTL compiler implementation.

lattner commented 4 years ago

+1, makes sense to me!