-
Hi, It seems that if you instantiate a module with the name "module", the Chisel->FIRRTL step has no issues with that, but then I assume the FIRRTL->Verilog step is what's giving me the error class WithMessageQueue(queueLength: Int, opcodes: OpcodeSet = OpcodeSet.custom0) extends Config((site, here, up) => {
case BuildRoCC => Seq((p: Parameters) => {
val module = LazyModule( new MessageQueue(OpcodeSet.custom0)(p))
module
})
}) It outputs to this line in the FIRRTL: inst module of MessageQueue @[MessageQueue.scala 51:28] Since FIRRTL doesn't like an instance to be named module, I think the Chisel -> FIRRTL step should consider "module" to be a reserved word, and throw a user error saying something like "You can't name an instance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Yes, I believe Chisel would be the right place to raise the issue you are describing. Bare in mind that currently FIRRTL compiler is in maintenance mode and soon it will be deprecated in Chipyard too, therefore you might want to confirm the next generation CIRCT behavior before alerting the Chisel guys. |
Beta Was this translation helpful? Give feedback.
chipsalliance/firrtl-spec#115