Skip to content

Commit

Permalink
Fix Verilog backend regression introduced in f6bee8a
Browse files Browse the repository at this point in the history
  • Loading branch information
aswaterman committed Feb 12, 2014
1 parent a78d2d0 commit 0bbe501
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main/scala/Reg.scala
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,8 @@ class Reg extends Delay with proc {
ChiselError.error("reassignment to Reg");
}
val cond = Module.current.whenCond
if (Module.current.hasWhenCond) {
enable = if (isEnable) enable || cond else cond
isEnable = true
}
enable = if (isEnable) enable || cond else cond
isEnable = true
updates += ((cond, src))
}
override def genMuxes(default: Node): Unit = {
Expand Down

0 comments on commit 0bbe501

Please sign in to comment.