mirror of
https://github.com/corundum/corundum.git
synced 2025-01-16 08:12:53 +08:00
Update testbenches to use instances()
This commit is contained in:
parent
7c6da337b0
commit
c5837daa2f
@ -366,7 +366,7 @@ class AXIStreamSource(object):
|
||||
tvalid_int.next = True
|
||||
tlast.next = len(data) == 0
|
||||
|
||||
return logic, pause_logic
|
||||
return instances()
|
||||
|
||||
|
||||
class AXIStreamSink(object):
|
||||
@ -508,5 +508,5 @@ class AXIStreamSink(object):
|
||||
user = []
|
||||
first = True
|
||||
|
||||
return logic, pause_logic
|
||||
return instances()
|
||||
|
||||
|
@ -93,7 +93,7 @@ class LocalLinkSource(object):
|
||||
sof_out_n.next = False
|
||||
eof_out_n.next = len(frame) != 0
|
||||
|
||||
return logic, pause_logic
|
||||
return instances()
|
||||
|
||||
|
||||
class LocalLinkSink(object):
|
||||
@ -158,5 +158,5 @@ class LocalLinkSink(object):
|
||||
print("[%s] Got frame %s" % (name, repr(frame)))
|
||||
frame = []
|
||||
|
||||
return logic, pause_logic
|
||||
return instances()
|
||||
|
||||
|
@ -163,7 +163,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
@ -223,7 +223,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
@ -311,7 +311,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_logic, sink_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
@ -311,7 +311,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_logic, sink_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
@ -564,7 +564,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_0_logic, source_1_logic, source_2_logic, source_3_logic, sink_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
@ -564,7 +564,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_0_logic, source_1_logic, source_2_logic, source_3_logic, sink_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
@ -488,7 +488,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_logic, sink_logic, input_clkgen, output_clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
@ -488,7 +488,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_logic, sink_logic, input_clkgen, output_clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
@ -659,7 +659,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, monitor_1, monitor_2, source_logic, sink_logic, input_clkgen, output_clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
@ -659,7 +659,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, monitor_1, monitor_2, source_logic, sink_logic, input_clkgen, output_clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
@ -446,7 +446,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_logic, sink_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -345,7 +345,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_logic, sink_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -346,7 +346,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_logic, sink_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -474,7 +474,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_0_logic, source_1_logic, source_2_logic, source_3_logic, sink_0_logic, sink_1_logic, sink_2_logic, sink_3_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
@ -474,7 +474,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_0_logic, source_1_logic, source_2_logic, source_3_logic, sink_0_logic, sink_1_logic, sink_2_logic, sink_3_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
@ -519,7 +519,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_logic, sink_0_logic, sink_1_logic, sink_2_logic, sink_3_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
@ -519,7 +519,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_logic, sink_0_logic, sink_1_logic, sink_2_logic, sink_3_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
@ -477,7 +477,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_logic, sink_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
@ -477,7 +477,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_logic, sink_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
@ -581,7 +581,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, monitor, source_logic, sink_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
@ -581,7 +581,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, monitor, source_logic, sink_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
@ -465,7 +465,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_0_logic, source_1_logic, source_2_logic, source_3_logic, sink_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
@ -372,7 +372,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_logic, sink_logic, status_sink_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
@ -372,7 +372,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_logic, sink_logic, status_sink_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
@ -364,7 +364,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_logic, sink_logic, hdr_sink_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
@ -364,7 +364,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_logic, sink_logic, hdr_sink_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
@ -193,7 +193,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_logic, sink_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
@ -519,7 +519,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_0_logic, source_1_logic, source_2_logic, source_3_logic, sink_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
@ -519,7 +519,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_0_logic, source_1_logic, source_2_logic, source_3_logic, sink_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
@ -547,7 +547,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_logic, sink_logic, clkgen, monitor, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
@ -547,7 +547,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_logic, sink_logic, clkgen, monitor, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
@ -415,7 +415,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_logic, sink_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
@ -415,7 +415,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_logic, sink_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
@ -479,7 +479,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_logic, sink_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
@ -479,7 +479,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_logic, sink_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
@ -415,7 +415,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_logic, sink_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
@ -415,7 +415,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_logic, sink_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
@ -765,7 +765,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_logic, monitor_sink_logic, sink_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
@ -603,7 +603,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_0_logic, source_1_logic, source_2_logic, source_3_logic, sink_0_logic, sink_1_logic, sink_2_logic, sink_3_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -603,7 +603,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_0_logic, source_1_logic, source_2_logic, source_3_logic, sink_0_logic, sink_1_logic, sink_2_logic, sink_3_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -444,7 +444,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_logic, sink_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
@ -444,7 +444,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_logic, sink_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
@ -193,7 +193,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_logic, sink_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
@ -121,7 +121,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user