summaryrefslogtreecommitdiff
path: root/src/test/scala/chiselTests/Clock.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/scala/chiselTests/Clock.scala')
-rw-r--r--src/test/scala/chiselTests/Clock.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/scala/chiselTests/Clock.scala b/src/test/scala/chiselTests/Clock.scala
index 5dea66dc..4b10d3b4 100644
--- a/src/test/scala/chiselTests/Clock.scala
+++ b/src/test/scala/chiselTests/Clock.scala
@@ -3,6 +3,7 @@
package chiselTests
import chisel3._
+import chisel3.stage.ChiselStage
import chisel3.testers.BasicTester
class ClockAsUIntTester extends BasicTester {
@@ -30,7 +31,7 @@ class ClockSpec extends ChiselPropSpec {
}
property("Should be able to use withClock in a module with no reset") {
- val circuit = Driver.emit { () => new WithClockAndNoReset }
+ val circuit = (new ChiselStage).emitChirrtl(new WithClockAndNoReset)
circuit.contains("reg a : UInt<1>, clock2") should be (true)
}
}