diff --git a/src/test/scala/uk/ac/soton/ecs/can/core/DataMemoryTest.scala b/src/test/scala/uk/ac/soton/ecs/can/core/DataMemoryTest.scala index 088cf537a8021a95f641f04b1d368859db398e18..936cff057e510b893c4d7aaa00549c31ac4476b8 100644 --- a/src/test/scala/uk/ac/soton/ecs/can/core/DataMemoryTest.scala +++ b/src/test/scala/uk/ac/soton/ecs/can/core/DataMemoryTest.scala @@ -19,19 +19,19 @@ class DataMemoryTest extends FlatSpec with ChiselScalatestTester { c.write.addr.poke("h01".U(addrWidth.W)) c.write.data.poke("h1234".U(dataWidth.W)) c.write.en.poke(true.B) - c.clock.step(2) + c.clock.step() c.write.en.poke(false.B) c.read.addr.poke("h01".U(addrWidth.W)) - c.clock.step(2) + c.clock.step() c.read.data.expect("h1234".U(dataWidth.W)) c.write.addr.poke("h0a".U(addrWidth.W)) c.write.data.poke("hfefe".U(dataWidth.W)) c.write.en.poke(true.B) - c.clock.step(2) + c.clock.step() c.write.en.poke(false.B) c.read.addr.poke("h0a".U(addrWidth.W)) - c.clock.step(2) + c.clock.step() c.read.data.expect("hfefe".U(dataWidth.W)) } } @@ -41,14 +41,14 @@ class DataMemoryTest extends FlatSpec with ChiselScalatestTester { c.write.addr.poke("h06".U(addrWidth.W)) c.write.data.poke("hcafe".U(dataWidth.W)) c.write.en.poke(true.B) - c.clock.step(2) + c.clock.step() c.write.en.poke(false.B) c.read.addr.poke("h06".U(addrWidth.W)) - c.clock.step(2) + c.clock.step() c.read.data.expect("hcafe".U(dataWidth.W)) c.write.data.poke("hefac".U(dataWidth.W)) - c.clock.step(8) + c.clock.step() c.read.data.expect("hcafe".U(dataWidth.W)) } }