Skip to content

Commit

Permalink
Emit space after 'if' for all Verilog conditional synchronous assignm…
Browse files Browse the repository at this point in the history
…ents (#2091)
  • Loading branch information
albert-magyar committed Feb 25, 2021
1 parent edb91f7 commit 89e9ab0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ class VerilogEmitter extends SeqTransform with Emitter {
val lines = noResetAlwaysBlocks.getOrElseUpdate(clk, ArrayBuffer[Seq[Any]]())
if (weq(en, one)) lines += Seq(e, " <= ", value, ";")
else {
lines += Seq("if(", en, ") begin")
lines += Seq("if (", en, ") begin")
lines += Seq(tab, e, " <= ", value, ";", info)
lines += Seq("end")
}
Expand Down

0 comments on commit 89e9ab0

Please sign in to comment.