dut = tXXDController(txxd)
yield dut.valid.eq(1)
- yield; yield Delay(1e-8)
+ yield; yield Delay(1e-9)
self.assertFalse((yield dut.ready))
yield dut.valid.eq(0)
# want_writes
yield dut.want_writes.eq(1)
- yield; yield Delay(1e-8)
+ yield; yield Delay(1e-9)
self.assertEqual((yield dut.cmd.a), 7)
# want_reads
yield dut.want_writes.eq(0)
yield dut.want_reads.eq(1)
- yield; yield Delay(1e-8)
+ yield; yield Delay(1e-9)
self.assertEqual((yield dut.cmd.a), 5)
runSimulation(dut, process, "test_core_multiplexer_commandchooser.vcd")
# want_writes
yield dut.want_writes.eq(1)
- yield; yield Delay(1e-8)
+ yield; yield Delay(1e-9)
self.assertTrue((yield dut.write()))
self.assertFalse((yield dut.read()))
# want_reads
yield dut.want_writes.eq(0)
yield dut.want_reads.eq(1)
- yield; yield Delay(1e-8)
+ yield; yield Delay(1e-9)
self.assertTrue((yield dut.read()))
self.assertFalse((yield dut.write()))
def process():
yield dut.start.eq(1)
- yield; yield Delay(1e-8)
+ yield; yield Delay(1e-9)
self.assertEqual((yield dut.a), 2**10)
for i in range(trp):
yield
- yield Delay(1e-8)
+ yield Delay(1e-9)
self.assertEqual((yield dut.a), 0)
runSimulation(dut, process, "test_refreshexecuter.vcd")
yield
yield dut.req_i.eq(0)
- yield; yield Delay(1e-8)
+ yield; yield Delay(1e-9)
self.assertFalse((yield dut.req_o))
__all__ = ["FHDLTestCase", "runSimulation", "wb_read", "wb_write", "PulseCounter", "Delay"]
-def runSimulation(module, process, vcd_filename="anonymous.vcd", clock=1e-6):
+def runSimulation(module, process, vcd_filename="anonymous.vcd", clock=1e-8):
sim = Simulator(module)
with sim.write_vcd(vcd_filename):
sim.add_clock(clock)