1
0
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:
Alex Forencich 2018-06-13 22:26:10 -07:00
parent 7c6da337b0
commit c5837daa2f
46 changed files with 48 additions and 48 deletions

View File

@ -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()

View File

@ -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()

View File

@ -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__)))

View 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__)))

View 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__)))

View 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__)))

View 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__)))

View 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__)))

View 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__)))

View 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__)))

View 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__)))

View 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__)))

View 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())

View File

@ -345,7 +345,7 @@ def bench():
raise StopSimulation
return dut, source_logic, sink_logic, clkgen, check
return instances()
def test_bench():
sim = Simulation(bench())

View File

@ -346,7 +346,7 @@ def bench():
raise StopSimulation
return dut, source_logic, sink_logic, clkgen, check
return instances()
def test_bench():
sim = Simulation(bench())

View 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__)))

View 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__)))

View 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__)))

View 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__)))

View 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__)))

View 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__)))

View 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__)))

View 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__)))

View 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__)))

View 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__)))

View 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__)))

View 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__)))

View 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__)))

View 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__)))

View 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__)))

View 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__)))

View 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__)))

View 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__)))

View 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__)))

View 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__)))

View 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__)))

View 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__)))

View 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__)))

View 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__)))

View 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__)))

View 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())

View 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())

View 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__)))

View 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__)))

View 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__)))

View 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__)))