Skip to content

Commit

Permalink
Optionally guard stop with `STOP_COND macro
Browse files Browse the repository at this point in the history
This allows for testbench handling of pipelined reset,
independently of `PRINTF_COND.
  • Loading branch information
Andrew Waterman committed Jun 27, 2016
1 parent 85dc973 commit 6f4c0e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/firrtl/Emitter.scala
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ class VerilogEmitter extends Emitter {
case (s:Stop) => {
val errorString = StringLit(s"${s.ret}\n".getBytes)
build_streams(Print(NoInfo, errorString, Seq(), s.clk, s.en))
simulate(s.clk, s.en, stop(s.ret), None)
simulate(s.clk, s.en, stop(s.ret), Some("STOP_COND"))
}
case (s:Print) => simulate(s.clk, s.en, printf(s.string, s.args), Some("PRINTF_COND"))
case (s:WDefInstance) => {
Expand Down

0 comments on commit 6f4c0e8

Please sign in to comment.