From 363cbe7aea99400c25a6006bf5b28338cdadc611 Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Fri, 6 Oct 2023 21:06:20 -0600 Subject: tb: implement ring test --- tb/top/test_smp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tb/top/test_smp.py') diff --git a/tb/top/test_smp.py b/tb/top/test_smp.py index 1994da2..c70b76b 100644 --- a/tb/top/test_smp.py +++ b/tb/top/test_smp.py @@ -7,6 +7,8 @@ from tb.models import CorePaceModel, SmpModel @cocotb.test() async def reset(dut): + cocotb.start(Clock(dut.clk, 2).start()) + dut.rst_n.value = 1 await Timer(1) dut.rst_n.value = 0 @@ -14,8 +16,6 @@ async def reset(dut): dut.rst_n.value = 1 model = SmpModel() - - cocotb.start_soon(Clock(dut.clk, 2).start()) master = AvalonMaster(dut, 'avl', dut.clk, case_insensitive=False) cpu0 = CorePaceModel(clk=dut.clk, halt=dut.halt_0, step=dut.step_0, -- cgit v1.2.3