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
20486d438a
commit
e4672915e6
@ -301,7 +301,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, gmii_source_logic, gmii_sink_logic, clkgen, rx_clk_gen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -293,7 +293,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, sfp_a_source_logic, sfp_a_sink_logic, sfp_b_source_logic, sfp_b_sink_logic, sfp_c_source_logic, sfp_c_sink_logic, sfp_d_source_logic, sfp_d_sink_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -601,14 +601,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return (dut, clkgen, check, eth_r0_source_logic, eth_r0_sink_logic, eth_r1_source_logic, eth_r1_sink_logic, eth_r2_source_logic, eth_r2_sink_logic,
|
||||
eth_r3_source_logic, eth_r3_sink_logic, eth_r4_source_logic, eth_r4_sink_logic, eth_r5_source_logic, eth_r5_sink_logic,
|
||||
eth_r6_source_logic, eth_r6_sink_logic, eth_r7_source_logic, eth_r7_sink_logic, eth_r8_source_logic, eth_r8_sink_logic,
|
||||
eth_r9_source_logic, eth_r9_sink_logic, eth_r10_source_logic, eth_r10_sink_logic, eth_r11_source_logic, eth_r11_sink_logic,
|
||||
eth_l0_source_logic, eth_l0_sink_logic, eth_l1_source_logic, eth_l1_sink_logic, eth_l2_source_logic, eth_l2_sink_logic,
|
||||
eth_l3_source_logic, eth_l3_sink_logic, eth_l4_source_logic, eth_l4_sink_logic, eth_l5_source_logic, eth_l5_sink_logic,
|
||||
eth_l6_source_logic, eth_l6_sink_logic, eth_l7_source_logic, eth_l7_sink_logic, eth_l8_source_logic, eth_l8_sink_logic,
|
||||
eth_l9_source_logic, eth_l9_sink_logic, eth_l10_source_logic, eth_l10_sink_logic, eth_l11_source_logic, eth_l11_sink_logic)
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -533,14 +533,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return (dut, clkgen, check, eth_r0_source_logic, eth_r0_sink_logic, eth_r1_source_logic, eth_r1_sink_logic, eth_r2_source_logic, eth_r2_sink_logic,
|
||||
eth_r3_source_logic, eth_r3_sink_logic, eth_r4_source_logic, eth_r4_sink_logic, eth_r5_source_logic, eth_r5_sink_logic,
|
||||
eth_r6_source_logic, eth_r6_sink_logic, eth_r7_source_logic, eth_r7_sink_logic, eth_r8_source_logic, eth_r8_sink_logic,
|
||||
eth_r9_source_logic, eth_r9_sink_logic, eth_r10_source_logic, eth_r10_sink_logic, eth_r11_source_logic, eth_r11_sink_logic,
|
||||
eth_l0_source_logic, eth_l0_sink_logic, eth_l1_source_logic, eth_l1_sink_logic, eth_l2_source_logic, eth_l2_sink_logic,
|
||||
eth_l3_source_logic, eth_l3_sink_logic, eth_l4_source_logic, eth_l4_sink_logic, eth_l5_source_logic, eth_l5_sink_logic,
|
||||
eth_l6_source_logic, eth_l6_sink_logic, eth_l7_source_logic, eth_l7_sink_logic, eth_l8_source_logic, eth_l8_sink_logic,
|
||||
eth_l9_source_logic, eth_l9_sink_logic, eth_l10_source_logic, eth_l10_sink_logic, eth_l11_source_logic, eth_l11_sink_logic)
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -320,7 +320,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, gmii_source_logic, gmii_sink_logic, clkgen, rx_clk_gen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -320,7 +320,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, rgmii_source_logic, rgmii_sink_logic, clkgen, clkgen2, rx_clk_gen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -317,7 +317,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, gmii_source_logic, gmii_sink_logic, clkgen, clk_enable_gen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -305,7 +305,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, rgmii_source_logic, rgmii_sink_logic, clkgen, clkgen2, rx_clk_gen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -511,7 +511,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, qsfp_1_source_logic, qsfp_1_sink_logic, qsfp_2_source_logic, qsfp_2_sink_logic, qsfp_3_source_logic, qsfp_3_sink_logic, qsfp_4_source_logic, qsfp_4_sink_logic, gmii_source_logic, gmii_sink_logic, clkgen, clk_enable_gen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -304,7 +304,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, gmii_source_logic, gmii_sink_logic, clkgen, clk_enable_gen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -304,7 +304,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, gmii_source_logic, gmii_sink_logic, clkgen, clk_enable_gen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -236,7 +236,7 @@ class ARPFrameSource():
|
||||
|
||||
frame_valid_int.next = True
|
||||
|
||||
return logic, pause_logic
|
||||
return instances()
|
||||
|
||||
|
||||
class ARPFrameSink():
|
||||
@ -316,5 +316,5 @@ class ARPFrameSink():
|
||||
if name is not None:
|
||||
print("[%s] Got frame %s" % (name, repr(frame)))
|
||||
|
||||
return logic, pause_logic
|
||||
return instances()
|
||||
|
||||
|
@ -204,7 +204,7 @@ class EthFrameSource():
|
||||
|
||||
eth_hdr_valid_int.next = True
|
||||
|
||||
return logic, pause_logic, eth_payload_source
|
||||
return instances()
|
||||
|
||||
|
||||
class EthFrameSink():
|
||||
@ -295,5 +295,5 @@ class EthFrameSink():
|
||||
if name is not None:
|
||||
print("[%s] Got frame %s" % (name, repr(frame)))
|
||||
|
||||
return logic, pause_logic, eth_payload_sink
|
||||
return instances()
|
||||
|
||||
|
@ -172,7 +172,7 @@ class GMIISource(object):
|
||||
tx_er.next = 0
|
||||
tx_en.next = 0
|
||||
|
||||
return logic
|
||||
return instances()
|
||||
|
||||
|
||||
class GMIISink(object):
|
||||
@ -261,5 +261,5 @@ class GMIISink(object):
|
||||
d = []
|
||||
er = []
|
||||
|
||||
return logic
|
||||
return instances()
|
||||
|
||||
|
@ -356,7 +356,7 @@ class IPFrameSource():
|
||||
self.header_queue.append(frame)
|
||||
self.payload_source.send(frame.payload)
|
||||
|
||||
return logic, pause_logic, ip_payload_source
|
||||
return instances()
|
||||
|
||||
|
||||
class IPFrameSink():
|
||||
@ -476,5 +476,5 @@ class IPFrameSink():
|
||||
if len(self.header_queue) == 0:
|
||||
assert self.payload_sink.empty()
|
||||
|
||||
return logic, pause_logic, ip_payload_sink
|
||||
return instances()
|
||||
|
||||
|
@ -63,7 +63,7 @@ class RGMIISource(gmii_ep.GMIISource):
|
||||
gmii_tx_en_reg.next = gmii_tx_en
|
||||
gmii_tx_er_reg.next = gmii_tx_er
|
||||
|
||||
return gmii_source, logic
|
||||
return instances()
|
||||
|
||||
|
||||
class RGMIISink(gmii_ep.GMIISink):
|
||||
@ -102,5 +102,5 @@ class RGMIISink(gmii_ep.GMIISink):
|
||||
dat |= int(rxd.val) << 4
|
||||
ctl2 = int(rx_ctl.val)
|
||||
|
||||
return gmii_sink, logic
|
||||
return instances()
|
||||
|
||||
|
@ -435,7 +435,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_logic, sink_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -441,7 +441,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_logic, sink_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -504,7 +504,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
@ -537,7 +537,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_logic, sink_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -540,7 +540,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_logic, sink_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -357,7 +357,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_logic, sink_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -360,7 +360,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_logic, sink_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -145,7 +145,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -148,7 +148,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -401,7 +401,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, monitor, source_logic, sink_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -407,7 +407,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, monitor, source_logic, sink_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -368,7 +368,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_logic, sink_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -374,7 +374,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_logic, sink_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -375,7 +375,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_logic, sink_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -369,7 +369,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_logic, sink_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -419,7 +419,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, monitor, source_logic, sink_logic, clkgen, clk_enable_gen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -371,7 +371,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_logic, sink_logic, clkgen, clk_enable_gen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -554,7 +554,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__)))
|
||||
|
@ -569,7 +569,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__)))
|
||||
|
@ -346,7 +346,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_logic, sink_logic, clkgen, monitor, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -352,7 +352,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_logic, sink_logic, clkgen, monitor, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -299,7 +299,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_logic, sink_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -305,7 +305,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_logic, sink_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -508,7 +508,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__)))
|
||||
|
@ -523,7 +523,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__)))
|
||||
|
@ -275,7 +275,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, axis_source_logic, axis_sink_logic, xgmii_source_logic, xgmii_sink_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -313,7 +313,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, axis_source_logic, axis_sink_logic, xgmii_source_logic, xgmii_sink_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -399,7 +399,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, monitor, 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())
|
||||
|
@ -327,7 +327,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, monitor, axis_source_logic, axis_sink_logic, gmii_source_logic, gmii_sink_logic, clkgen, clk_enable_gen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -358,7 +358,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, monitor, axis_source_logic, axis_sink_logic, gmii_source_logic, gmii_sink_logic, clkgen, clk_enable_gen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -331,7 +331,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, monitor, axis_source_logic, axis_sink_logic, gmii_source_logic, gmii_sink_logic, clkgen, rx_clk_gen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -355,7 +355,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, monitor, axis_source_logic, axis_sink_logic, gmii_source_logic, gmii_sink_logic, clkgen, rx_clk_gen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -333,7 +333,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, monitor, axis_source_logic, axis_sink_logic, rgmii_source_logic, rgmii_sink_logic, clkgen, clkgen2, rx_clk_gen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -356,7 +356,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, monitor, axis_source_logic, axis_sink_logic, rgmii_source_logic, rgmii_sink_logic, clkgen, clkgen2, rx_clk_gen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -366,7 +366,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, monitor, source_logic, sink_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -316,7 +316,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_logic, sink_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -515,7 +515,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__)))
|
||||
|
@ -530,7 +530,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__)))
|
||||
|
@ -524,7 +524,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, eth_source_logic, eth_sink_logic, ip_source_logic, ip_sink_logic, clkgen, arp_emu, monitor, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -536,7 +536,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, eth_source_logic, eth_sink_logic, ip_source_logic, ip_sink_logic, clkgen, arp_emu, monitor, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -917,7 +917,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__)))
|
||||
|
@ -932,7 +932,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__)))
|
||||
|
@ -572,7 +572,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, eth_source_logic, eth_sink_logic, ip_source_logic, ip_sink_logic, clkgen, monitor, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -584,7 +584,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, eth_source_logic, eth_sink_logic, ip_source_logic, ip_sink_logic, clkgen, monitor, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -843,7 +843,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__)))
|
||||
|
@ -858,7 +858,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__)))
|
||||
|
@ -1048,7 +1048,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_logic, sink_logic, clkgen, monitor, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -1054,7 +1054,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_logic, sink_logic, clkgen, monitor, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -849,7 +849,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_logic, sink_logic, clkgen, monitor, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -855,7 +855,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_logic, sink_logic, clkgen, monitor, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -850,7 +850,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__)))
|
||||
|
@ -865,7 +865,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__)))
|
||||
|
@ -556,7 +556,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, ip_source_logic, ip_sink_logic, udp_source_logic, udp_sink_logic, clkgen, monitor, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -568,7 +568,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, ip_source_logic, ip_sink_logic, udp_source_logic, udp_sink_logic, clkgen, monitor, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -1025,7 +1025,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__)))
|
||||
|
@ -1040,7 +1040,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__)))
|
||||
|
@ -493,7 +493,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_logic, sink_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -499,7 +499,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_logic, sink_logic, clkgen, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -853,7 +853,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, eth_source_logic, eth_sink_logic, ip_source_logic, ip_sink_logic, udp_source_logic, udp_sink_logic, clkgen, monitor, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -871,7 +871,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, eth_source_logic, eth_sink_logic, ip_source_logic, ip_sink_logic, udp_source_logic, udp_sink_logic, clkgen, monitor, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -943,7 +943,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__)))
|
||||
|
@ -958,7 +958,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__)))
|
||||
|
@ -1034,7 +1034,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_logic, sink_logic, clkgen, monitor, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -1040,7 +1040,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_logic, sink_logic, clkgen, monitor, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -981,7 +981,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_logic, sink_logic, clkgen, monitor, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -987,7 +987,7 @@ def bench():
|
||||
|
||||
raise StopSimulation
|
||||
|
||||
return dut, source_logic, sink_logic, clkgen, monitor, check
|
||||
return instances()
|
||||
|
||||
def test_bench():
|
||||
sim = Simulation(bench())
|
||||
|
@ -950,7 +950,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__)))
|
||||
|
@ -965,7 +965,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__)))
|
||||
|
@ -449,7 +449,7 @@ class UDPFrameSource():
|
||||
self.header_queue.append(frame)
|
||||
self.payload_source.send(frame.payload)
|
||||
|
||||
return logic, pause_logic, udp_payload_source
|
||||
return instances()
|
||||
|
||||
|
||||
class UDPFrameSink():
|
||||
@ -578,5 +578,5 @@ class UDPFrameSink():
|
||||
if len(self.header_queue) == 0:
|
||||
assert self.payload_sink.empty()
|
||||
|
||||
return logic, pause_logic, udp_payload_sink
|
||||
return instances()
|
||||
|
||||
|
@ -225,7 +225,7 @@ class XGMIISource(object):
|
||||
txd.next = 0x0707070707070707 if bw == 8 else 0x07070707
|
||||
txc.next = 0xff if bw == 8 else 0xf
|
||||
|
||||
return logic
|
||||
return instances()
|
||||
|
||||
|
||||
class XGMIISink(object):
|
||||
@ -307,5 +307,5 @@ class XGMIISink(object):
|
||||
d.append((int(rxd) >> (8*i)) & 0xff)
|
||||
c.append((int(rxc) >> i) & 1)
|
||||
|
||||
return logic
|
||||
return instances()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user