example/ADM_PCIE_9V3: Testbench cleanup

Signed-off-by: Alex Forencich <alex@alexforencich.com>
This commit is contained in:
Alex Forencich
2025-02-24 21:42:23 -08:00
parent ffe667b047
commit 4cdc4be47e

View File

@@ -46,7 +46,8 @@ class TB:
self.qsfp_sources = []
self.qsfp_sinks = []
for ch in list(dut.qsfp_0_mac_inst.ch)+list(dut.qsfp_1_mac_inst.ch):
for inst in [dut.qsfp_0_mac_inst, dut.qsfp_1_mac_inst]:
for ch in inst.ch:
cocotb.start_soon(Clock(ch.ch_inst.tx_clk, 2.56, units="ns").start())
cocotb.start_soon(Clock(ch.ch_inst.rx_clk, 2.56, units="ns").start())