Skip to content

Commit

Permalink
add failing test.
Browse files Browse the repository at this point in the history
  • Loading branch information
sequencer committed May 3, 2022
1 parent b24f09c commit ea83a60
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/test/scala/chiselTests/Reg.scala
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@ class RegSpec extends ChiselFlatSpec {
}
ChiselStage.elaborate { new RegForcedWidthTester }
}

"macro" should "work fine" in {
class RegMacroTester extends BasicTester {
if (scala.util.Random.nextBoolean())
RegEnable(next = true.B, init = true.B, enable = true.B)
else
RegEnable(next = false.B, enable = false.B)
}
}
}

class ShiftTester(n: Int) extends BasicTester {
Expand Down

0 comments on commit ea83a60

Please sign in to comment.