Skip to content

Commit

Permalink
[binder] Handle secret commands
Browse files Browse the repository at this point in the history
  • Loading branch information
SpriteOvO authored and chiselbot committed Jan 9, 2024
1 parent 96e5d98 commit 1bdfc31
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion binder/src/main/scala/PanamaCIRCTConverter.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1518,7 +1518,9 @@ private[chisel3] object PanamaCIRCTConverter {
}
def visitDefModule(defModule: DefModule)(implicit cvt: CIRCTConverter): Unit = {
cvt.visitDefModule(defModule)
defModule.commands.zip(defModule.commands.map(Some(_)).drop(1) :+ None).foreach {
val commands = defModule.commands ++ defModule.secretCommands
// Workaround for https://github.com/chipsalliance/chisel/issues/3435, peeking the next command
commands.zip(commands.map(Some(_)).drop(1) :+ None).foreach {
case (cmd, nextCmd) =>
cmd match {
// Command
Expand Down

0 comments on commit 1bdfc31

Please sign in to comment.