diff --git a/example/520N_MX/fpga_10g/tb/fpga_core/test_fpga_core.py b/example/520N_MX/fpga_10g/tb/fpga_core/test_fpga_core.py index 549dc3fc4..8c0e0c856 100644 --- a/example/520N_MX/fpga_10g/tb/fpga_core/test_fpga_core.py +++ b/example/520N_MX/fpga_10g/tb/fpga_core/test_fpga_core.py @@ -45,87 +45,87 @@ class TB: self.log = SimLog("cocotb.tb") self.log.setLevel(logging.DEBUG) - cocotb.fork(Clock(dut.clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.clk, 6.4, units="ns").start()) # Ethernet - cocotb.fork(Clock(dut.qsfp0_rx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp0_rx_clk_1, 6.4, units="ns").start()) self.qsfp0_1_source = XgmiiSource(dut.qsfp0_rxd_1, dut.qsfp0_rxc_1, dut.qsfp0_rx_clk_1, dut.qsfp0_rx_rst_1) - cocotb.fork(Clock(dut.qsfp0_tx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp0_tx_clk_1, 6.4, units="ns").start()) self.qsfp0_1_sink = XgmiiSink(dut.qsfp0_txd_1, dut.qsfp0_txc_1, dut.qsfp0_tx_clk_1, dut.qsfp0_tx_rst_1) - cocotb.fork(Clock(dut.qsfp0_rx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp0_rx_clk_2, 6.4, units="ns").start()) self.qsfp0_2_source = XgmiiSource(dut.qsfp0_rxd_2, dut.qsfp0_rxc_2, dut.qsfp0_rx_clk_2, dut.qsfp0_rx_rst_2) - cocotb.fork(Clock(dut.qsfp0_tx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp0_tx_clk_2, 6.4, units="ns").start()) self.qsfp0_2_sink = XgmiiSink(dut.qsfp0_txd_2, dut.qsfp0_txc_2, dut.qsfp0_tx_clk_2, dut.qsfp0_tx_rst_2) - cocotb.fork(Clock(dut.qsfp0_rx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp0_rx_clk_3, 6.4, units="ns").start()) self.qsfp0_3_source = XgmiiSource(dut.qsfp0_rxd_3, dut.qsfp0_rxc_3, dut.qsfp0_rx_clk_3, dut.qsfp0_rx_rst_3) - cocotb.fork(Clock(dut.qsfp0_tx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp0_tx_clk_3, 6.4, units="ns").start()) self.qsfp0_3_sink = XgmiiSink(dut.qsfp0_txd_3, dut.qsfp0_txc_3, dut.qsfp0_tx_clk_3, dut.qsfp0_tx_rst_3) - cocotb.fork(Clock(dut.qsfp0_rx_clk_4, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp0_rx_clk_4, 6.4, units="ns").start()) self.qsfp0_4_source = XgmiiSource(dut.qsfp0_rxd_4, dut.qsfp0_rxc_4, dut.qsfp0_rx_clk_4, dut.qsfp0_rx_rst_4) - cocotb.fork(Clock(dut.qsfp0_tx_clk_4, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp0_tx_clk_4, 6.4, units="ns").start()) self.qsfp0_4_sink = XgmiiSink(dut.qsfp0_txd_4, dut.qsfp0_txc_4, dut.qsfp0_tx_clk_4, dut.qsfp0_tx_rst_4) - cocotb.fork(Clock(dut.qsfp1_rx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_rx_clk_1, 6.4, units="ns").start()) self.qsfp1_1_source = XgmiiSource(dut.qsfp1_rxd_1, dut.qsfp1_rxc_1, dut.qsfp1_rx_clk_1, dut.qsfp1_rx_rst_1) - cocotb.fork(Clock(dut.qsfp1_tx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_tx_clk_1, 6.4, units="ns").start()) self.qsfp1_1_sink = XgmiiSink(dut.qsfp1_txd_1, dut.qsfp1_txc_1, dut.qsfp1_tx_clk_1, dut.qsfp1_tx_rst_1) - cocotb.fork(Clock(dut.qsfp1_rx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_rx_clk_2, 6.4, units="ns").start()) self.qsfp1_2_source = XgmiiSource(dut.qsfp1_rxd_2, dut.qsfp1_rxc_2, dut.qsfp1_rx_clk_2, dut.qsfp1_rx_rst_2) - cocotb.fork(Clock(dut.qsfp1_tx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_tx_clk_2, 6.4, units="ns").start()) self.qsfp1_2_sink = XgmiiSink(dut.qsfp1_txd_2, dut.qsfp1_txc_2, dut.qsfp1_tx_clk_2, dut.qsfp1_tx_rst_2) - cocotb.fork(Clock(dut.qsfp1_rx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_rx_clk_3, 6.4, units="ns").start()) self.qsfp1_3_source = XgmiiSource(dut.qsfp1_rxd_3, dut.qsfp1_rxc_3, dut.qsfp1_rx_clk_3, dut.qsfp1_rx_rst_3) - cocotb.fork(Clock(dut.qsfp1_tx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_tx_clk_3, 6.4, units="ns").start()) self.qsfp1_3_sink = XgmiiSink(dut.qsfp1_txd_3, dut.qsfp1_txc_3, dut.qsfp1_tx_clk_3, dut.qsfp1_tx_rst_3) - cocotb.fork(Clock(dut.qsfp1_rx_clk_4, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_rx_clk_4, 6.4, units="ns").start()) self.qsfp1_4_source = XgmiiSource(dut.qsfp1_rxd_4, dut.qsfp1_rxc_4, dut.qsfp1_rx_clk_4, dut.qsfp1_rx_rst_4) - cocotb.fork(Clock(dut.qsfp1_tx_clk_4, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_tx_clk_4, 6.4, units="ns").start()) self.qsfp1_4_sink = XgmiiSink(dut.qsfp1_txd_4, dut.qsfp1_txc_4, dut.qsfp1_tx_clk_4, dut.qsfp1_tx_rst_4) - cocotb.fork(Clock(dut.qsfp2_rx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp2_rx_clk_1, 6.4, units="ns").start()) self.qsfp2_1_source = XgmiiSource(dut.qsfp2_rxd_1, dut.qsfp2_rxc_1, dut.qsfp2_rx_clk_1, dut.qsfp2_rx_rst_1) - cocotb.fork(Clock(dut.qsfp2_tx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp2_tx_clk_1, 6.4, units="ns").start()) self.qsfp2_1_sink = XgmiiSink(dut.qsfp2_txd_1, dut.qsfp2_txc_1, dut.qsfp2_tx_clk_1, dut.qsfp2_tx_rst_1) - cocotb.fork(Clock(dut.qsfp2_rx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp2_rx_clk_2, 6.4, units="ns").start()) self.qsfp2_2_source = XgmiiSource(dut.qsfp2_rxd_2, dut.qsfp2_rxc_2, dut.qsfp2_rx_clk_2, dut.qsfp2_rx_rst_2) - cocotb.fork(Clock(dut.qsfp2_tx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp2_tx_clk_2, 6.4, units="ns").start()) self.qsfp2_2_sink = XgmiiSink(dut.qsfp2_txd_2, dut.qsfp2_txc_2, dut.qsfp2_tx_clk_2, dut.qsfp2_tx_rst_2) - cocotb.fork(Clock(dut.qsfp2_rx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp2_rx_clk_3, 6.4, units="ns").start()) self.qsfp2_3_source = XgmiiSource(dut.qsfp2_rxd_3, dut.qsfp2_rxc_3, dut.qsfp2_rx_clk_3, dut.qsfp2_rx_rst_3) - cocotb.fork(Clock(dut.qsfp2_tx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp2_tx_clk_3, 6.4, units="ns").start()) self.qsfp2_3_sink = XgmiiSink(dut.qsfp2_txd_3, dut.qsfp2_txc_3, dut.qsfp2_tx_clk_3, dut.qsfp2_tx_rst_3) - cocotb.fork(Clock(dut.qsfp2_rx_clk_4, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp2_rx_clk_4, 6.4, units="ns").start()) self.qsfp2_4_source = XgmiiSource(dut.qsfp2_rxd_4, dut.qsfp2_rxc_4, dut.qsfp2_rx_clk_4, dut.qsfp2_rx_rst_4) - cocotb.fork(Clock(dut.qsfp2_tx_clk_4, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp2_tx_clk_4, 6.4, units="ns").start()) self.qsfp2_4_sink = XgmiiSink(dut.qsfp2_txd_4, dut.qsfp2_txc_4, dut.qsfp2_tx_clk_4, dut.qsfp2_tx_rst_4) - cocotb.fork(Clock(dut.qsfp3_rx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp3_rx_clk_1, 6.4, units="ns").start()) self.qsfp3_1_source = XgmiiSource(dut.qsfp3_rxd_1, dut.qsfp3_rxc_1, dut.qsfp3_rx_clk_1, dut.qsfp3_rx_rst_1) - cocotb.fork(Clock(dut.qsfp3_tx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp3_tx_clk_1, 6.4, units="ns").start()) self.qsfp3_1_sink = XgmiiSink(dut.qsfp3_txd_1, dut.qsfp3_txc_1, dut.qsfp3_tx_clk_1, dut.qsfp3_tx_rst_1) - cocotb.fork(Clock(dut.qsfp3_rx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp3_rx_clk_2, 6.4, units="ns").start()) self.qsfp3_2_source = XgmiiSource(dut.qsfp3_rxd_2, dut.qsfp3_rxc_2, dut.qsfp3_rx_clk_2, dut.qsfp3_rx_rst_2) - cocotb.fork(Clock(dut.qsfp3_tx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp3_tx_clk_2, 6.4, units="ns").start()) self.qsfp3_2_sink = XgmiiSink(dut.qsfp3_txd_2, dut.qsfp3_txc_2, dut.qsfp3_tx_clk_2, dut.qsfp3_tx_rst_2) - cocotb.fork(Clock(dut.qsfp3_rx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp3_rx_clk_3, 6.4, units="ns").start()) self.qsfp3_3_source = XgmiiSource(dut.qsfp3_rxd_3, dut.qsfp3_rxc_3, dut.qsfp3_rx_clk_3, dut.qsfp3_rx_rst_3) - cocotb.fork(Clock(dut.qsfp3_tx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp3_tx_clk_3, 6.4, units="ns").start()) self.qsfp3_3_sink = XgmiiSink(dut.qsfp3_txd_3, dut.qsfp3_txc_3, dut.qsfp3_tx_clk_3, dut.qsfp3_tx_rst_3) - cocotb.fork(Clock(dut.qsfp3_rx_clk_4, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp3_rx_clk_4, 6.4, units="ns").start()) self.qsfp3_4_source = XgmiiSource(dut.qsfp3_rxd_4, dut.qsfp3_rxc_4, dut.qsfp3_rx_clk_4, dut.qsfp3_rx_rst_4) - cocotb.fork(Clock(dut.qsfp3_tx_clk_4, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp3_tx_clk_4, 6.4, units="ns").start()) self.qsfp3_4_sink = XgmiiSink(dut.qsfp3_txd_4, dut.qsfp3_txc_4, dut.qsfp3_tx_clk_4, dut.qsfp3_tx_rst_4) async def init(self): diff --git a/example/ADM_PCIE_9V3/fpga_10g/tb/fpga_core/test_fpga_core.py b/example/ADM_PCIE_9V3/fpga_10g/tb/fpga_core/test_fpga_core.py index cdb9d8ebe..d65d197cf 100644 --- a/example/ADM_PCIE_9V3/fpga_10g/tb/fpga_core/test_fpga_core.py +++ b/example/ADM_PCIE_9V3/fpga_10g/tb/fpga_core/test_fpga_core.py @@ -45,47 +45,47 @@ class TB: self.log = SimLog("cocotb.tb") self.log.setLevel(logging.DEBUG) - cocotb.fork(Clock(dut.clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.clk, 6.4, units="ns").start()) # Ethernet - cocotb.fork(Clock(dut.qsfp_0_rx_clk_0, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_0_rx_clk_0, 6.4, units="ns").start()) self.qsfp_0_0_source = XgmiiSource(dut.qsfp_0_rxd_0, dut.qsfp_0_rxc_0, dut.qsfp_0_rx_clk_0, dut.qsfp_0_rx_rst_0) - cocotb.fork(Clock(dut.qsfp_0_tx_clk_0, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_0_tx_clk_0, 6.4, units="ns").start()) self.qsfp_0_0_sink = XgmiiSink(dut.qsfp_0_txd_0, dut.qsfp_0_txc_0, dut.qsfp_0_tx_clk_0, dut.qsfp_0_tx_rst_0) - cocotb.fork(Clock(dut.qsfp_0_rx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_0_rx_clk_1, 6.4, units="ns").start()) self.qsfp_0_1_source = XgmiiSource(dut.qsfp_0_rxd_1, dut.qsfp_0_rxc_1, dut.qsfp_0_rx_clk_1, dut.qsfp_0_rx_rst_1) - cocotb.fork(Clock(dut.qsfp_0_tx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_0_tx_clk_1, 6.4, units="ns").start()) self.qsfp_0_1_sink = XgmiiSink(dut.qsfp_0_txd_1, dut.qsfp_0_txc_1, dut.qsfp_0_tx_clk_1, dut.qsfp_0_tx_rst_1) - cocotb.fork(Clock(dut.qsfp_0_rx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_0_rx_clk_2, 6.4, units="ns").start()) self.qsfp_0_2_source = XgmiiSource(dut.qsfp_0_rxd_2, dut.qsfp_0_rxc_2, dut.qsfp_0_rx_clk_2, dut.qsfp_0_rx_rst_2) - cocotb.fork(Clock(dut.qsfp_0_tx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_0_tx_clk_2, 6.4, units="ns").start()) self.qsfp_0_2_sink = XgmiiSink(dut.qsfp_0_txd_2, dut.qsfp_0_txc_2, dut.qsfp_0_tx_clk_2, dut.qsfp_0_tx_rst_2) - cocotb.fork(Clock(dut.qsfp_0_rx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_0_rx_clk_3, 6.4, units="ns").start()) self.qsfp_0_3_source = XgmiiSource(dut.qsfp_0_rxd_3, dut.qsfp_0_rxc_3, dut.qsfp_0_rx_clk_3, dut.qsfp_0_rx_rst_3) - cocotb.fork(Clock(dut.qsfp_0_tx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_0_tx_clk_3, 6.4, units="ns").start()) self.qsfp_0_3_sink = XgmiiSink(dut.qsfp_0_txd_3, dut.qsfp_0_txc_3, dut.qsfp_0_tx_clk_3, dut.qsfp_0_tx_rst_3) - cocotb.fork(Clock(dut.qsfp_1_rx_clk_0, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_1_rx_clk_0, 6.4, units="ns").start()) self.qsfp_1_0_source = XgmiiSource(dut.qsfp_1_rxd_0, dut.qsfp_1_rxc_0, dut.qsfp_1_rx_clk_0, dut.qsfp_1_rx_rst_0) - cocotb.fork(Clock(dut.qsfp_1_tx_clk_0, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_1_tx_clk_0, 6.4, units="ns").start()) self.qsfp_1_0_sink = XgmiiSink(dut.qsfp_1_txd_0, dut.qsfp_1_txc_0, dut.qsfp_1_tx_clk_0, dut.qsfp_1_tx_rst_0) - cocotb.fork(Clock(dut.qsfp_1_rx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_1_rx_clk_1, 6.4, units="ns").start()) self.qsfp_1_1_source = XgmiiSource(dut.qsfp_1_rxd_1, dut.qsfp_1_rxc_1, dut.qsfp_1_rx_clk_1, dut.qsfp_1_rx_rst_1) - cocotb.fork(Clock(dut.qsfp_1_tx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_1_tx_clk_1, 6.4, units="ns").start()) self.qsfp_1_1_sink = XgmiiSink(dut.qsfp_1_txd_1, dut.qsfp_1_txc_1, dut.qsfp_1_tx_clk_1, dut.qsfp_1_tx_rst_1) - cocotb.fork(Clock(dut.qsfp_1_rx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_1_rx_clk_2, 6.4, units="ns").start()) self.qsfp_1_2_source = XgmiiSource(dut.qsfp_1_rxd_2, dut.qsfp_1_rxc_2, dut.qsfp_1_rx_clk_2, dut.qsfp_1_rx_rst_2) - cocotb.fork(Clock(dut.qsfp_1_tx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_1_tx_clk_2, 6.4, units="ns").start()) self.qsfp_1_2_sink = XgmiiSink(dut.qsfp_1_txd_2, dut.qsfp_1_txc_2, dut.qsfp_1_tx_clk_2, dut.qsfp_1_tx_rst_2) - cocotb.fork(Clock(dut.qsfp_1_rx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_1_rx_clk_3, 6.4, units="ns").start()) self.qsfp_1_3_source = XgmiiSource(dut.qsfp_1_rxd_3, dut.qsfp_1_rxc_3, dut.qsfp_1_rx_clk_3, dut.qsfp_1_rx_rst_3) - cocotb.fork(Clock(dut.qsfp_1_tx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_1_tx_clk_3, 6.4, units="ns").start()) self.qsfp_1_3_sink = XgmiiSink(dut.qsfp_1_txd_3, dut.qsfp_1_txc_3, dut.qsfp_1_tx_clk_3, dut.qsfp_1_tx_rst_3) dut.user_sw.setimmediatevalue(0) diff --git a/example/ADM_PCIE_9V3/fpga_25g/tb/fpga_core/test_fpga_core.py b/example/ADM_PCIE_9V3/fpga_25g/tb/fpga_core/test_fpga_core.py index 529f2d105..ec5c34f30 100644 --- a/example/ADM_PCIE_9V3/fpga_25g/tb/fpga_core/test_fpga_core.py +++ b/example/ADM_PCIE_9V3/fpga_25g/tb/fpga_core/test_fpga_core.py @@ -45,47 +45,47 @@ class TB: self.log = SimLog("cocotb.tb") self.log.setLevel(logging.DEBUG) - cocotb.fork(Clock(dut.clk, 2.56, units="ns").start()) + cocotb.start_soon(Clock(dut.clk, 2.56, units="ns").start()) # Ethernet - cocotb.fork(Clock(dut.qsfp_0_rx_clk_0, 2.56, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_0_rx_clk_0, 2.56, units="ns").start()) self.qsfp_0_0_source = XgmiiSource(dut.qsfp_0_rxd_0, dut.qsfp_0_rxc_0, dut.qsfp_0_rx_clk_0, dut.qsfp_0_rx_rst_0) - cocotb.fork(Clock(dut.qsfp_0_tx_clk_0, 2.56, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_0_tx_clk_0, 2.56, units="ns").start()) self.qsfp_0_0_sink = XgmiiSink(dut.qsfp_0_txd_0, dut.qsfp_0_txc_0, dut.qsfp_0_tx_clk_0, dut.qsfp_0_tx_rst_0) - cocotb.fork(Clock(dut.qsfp_0_rx_clk_1, 2.56, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_0_rx_clk_1, 2.56, units="ns").start()) self.qsfp_0_1_source = XgmiiSource(dut.qsfp_0_rxd_1, dut.qsfp_0_rxc_1, dut.qsfp_0_rx_clk_1, dut.qsfp_0_rx_rst_1) - cocotb.fork(Clock(dut.qsfp_0_tx_clk_1, 2.56, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_0_tx_clk_1, 2.56, units="ns").start()) self.qsfp_0_1_sink = XgmiiSink(dut.qsfp_0_txd_1, dut.qsfp_0_txc_1, dut.qsfp_0_tx_clk_1, dut.qsfp_0_tx_rst_1) - cocotb.fork(Clock(dut.qsfp_0_rx_clk_2, 2.56, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_0_rx_clk_2, 2.56, units="ns").start()) self.qsfp_0_2_source = XgmiiSource(dut.qsfp_0_rxd_2, dut.qsfp_0_rxc_2, dut.qsfp_0_rx_clk_2, dut.qsfp_0_rx_rst_2) - cocotb.fork(Clock(dut.qsfp_0_tx_clk_2, 2.56, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_0_tx_clk_2, 2.56, units="ns").start()) self.qsfp_0_2_sink = XgmiiSink(dut.qsfp_0_txd_2, dut.qsfp_0_txc_2, dut.qsfp_0_tx_clk_2, dut.qsfp_0_tx_rst_2) - cocotb.fork(Clock(dut.qsfp_0_rx_clk_3, 2.56, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_0_rx_clk_3, 2.56, units="ns").start()) self.qsfp_0_3_source = XgmiiSource(dut.qsfp_0_rxd_3, dut.qsfp_0_rxc_3, dut.qsfp_0_rx_clk_3, dut.qsfp_0_rx_rst_3) - cocotb.fork(Clock(dut.qsfp_0_tx_clk_3, 2.56, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_0_tx_clk_3, 2.56, units="ns").start()) self.qsfp_0_3_sink = XgmiiSink(dut.qsfp_0_txd_3, dut.qsfp_0_txc_3, dut.qsfp_0_tx_clk_3, dut.qsfp_0_tx_rst_3) - cocotb.fork(Clock(dut.qsfp_1_rx_clk_0, 2.56, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_1_rx_clk_0, 2.56, units="ns").start()) self.qsfp_1_0_source = XgmiiSource(dut.qsfp_1_rxd_0, dut.qsfp_1_rxc_0, dut.qsfp_1_rx_clk_0, dut.qsfp_1_rx_rst_0) - cocotb.fork(Clock(dut.qsfp_1_tx_clk_0, 2.56, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_1_tx_clk_0, 2.56, units="ns").start()) self.qsfp_1_0_sink = XgmiiSink(dut.qsfp_1_txd_0, dut.qsfp_1_txc_0, dut.qsfp_1_tx_clk_0, dut.qsfp_1_tx_rst_0) - cocotb.fork(Clock(dut.qsfp_1_rx_clk_1, 2.56, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_1_rx_clk_1, 2.56, units="ns").start()) self.qsfp_1_1_source = XgmiiSource(dut.qsfp_1_rxd_1, dut.qsfp_1_rxc_1, dut.qsfp_1_rx_clk_1, dut.qsfp_1_rx_rst_1) - cocotb.fork(Clock(dut.qsfp_1_tx_clk_1, 2.56, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_1_tx_clk_1, 2.56, units="ns").start()) self.qsfp_1_1_sink = XgmiiSink(dut.qsfp_1_txd_1, dut.qsfp_1_txc_1, dut.qsfp_1_tx_clk_1, dut.qsfp_1_tx_rst_1) - cocotb.fork(Clock(dut.qsfp_1_rx_clk_2, 2.56, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_1_rx_clk_2, 2.56, units="ns").start()) self.qsfp_1_2_source = XgmiiSource(dut.qsfp_1_rxd_2, dut.qsfp_1_rxc_2, dut.qsfp_1_rx_clk_2, dut.qsfp_1_rx_rst_2) - cocotb.fork(Clock(dut.qsfp_1_tx_clk_2, 2.56, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_1_tx_clk_2, 2.56, units="ns").start()) self.qsfp_1_2_sink = XgmiiSink(dut.qsfp_1_txd_2, dut.qsfp_1_txc_2, dut.qsfp_1_tx_clk_2, dut.qsfp_1_tx_rst_2) - cocotb.fork(Clock(dut.qsfp_1_rx_clk_3, 2.56, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_1_rx_clk_3, 2.56, units="ns").start()) self.qsfp_1_3_source = XgmiiSource(dut.qsfp_1_rxd_3, dut.qsfp_1_rxc_3, dut.qsfp_1_rx_clk_3, dut.qsfp_1_rx_rst_3) - cocotb.fork(Clock(dut.qsfp_1_tx_clk_3, 2.56, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_1_tx_clk_3, 2.56, units="ns").start()) self.qsfp_1_3_sink = XgmiiSink(dut.qsfp_1_txd_3, dut.qsfp_1_txc_3, dut.qsfp_1_tx_clk_3, dut.qsfp_1_tx_rst_3) dut.user_sw.setimmediatevalue(0) diff --git a/example/ATLYS/fpga/tb/fpga_core/test_fpga_core.py b/example/ATLYS/fpga/tb/fpga_core/test_fpga_core.py index 5814e79ab..47913a947 100644 --- a/example/ATLYS/fpga/tb/fpga_core/test_fpga_core.py +++ b/example/ATLYS/fpga/tb/fpga_core/test_fpga_core.py @@ -45,7 +45,7 @@ class TB: self.log = SimLog("cocotb.tb") self.log.setLevel(logging.DEBUG) - cocotb.fork(Clock(dut.clk, 8, units="ns").start()) + cocotb.start_soon(Clock(dut.clk, 8, units="ns").start()) # Ethernet self.gmii_phy = GmiiPhy(dut.phy_txd, dut.phy_tx_er, dut.phy_tx_en, dut.phy_tx_clk, dut.phy_gtx_clk, diff --git a/example/AU200/fpga_10g/tb/fpga_core/test_fpga_core.py b/example/AU200/fpga_10g/tb/fpga_core/test_fpga_core.py index 187af7189..37a47626b 100644 --- a/example/AU200/fpga_10g/tb/fpga_core/test_fpga_core.py +++ b/example/AU200/fpga_10g/tb/fpga_core/test_fpga_core.py @@ -45,47 +45,47 @@ class TB: self.log = SimLog("cocotb.tb") self.log.setLevel(logging.DEBUG) - cocotb.fork(Clock(dut.clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.clk, 6.4, units="ns").start()) # Ethernet - cocotb.fork(Clock(dut.qsfp0_rx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp0_rx_clk_1, 6.4, units="ns").start()) self.qsfp0_1_source = XgmiiSource(dut.qsfp0_rxd_1, dut.qsfp0_rxc_1, dut.qsfp0_rx_clk_1, dut.qsfp0_rx_rst_1) - cocotb.fork(Clock(dut.qsfp0_tx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp0_tx_clk_1, 6.4, units="ns").start()) self.qsfp0_1_sink = XgmiiSink(dut.qsfp0_txd_1, dut.qsfp0_txc_1, dut.qsfp0_tx_clk_1, dut.qsfp0_tx_rst_1) - cocotb.fork(Clock(dut.qsfp0_rx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp0_rx_clk_2, 6.4, units="ns").start()) self.qsfp0_2_source = XgmiiSource(dut.qsfp0_rxd_2, dut.qsfp0_rxc_2, dut.qsfp0_rx_clk_2, dut.qsfp0_rx_rst_2) - cocotb.fork(Clock(dut.qsfp0_tx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp0_tx_clk_2, 6.4, units="ns").start()) self.qsfp0_2_sink = XgmiiSink(dut.qsfp0_txd_2, dut.qsfp0_txc_2, dut.qsfp0_tx_clk_2, dut.qsfp0_tx_rst_2) - cocotb.fork(Clock(dut.qsfp0_rx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp0_rx_clk_3, 6.4, units="ns").start()) self.qsfp0_3_source = XgmiiSource(dut.qsfp0_rxd_3, dut.qsfp0_rxc_3, dut.qsfp0_rx_clk_3, dut.qsfp0_rx_rst_3) - cocotb.fork(Clock(dut.qsfp0_tx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp0_tx_clk_3, 6.4, units="ns").start()) self.qsfp0_3_sink = XgmiiSink(dut.qsfp0_txd_3, dut.qsfp0_txc_3, dut.qsfp0_tx_clk_3, dut.qsfp0_tx_rst_3) - cocotb.fork(Clock(dut.qsfp0_rx_clk_4, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp0_rx_clk_4, 6.4, units="ns").start()) self.qsfp0_4_source = XgmiiSource(dut.qsfp0_rxd_4, dut.qsfp0_rxc_4, dut.qsfp0_rx_clk_4, dut.qsfp0_rx_rst_4) - cocotb.fork(Clock(dut.qsfp0_tx_clk_4, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp0_tx_clk_4, 6.4, units="ns").start()) self.qsfp0_4_sink = XgmiiSink(dut.qsfp0_txd_4, dut.qsfp0_txc_4, dut.qsfp0_tx_clk_4, dut.qsfp0_tx_rst_4) - cocotb.fork(Clock(dut.qsfp1_rx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_rx_clk_1, 6.4, units="ns").start()) self.qsfp1_1_source = XgmiiSource(dut.qsfp1_rxd_1, dut.qsfp1_rxc_1, dut.qsfp1_rx_clk_1, dut.qsfp1_rx_rst_1) - cocotb.fork(Clock(dut.qsfp1_tx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_tx_clk_1, 6.4, units="ns").start()) self.qsfp1_1_sink = XgmiiSink(dut.qsfp1_txd_1, dut.qsfp1_txc_1, dut.qsfp1_tx_clk_1, dut.qsfp1_tx_rst_1) - cocotb.fork(Clock(dut.qsfp1_rx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_rx_clk_2, 6.4, units="ns").start()) self.qsfp1_2_source = XgmiiSource(dut.qsfp1_rxd_2, dut.qsfp1_rxc_2, dut.qsfp1_rx_clk_2, dut.qsfp1_rx_rst_2) - cocotb.fork(Clock(dut.qsfp1_tx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_tx_clk_2, 6.4, units="ns").start()) self.qsfp1_2_sink = XgmiiSink(dut.qsfp1_txd_2, dut.qsfp1_txc_2, dut.qsfp1_tx_clk_2, dut.qsfp1_tx_rst_2) - cocotb.fork(Clock(dut.qsfp1_rx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_rx_clk_3, 6.4, units="ns").start()) self.qsfp1_3_source = XgmiiSource(dut.qsfp1_rxd_3, dut.qsfp1_rxc_3, dut.qsfp1_rx_clk_3, dut.qsfp1_rx_rst_3) - cocotb.fork(Clock(dut.qsfp1_tx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_tx_clk_3, 6.4, units="ns").start()) self.qsfp1_3_sink = XgmiiSink(dut.qsfp1_txd_3, dut.qsfp1_txc_3, dut.qsfp1_tx_clk_3, dut.qsfp1_tx_rst_3) - cocotb.fork(Clock(dut.qsfp1_rx_clk_4, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_rx_clk_4, 6.4, units="ns").start()) self.qsfp1_4_source = XgmiiSource(dut.qsfp1_rxd_4, dut.qsfp1_rxc_4, dut.qsfp1_rx_clk_4, dut.qsfp1_rx_rst_4) - cocotb.fork(Clock(dut.qsfp1_tx_clk_4, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_tx_clk_4, 6.4, units="ns").start()) self.qsfp1_4_sink = XgmiiSink(dut.qsfp1_txd_4, dut.qsfp1_txc_4, dut.qsfp1_tx_clk_4, dut.qsfp1_tx_rst_4) dut.sw.setimmediatevalue(0) diff --git a/example/AU250/fpga_10g/tb/fpga_core/test_fpga_core.py b/example/AU250/fpga_10g/tb/fpga_core/test_fpga_core.py index 187af7189..37a47626b 100644 --- a/example/AU250/fpga_10g/tb/fpga_core/test_fpga_core.py +++ b/example/AU250/fpga_10g/tb/fpga_core/test_fpga_core.py @@ -45,47 +45,47 @@ class TB: self.log = SimLog("cocotb.tb") self.log.setLevel(logging.DEBUG) - cocotb.fork(Clock(dut.clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.clk, 6.4, units="ns").start()) # Ethernet - cocotb.fork(Clock(dut.qsfp0_rx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp0_rx_clk_1, 6.4, units="ns").start()) self.qsfp0_1_source = XgmiiSource(dut.qsfp0_rxd_1, dut.qsfp0_rxc_1, dut.qsfp0_rx_clk_1, dut.qsfp0_rx_rst_1) - cocotb.fork(Clock(dut.qsfp0_tx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp0_tx_clk_1, 6.4, units="ns").start()) self.qsfp0_1_sink = XgmiiSink(dut.qsfp0_txd_1, dut.qsfp0_txc_1, dut.qsfp0_tx_clk_1, dut.qsfp0_tx_rst_1) - cocotb.fork(Clock(dut.qsfp0_rx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp0_rx_clk_2, 6.4, units="ns").start()) self.qsfp0_2_source = XgmiiSource(dut.qsfp0_rxd_2, dut.qsfp0_rxc_2, dut.qsfp0_rx_clk_2, dut.qsfp0_rx_rst_2) - cocotb.fork(Clock(dut.qsfp0_tx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp0_tx_clk_2, 6.4, units="ns").start()) self.qsfp0_2_sink = XgmiiSink(dut.qsfp0_txd_2, dut.qsfp0_txc_2, dut.qsfp0_tx_clk_2, dut.qsfp0_tx_rst_2) - cocotb.fork(Clock(dut.qsfp0_rx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp0_rx_clk_3, 6.4, units="ns").start()) self.qsfp0_3_source = XgmiiSource(dut.qsfp0_rxd_3, dut.qsfp0_rxc_3, dut.qsfp0_rx_clk_3, dut.qsfp0_rx_rst_3) - cocotb.fork(Clock(dut.qsfp0_tx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp0_tx_clk_3, 6.4, units="ns").start()) self.qsfp0_3_sink = XgmiiSink(dut.qsfp0_txd_3, dut.qsfp0_txc_3, dut.qsfp0_tx_clk_3, dut.qsfp0_tx_rst_3) - cocotb.fork(Clock(dut.qsfp0_rx_clk_4, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp0_rx_clk_4, 6.4, units="ns").start()) self.qsfp0_4_source = XgmiiSource(dut.qsfp0_rxd_4, dut.qsfp0_rxc_4, dut.qsfp0_rx_clk_4, dut.qsfp0_rx_rst_4) - cocotb.fork(Clock(dut.qsfp0_tx_clk_4, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp0_tx_clk_4, 6.4, units="ns").start()) self.qsfp0_4_sink = XgmiiSink(dut.qsfp0_txd_4, dut.qsfp0_txc_4, dut.qsfp0_tx_clk_4, dut.qsfp0_tx_rst_4) - cocotb.fork(Clock(dut.qsfp1_rx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_rx_clk_1, 6.4, units="ns").start()) self.qsfp1_1_source = XgmiiSource(dut.qsfp1_rxd_1, dut.qsfp1_rxc_1, dut.qsfp1_rx_clk_1, dut.qsfp1_rx_rst_1) - cocotb.fork(Clock(dut.qsfp1_tx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_tx_clk_1, 6.4, units="ns").start()) self.qsfp1_1_sink = XgmiiSink(dut.qsfp1_txd_1, dut.qsfp1_txc_1, dut.qsfp1_tx_clk_1, dut.qsfp1_tx_rst_1) - cocotb.fork(Clock(dut.qsfp1_rx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_rx_clk_2, 6.4, units="ns").start()) self.qsfp1_2_source = XgmiiSource(dut.qsfp1_rxd_2, dut.qsfp1_rxc_2, dut.qsfp1_rx_clk_2, dut.qsfp1_rx_rst_2) - cocotb.fork(Clock(dut.qsfp1_tx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_tx_clk_2, 6.4, units="ns").start()) self.qsfp1_2_sink = XgmiiSink(dut.qsfp1_txd_2, dut.qsfp1_txc_2, dut.qsfp1_tx_clk_2, dut.qsfp1_tx_rst_2) - cocotb.fork(Clock(dut.qsfp1_rx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_rx_clk_3, 6.4, units="ns").start()) self.qsfp1_3_source = XgmiiSource(dut.qsfp1_rxd_3, dut.qsfp1_rxc_3, dut.qsfp1_rx_clk_3, dut.qsfp1_rx_rst_3) - cocotb.fork(Clock(dut.qsfp1_tx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_tx_clk_3, 6.4, units="ns").start()) self.qsfp1_3_sink = XgmiiSink(dut.qsfp1_txd_3, dut.qsfp1_txc_3, dut.qsfp1_tx_clk_3, dut.qsfp1_tx_rst_3) - cocotb.fork(Clock(dut.qsfp1_rx_clk_4, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_rx_clk_4, 6.4, units="ns").start()) self.qsfp1_4_source = XgmiiSource(dut.qsfp1_rxd_4, dut.qsfp1_rxc_4, dut.qsfp1_rx_clk_4, dut.qsfp1_rx_rst_4) - cocotb.fork(Clock(dut.qsfp1_tx_clk_4, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_tx_clk_4, 6.4, units="ns").start()) self.qsfp1_4_sink = XgmiiSink(dut.qsfp1_txd_4, dut.qsfp1_txc_4, dut.qsfp1_tx_clk_4, dut.qsfp1_tx_rst_4) dut.sw.setimmediatevalue(0) diff --git a/example/AU280/fpga_10g/tb/fpga_core/test_fpga_core.py b/example/AU280/fpga_10g/tb/fpga_core/test_fpga_core.py index e29cee825..e989629b2 100644 --- a/example/AU280/fpga_10g/tb/fpga_core/test_fpga_core.py +++ b/example/AU280/fpga_10g/tb/fpga_core/test_fpga_core.py @@ -45,47 +45,47 @@ class TB: self.log = SimLog("cocotb.tb") self.log.setLevel(logging.DEBUG) - cocotb.fork(Clock(dut.clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.clk, 6.4, units="ns").start()) # Ethernet - cocotb.fork(Clock(dut.qsfp0_rx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp0_rx_clk_1, 6.4, units="ns").start()) self.qsfp0_1_source = XgmiiSource(dut.qsfp0_rxd_1, dut.qsfp0_rxc_1, dut.qsfp0_rx_clk_1, dut.qsfp0_rx_rst_1) - cocotb.fork(Clock(dut.qsfp0_tx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp0_tx_clk_1, 6.4, units="ns").start()) self.qsfp0_1_sink = XgmiiSink(dut.qsfp0_txd_1, dut.qsfp0_txc_1, dut.qsfp0_tx_clk_1, dut.qsfp0_tx_rst_1) - cocotb.fork(Clock(dut.qsfp0_rx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp0_rx_clk_2, 6.4, units="ns").start()) self.qsfp0_2_source = XgmiiSource(dut.qsfp0_rxd_2, dut.qsfp0_rxc_2, dut.qsfp0_rx_clk_2, dut.qsfp0_rx_rst_2) - cocotb.fork(Clock(dut.qsfp0_tx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp0_tx_clk_2, 6.4, units="ns").start()) self.qsfp0_2_sink = XgmiiSink(dut.qsfp0_txd_2, dut.qsfp0_txc_2, dut.qsfp0_tx_clk_2, dut.qsfp0_tx_rst_2) - cocotb.fork(Clock(dut.qsfp0_rx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp0_rx_clk_3, 6.4, units="ns").start()) self.qsfp0_3_source = XgmiiSource(dut.qsfp0_rxd_3, dut.qsfp0_rxc_3, dut.qsfp0_rx_clk_3, dut.qsfp0_rx_rst_3) - cocotb.fork(Clock(dut.qsfp0_tx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp0_tx_clk_3, 6.4, units="ns").start()) self.qsfp0_3_sink = XgmiiSink(dut.qsfp0_txd_3, dut.qsfp0_txc_3, dut.qsfp0_tx_clk_3, dut.qsfp0_tx_rst_3) - cocotb.fork(Clock(dut.qsfp0_rx_clk_4, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp0_rx_clk_4, 6.4, units="ns").start()) self.qsfp0_4_source = XgmiiSource(dut.qsfp0_rxd_4, dut.qsfp0_rxc_4, dut.qsfp0_rx_clk_4, dut.qsfp0_rx_rst_4) - cocotb.fork(Clock(dut.qsfp0_tx_clk_4, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp0_tx_clk_4, 6.4, units="ns").start()) self.qsfp0_4_sink = XgmiiSink(dut.qsfp0_txd_4, dut.qsfp0_txc_4, dut.qsfp0_tx_clk_4, dut.qsfp0_tx_rst_4) - cocotb.fork(Clock(dut.qsfp1_rx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_rx_clk_1, 6.4, units="ns").start()) self.qsfp1_1_source = XgmiiSource(dut.qsfp1_rxd_1, dut.qsfp1_rxc_1, dut.qsfp1_rx_clk_1, dut.qsfp1_rx_rst_1) - cocotb.fork(Clock(dut.qsfp1_tx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_tx_clk_1, 6.4, units="ns").start()) self.qsfp1_1_sink = XgmiiSink(dut.qsfp1_txd_1, dut.qsfp1_txc_1, dut.qsfp1_tx_clk_1, dut.qsfp1_tx_rst_1) - cocotb.fork(Clock(dut.qsfp1_rx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_rx_clk_2, 6.4, units="ns").start()) self.qsfp1_2_source = XgmiiSource(dut.qsfp1_rxd_2, dut.qsfp1_rxc_2, dut.qsfp1_rx_clk_2, dut.qsfp1_rx_rst_2) - cocotb.fork(Clock(dut.qsfp1_tx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_tx_clk_2, 6.4, units="ns").start()) self.qsfp1_2_sink = XgmiiSink(dut.qsfp1_txd_2, dut.qsfp1_txc_2, dut.qsfp1_tx_clk_2, dut.qsfp1_tx_rst_2) - cocotb.fork(Clock(dut.qsfp1_rx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_rx_clk_3, 6.4, units="ns").start()) self.qsfp1_3_source = XgmiiSource(dut.qsfp1_rxd_3, dut.qsfp1_rxc_3, dut.qsfp1_rx_clk_3, dut.qsfp1_rx_rst_3) - cocotb.fork(Clock(dut.qsfp1_tx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_tx_clk_3, 6.4, units="ns").start()) self.qsfp1_3_sink = XgmiiSink(dut.qsfp1_txd_3, dut.qsfp1_txc_3, dut.qsfp1_tx_clk_3, dut.qsfp1_tx_rst_3) - cocotb.fork(Clock(dut.qsfp1_rx_clk_4, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_rx_clk_4, 6.4, units="ns").start()) self.qsfp1_4_source = XgmiiSource(dut.qsfp1_rxd_4, dut.qsfp1_rxc_4, dut.qsfp1_rx_clk_4, dut.qsfp1_rx_rst_4) - cocotb.fork(Clock(dut.qsfp1_tx_clk_4, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_tx_clk_4, 6.4, units="ns").start()) self.qsfp1_4_sink = XgmiiSink(dut.qsfp1_txd_4, dut.qsfp1_txc_4, dut.qsfp1_tx_clk_4, dut.qsfp1_tx_rst_4) async def init(self): diff --git a/example/AU50/fpga_10g/tb/fpga_core/test_fpga_core.py b/example/AU50/fpga_10g/tb/fpga_core/test_fpga_core.py index 0733144b9..8921956ea 100644 --- a/example/AU50/fpga_10g/tb/fpga_core/test_fpga_core.py +++ b/example/AU50/fpga_10g/tb/fpga_core/test_fpga_core.py @@ -45,27 +45,27 @@ class TB: self.log = SimLog("cocotb.tb") self.log.setLevel(logging.DEBUG) - cocotb.fork(Clock(dut.clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.clk, 6.4, units="ns").start()) # Ethernet - cocotb.fork(Clock(dut.qsfp_rx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_rx_clk_1, 6.4, units="ns").start()) self.qsfp_1_source = XgmiiSource(dut.qsfp_rxd_1, dut.qsfp_rxc_1, dut.qsfp_rx_clk_1, dut.qsfp_rx_rst_1) - cocotb.fork(Clock(dut.qsfp_tx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_tx_clk_1, 6.4, units="ns").start()) self.qsfp_1_sink = XgmiiSink(dut.qsfp_txd_1, dut.qsfp_txc_1, dut.qsfp_tx_clk_1, dut.qsfp_tx_rst_1) - cocotb.fork(Clock(dut.qsfp_rx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_rx_clk_2, 6.4, units="ns").start()) self.qsfp_2_source = XgmiiSource(dut.qsfp_rxd_2, dut.qsfp_rxc_2, dut.qsfp_rx_clk_2, dut.qsfp_rx_rst_2) - cocotb.fork(Clock(dut.qsfp_tx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_tx_clk_2, 6.4, units="ns").start()) self.qsfp_2_sink = XgmiiSink(dut.qsfp_txd_2, dut.qsfp_txc_2, dut.qsfp_tx_clk_2, dut.qsfp_tx_rst_2) - cocotb.fork(Clock(dut.qsfp_rx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_rx_clk_3, 6.4, units="ns").start()) self.qsfp_3_source = XgmiiSource(dut.qsfp_rxd_3, dut.qsfp_rxc_3, dut.qsfp_rx_clk_3, dut.qsfp_rx_rst_3) - cocotb.fork(Clock(dut.qsfp_tx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_tx_clk_3, 6.4, units="ns").start()) self.qsfp_3_sink = XgmiiSink(dut.qsfp_txd_3, dut.qsfp_txc_3, dut.qsfp_tx_clk_3, dut.qsfp_tx_rst_3) - cocotb.fork(Clock(dut.qsfp_rx_clk_4, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_rx_clk_4, 6.4, units="ns").start()) self.qsfp_4_source = XgmiiSource(dut.qsfp_rxd_4, dut.qsfp_rxc_4, dut.qsfp_rx_clk_4, dut.qsfp_rx_rst_4) - cocotb.fork(Clock(dut.qsfp_tx_clk_4, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_tx_clk_4, 6.4, units="ns").start()) self.qsfp_4_sink = XgmiiSink(dut.qsfp_txd_4, dut.qsfp_txc_4, dut.qsfp_tx_clk_4, dut.qsfp_tx_rst_4) async def init(self): diff --git a/example/Arty/fpga/tb/fpga_core/test_fpga_core.py b/example/Arty/fpga/tb/fpga_core/test_fpga_core.py index 82c4a0dfc..f4a58a58d 100644 --- a/example/Arty/fpga/tb/fpga_core/test_fpga_core.py +++ b/example/Arty/fpga/tb/fpga_core/test_fpga_core.py @@ -45,7 +45,7 @@ class TB: self.log = SimLog("cocotb.tb") self.log.setLevel(logging.DEBUG) - cocotb.fork(Clock(dut.clk, 8, units="ns").start()) + cocotb.start_soon(Clock(dut.clk, 8, units="ns").start()) self.mii_phy = MiiPhy(dut.phy_txd, None, dut.phy_tx_en, dut.phy_tx_clk, dut.phy_rxd, dut.phy_rx_er, dut.phy_rx_dv, dut.phy_rx_clk, speed=speed) diff --git a/example/C10LP/fpga/tb/fpga_core/test_fpga_core.py b/example/C10LP/fpga/tb/fpga_core/test_fpga_core.py index cd3a1be2a..331c63817 100644 --- a/example/C10LP/fpga/tb/fpga_core/test_fpga_core.py +++ b/example/C10LP/fpga/tb/fpga_core/test_fpga_core.py @@ -55,7 +55,7 @@ class TB: dut.clk.setimmediatevalue(0) dut.clk90.setimmediatevalue(0) - cocotb.fork(self._run_clk()) + cocotb.start_soon(self._run_clk()) async def init(self): diff --git a/example/DE2-115/fpga/tb/fpga_core/test_fpga_core.py b/example/DE2-115/fpga/tb/fpga_core/test_fpga_core.py index e0b88ec9f..c24ab12e1 100644 --- a/example/DE2-115/fpga/tb/fpga_core/test_fpga_core.py +++ b/example/DE2-115/fpga/tb/fpga_core/test_fpga_core.py @@ -59,7 +59,7 @@ class TB: dut.clk.setimmediatevalue(0) dut.clk90.setimmediatevalue(0) - cocotb.fork(self._run_clk()) + cocotb.start_soon(self._run_clk()) async def init(self): diff --git a/example/DE5-Net/fpga/tb/fpga_core/test_fpga_core.py b/example/DE5-Net/fpga/tb/fpga_core/test_fpga_core.py index d22b15861..89c239e2c 100644 --- a/example/DE5-Net/fpga/tb/fpga_core/test_fpga_core.py +++ b/example/DE5-Net/fpga/tb/fpga_core/test_fpga_core.py @@ -45,7 +45,7 @@ class TB: self.log = SimLog("cocotb.tb") self.log.setLevel(logging.DEBUG) - cocotb.fork(Clock(dut.clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.clk, 6.4, units="ns").start()) # Ethernet self.sfp_a_source = XgmiiSource(dut.sfp_a_rxd, dut.sfp_a_rxc, dut.clk, dut.rst) diff --git a/example/ExaNIC_X10/fpga/tb/fpga_core/test_fpga_core.py b/example/ExaNIC_X10/fpga/tb/fpga_core/test_fpga_core.py index 0d3a7ddf6..9907cad0b 100644 --- a/example/ExaNIC_X10/fpga/tb/fpga_core/test_fpga_core.py +++ b/example/ExaNIC_X10/fpga/tb/fpga_core/test_fpga_core.py @@ -45,17 +45,17 @@ class TB: self.log = SimLog("cocotb.tb") self.log.setLevel(logging.DEBUG) - cocotb.fork(Clock(dut.clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.clk, 6.4, units="ns").start()) # Ethernet - cocotb.fork(Clock(dut.sfp_1_rx_clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.sfp_1_rx_clk, 6.4, units="ns").start()) self.sfp_1_source = XgmiiSource(dut.sfp_1_rxd, dut.sfp_1_rxc, dut.sfp_1_rx_clk, dut.sfp_1_rx_rst) - cocotb.fork(Clock(dut.sfp_1_tx_clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.sfp_1_tx_clk, 6.4, units="ns").start()) self.sfp_1_sink = XgmiiSink(dut.sfp_1_txd, dut.sfp_1_txc, dut.sfp_1_tx_clk, dut.sfp_1_tx_rst) - cocotb.fork(Clock(dut.sfp_2_rx_clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.sfp_2_rx_clk, 6.4, units="ns").start()) self.sfp_2_source = XgmiiSource(dut.sfp_2_rxd, dut.sfp_2_rxc, dut.sfp_2_rx_clk, dut.sfp_2_rx_rst) - cocotb.fork(Clock(dut.sfp_2_tx_clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.sfp_2_tx_clk, 6.4, units="ns").start()) self.sfp_2_sink = XgmiiSink(dut.sfp_2_txd, dut.sfp_2_txc, dut.sfp_2_tx_clk, dut.sfp_2_tx_rst) async def init(self): diff --git a/example/ExaNIC_X25/fpga_10g/tb/fpga_core/test_fpga_core.py b/example/ExaNIC_X25/fpga_10g/tb/fpga_core/test_fpga_core.py index 0d3a7ddf6..9907cad0b 100644 --- a/example/ExaNIC_X25/fpga_10g/tb/fpga_core/test_fpga_core.py +++ b/example/ExaNIC_X25/fpga_10g/tb/fpga_core/test_fpga_core.py @@ -45,17 +45,17 @@ class TB: self.log = SimLog("cocotb.tb") self.log.setLevel(logging.DEBUG) - cocotb.fork(Clock(dut.clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.clk, 6.4, units="ns").start()) # Ethernet - cocotb.fork(Clock(dut.sfp_1_rx_clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.sfp_1_rx_clk, 6.4, units="ns").start()) self.sfp_1_source = XgmiiSource(dut.sfp_1_rxd, dut.sfp_1_rxc, dut.sfp_1_rx_clk, dut.sfp_1_rx_rst) - cocotb.fork(Clock(dut.sfp_1_tx_clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.sfp_1_tx_clk, 6.4, units="ns").start()) self.sfp_1_sink = XgmiiSink(dut.sfp_1_txd, dut.sfp_1_txc, dut.sfp_1_tx_clk, dut.sfp_1_tx_rst) - cocotb.fork(Clock(dut.sfp_2_rx_clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.sfp_2_rx_clk, 6.4, units="ns").start()) self.sfp_2_source = XgmiiSource(dut.sfp_2_rxd, dut.sfp_2_rxc, dut.sfp_2_rx_clk, dut.sfp_2_rx_rst) - cocotb.fork(Clock(dut.sfp_2_tx_clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.sfp_2_tx_clk, 6.4, units="ns").start()) self.sfp_2_sink = XgmiiSink(dut.sfp_2_txd, dut.sfp_2_txc, dut.sfp_2_tx_clk, dut.sfp_2_tx_rst) async def init(self): diff --git a/example/HTG9200/fpga_10g/tb/fpga_core/test_fpga_core.py b/example/HTG9200/fpga_10g/tb/fpga_core/test_fpga_core.py index c72d53c5c..e1eb8dea9 100644 --- a/example/HTG9200/fpga_10g/tb/fpga_core/test_fpga_core.py +++ b/example/HTG9200/fpga_10g/tb/fpga_core/test_fpga_core.py @@ -45,7 +45,7 @@ class TB: self.log = SimLog("cocotb.tb") self.log.setLevel(logging.DEBUG) - cocotb.fork(Clock(dut.clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.clk, 6.4, units="ns").start()) dut.btn.setimmediatevalue(0) dut.sw.setimmediatevalue(0) @@ -54,184 +54,184 @@ class TB: dut.uart_rts.setimmediatevalue(1) # Ethernet - cocotb.fork(Clock(dut.qsfp_1_rx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_1_rx_clk_1, 6.4, units="ns").start()) self.qsfp_1_1_source = XgmiiSource(dut.qsfp_1_rxd_1, dut.qsfp_1_rxc_1, dut.qsfp_1_rx_clk_1, dut.qsfp_1_rx_rst_1) - cocotb.fork(Clock(dut.qsfp_1_tx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_1_tx_clk_1, 6.4, units="ns").start()) self.qsfp_1_1_sink = XgmiiSink(dut.qsfp_1_txd_1, dut.qsfp_1_txc_1, dut.qsfp_1_tx_clk_1, dut.qsfp_1_tx_rst_1) - cocotb.fork(Clock(dut.qsfp_1_rx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_1_rx_clk_2, 6.4, units="ns").start()) self.qsfp_1_2_source = XgmiiSource(dut.qsfp_1_rxd_2, dut.qsfp_1_rxc_2, dut.qsfp_1_rx_clk_2, dut.qsfp_1_rx_rst_2) - cocotb.fork(Clock(dut.qsfp_1_tx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_1_tx_clk_2, 6.4, units="ns").start()) self.qsfp_1_2_sink = XgmiiSink(dut.qsfp_1_txd_2, dut.qsfp_1_txc_2, dut.qsfp_1_tx_clk_2, dut.qsfp_1_tx_rst_2) - cocotb.fork(Clock(dut.qsfp_1_rx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_1_rx_clk_3, 6.4, units="ns").start()) self.qsfp_1_3_source = XgmiiSource(dut.qsfp_1_rxd_3, dut.qsfp_1_rxc_3, dut.qsfp_1_rx_clk_3, dut.qsfp_1_rx_rst_3) - cocotb.fork(Clock(dut.qsfp_1_tx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_1_tx_clk_3, 6.4, units="ns").start()) self.qsfp_1_3_sink = XgmiiSink(dut.qsfp_1_txd_3, dut.qsfp_1_txc_3, dut.qsfp_1_tx_clk_3, dut.qsfp_1_tx_rst_3) - cocotb.fork(Clock(dut.qsfp_1_rx_clk_4, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_1_rx_clk_4, 6.4, units="ns").start()) self.qsfp_1_4_source = XgmiiSource(dut.qsfp_1_rxd_4, dut.qsfp_1_rxc_4, dut.qsfp_1_rx_clk_4, dut.qsfp_1_rx_rst_4) - cocotb.fork(Clock(dut.qsfp_1_tx_clk_4, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_1_tx_clk_4, 6.4, units="ns").start()) self.qsfp_1_4_sink = XgmiiSink(dut.qsfp_1_txd_4, dut.qsfp_1_txc_4, dut.qsfp_1_tx_clk_4, dut.qsfp_1_tx_rst_4) - cocotb.fork(Clock(dut.qsfp_2_rx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_2_rx_clk_1, 6.4, units="ns").start()) self.qsfp_2_1_source = XgmiiSource(dut.qsfp_2_rxd_1, dut.qsfp_2_rxc_1, dut.qsfp_2_rx_clk_1, dut.qsfp_2_rx_rst_1) - cocotb.fork(Clock(dut.qsfp_2_tx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_2_tx_clk_1, 6.4, units="ns").start()) self.qsfp_2_1_sink = XgmiiSink(dut.qsfp_2_txd_1, dut.qsfp_2_txc_1, dut.qsfp_2_tx_clk_1, dut.qsfp_2_tx_rst_1) - cocotb.fork(Clock(dut.qsfp_2_rx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_2_rx_clk_2, 6.4, units="ns").start()) self.qsfp_2_2_source = XgmiiSource(dut.qsfp_2_rxd_2, dut.qsfp_2_rxc_2, dut.qsfp_2_rx_clk_2, dut.qsfp_2_rx_rst_2) - cocotb.fork(Clock(dut.qsfp_2_tx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_2_tx_clk_2, 6.4, units="ns").start()) self.qsfp_2_2_sink = XgmiiSink(dut.qsfp_2_txd_2, dut.qsfp_2_txc_2, dut.qsfp_2_tx_clk_2, dut.qsfp_2_tx_rst_2) - cocotb.fork(Clock(dut.qsfp_2_rx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_2_rx_clk_3, 6.4, units="ns").start()) self.qsfp_2_3_source = XgmiiSource(dut.qsfp_2_rxd_3, dut.qsfp_2_rxc_3, dut.qsfp_2_rx_clk_3, dut.qsfp_2_rx_rst_3) - cocotb.fork(Clock(dut.qsfp_2_tx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_2_tx_clk_3, 6.4, units="ns").start()) self.qsfp_2_3_sink = XgmiiSink(dut.qsfp_2_txd_3, dut.qsfp_2_txc_3, dut.qsfp_2_tx_clk_3, dut.qsfp_2_tx_rst_3) - cocotb.fork(Clock(dut.qsfp_2_rx_clk_4, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_2_rx_clk_4, 6.4, units="ns").start()) self.qsfp_2_4_source = XgmiiSource(dut.qsfp_2_rxd_4, dut.qsfp_2_rxc_4, dut.qsfp_2_rx_clk_4, dut.qsfp_2_rx_rst_4) - cocotb.fork(Clock(dut.qsfp_2_tx_clk_4, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_2_tx_clk_4, 6.4, units="ns").start()) self.qsfp_2_4_sink = XgmiiSink(dut.qsfp_2_txd_4, dut.qsfp_2_txc_4, dut.qsfp_2_tx_clk_4, dut.qsfp_2_tx_rst_4) - cocotb.fork(Clock(dut.qsfp_3_rx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_3_rx_clk_1, 6.4, units="ns").start()) self.qsfp_3_1_source = XgmiiSource(dut.qsfp_3_rxd_1, dut.qsfp_3_rxc_1, dut.qsfp_3_rx_clk_1, dut.qsfp_3_rx_rst_1) - cocotb.fork(Clock(dut.qsfp_3_tx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_3_tx_clk_1, 6.4, units="ns").start()) self.qsfp_3_1_sink = XgmiiSink(dut.qsfp_3_txd_1, dut.qsfp_3_txc_1, dut.qsfp_3_tx_clk_1, dut.qsfp_3_tx_rst_1) - cocotb.fork(Clock(dut.qsfp_3_rx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_3_rx_clk_2, 6.4, units="ns").start()) self.qsfp_3_2_source = XgmiiSource(dut.qsfp_3_rxd_2, dut.qsfp_3_rxc_2, dut.qsfp_3_rx_clk_2, dut.qsfp_3_rx_rst_2) - cocotb.fork(Clock(dut.qsfp_3_tx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_3_tx_clk_2, 6.4, units="ns").start()) self.qsfp_3_2_sink = XgmiiSink(dut.qsfp_3_txd_2, dut.qsfp_3_txc_2, dut.qsfp_3_tx_clk_2, dut.qsfp_3_tx_rst_2) - cocotb.fork(Clock(dut.qsfp_3_rx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_3_rx_clk_3, 6.4, units="ns").start()) self.qsfp_3_3_source = XgmiiSource(dut.qsfp_3_rxd_3, dut.qsfp_3_rxc_3, dut.qsfp_3_rx_clk_3, dut.qsfp_3_rx_rst_3) - cocotb.fork(Clock(dut.qsfp_3_tx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_3_tx_clk_3, 6.4, units="ns").start()) self.qsfp_3_3_sink = XgmiiSink(dut.qsfp_3_txd_3, dut.qsfp_3_txc_3, dut.qsfp_3_tx_clk_3, dut.qsfp_3_tx_rst_3) - cocotb.fork(Clock(dut.qsfp_3_rx_clk_4, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_3_rx_clk_4, 6.4, units="ns").start()) self.qsfp_3_4_source = XgmiiSource(dut.qsfp_3_rxd_4, dut.qsfp_3_rxc_4, dut.qsfp_3_rx_clk_4, dut.qsfp_3_rx_rst_4) - cocotb.fork(Clock(dut.qsfp_3_tx_clk_4, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_3_tx_clk_4, 6.4, units="ns").start()) self.qsfp_3_4_sink = XgmiiSink(dut.qsfp_3_txd_4, dut.qsfp_3_txc_4, dut.qsfp_3_tx_clk_4, dut.qsfp_3_tx_rst_4) - cocotb.fork(Clock(dut.qsfp_4_rx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_4_rx_clk_1, 6.4, units="ns").start()) self.qsfp_4_1_source = XgmiiSource(dut.qsfp_4_rxd_1, dut.qsfp_4_rxc_1, dut.qsfp_4_rx_clk_1, dut.qsfp_4_rx_rst_1) - cocotb.fork(Clock(dut.qsfp_4_tx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_4_tx_clk_1, 6.4, units="ns").start()) self.qsfp_4_1_sink = XgmiiSink(dut.qsfp_4_txd_1, dut.qsfp_4_txc_1, dut.qsfp_4_tx_clk_1, dut.qsfp_4_tx_rst_1) - cocotb.fork(Clock(dut.qsfp_4_rx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_4_rx_clk_2, 6.4, units="ns").start()) self.qsfp_4_2_source = XgmiiSource(dut.qsfp_4_rxd_2, dut.qsfp_4_rxc_2, dut.qsfp_4_rx_clk_2, dut.qsfp_4_rx_rst_2) - cocotb.fork(Clock(dut.qsfp_4_tx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_4_tx_clk_2, 6.4, units="ns").start()) self.qsfp_4_2_sink = XgmiiSink(dut.qsfp_4_txd_2, dut.qsfp_4_txc_2, dut.qsfp_4_tx_clk_2, dut.qsfp_4_tx_rst_2) - cocotb.fork(Clock(dut.qsfp_4_rx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_4_rx_clk_3, 6.4, units="ns").start()) self.qsfp_4_3_source = XgmiiSource(dut.qsfp_4_rxd_3, dut.qsfp_4_rxc_3, dut.qsfp_4_rx_clk_3, dut.qsfp_4_rx_rst_3) - cocotb.fork(Clock(dut.qsfp_4_tx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_4_tx_clk_3, 6.4, units="ns").start()) self.qsfp_4_3_sink = XgmiiSink(dut.qsfp_4_txd_3, dut.qsfp_4_txc_3, dut.qsfp_4_tx_clk_3, dut.qsfp_4_tx_rst_3) - cocotb.fork(Clock(dut.qsfp_4_rx_clk_4, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_4_rx_clk_4, 6.4, units="ns").start()) self.qsfp_4_4_source = XgmiiSource(dut.qsfp_4_rxd_4, dut.qsfp_4_rxc_4, dut.qsfp_4_rx_clk_4, dut.qsfp_4_rx_rst_4) - cocotb.fork(Clock(dut.qsfp_4_tx_clk_4, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_4_tx_clk_4, 6.4, units="ns").start()) self.qsfp_4_4_sink = XgmiiSink(dut.qsfp_4_txd_4, dut.qsfp_4_txc_4, dut.qsfp_4_tx_clk_4, dut.qsfp_4_tx_rst_4) - cocotb.fork(Clock(dut.qsfp_5_rx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_5_rx_clk_1, 6.4, units="ns").start()) self.qsfp_5_1_source = XgmiiSource(dut.qsfp_5_rxd_1, dut.qsfp_5_rxc_1, dut.qsfp_5_rx_clk_1, dut.qsfp_5_rx_rst_1) - cocotb.fork(Clock(dut.qsfp_5_tx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_5_tx_clk_1, 6.4, units="ns").start()) self.qsfp_5_1_sink = XgmiiSink(dut.qsfp_5_txd_1, dut.qsfp_5_txc_1, dut.qsfp_5_tx_clk_1, dut.qsfp_5_tx_rst_1) - cocotb.fork(Clock(dut.qsfp_5_rx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_5_rx_clk_2, 6.4, units="ns").start()) self.qsfp_5_2_source = XgmiiSource(dut.qsfp_5_rxd_2, dut.qsfp_5_rxc_2, dut.qsfp_5_rx_clk_2, dut.qsfp_5_rx_rst_2) - cocotb.fork(Clock(dut.qsfp_5_tx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_5_tx_clk_2, 6.4, units="ns").start()) self.qsfp_5_2_sink = XgmiiSink(dut.qsfp_5_txd_2, dut.qsfp_5_txc_2, dut.qsfp_5_tx_clk_2, dut.qsfp_5_tx_rst_2) - cocotb.fork(Clock(dut.qsfp_5_rx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_5_rx_clk_3, 6.4, units="ns").start()) self.qsfp_5_3_source = XgmiiSource(dut.qsfp_5_rxd_3, dut.qsfp_5_rxc_3, dut.qsfp_5_rx_clk_3, dut.qsfp_5_rx_rst_3) - cocotb.fork(Clock(dut.qsfp_5_tx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_5_tx_clk_3, 6.4, units="ns").start()) self.qsfp_5_3_sink = XgmiiSink(dut.qsfp_5_txd_3, dut.qsfp_5_txc_3, dut.qsfp_5_tx_clk_3, dut.qsfp_5_tx_rst_3) - cocotb.fork(Clock(dut.qsfp_5_rx_clk_4, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_5_rx_clk_4, 6.4, units="ns").start()) self.qsfp_5_4_source = XgmiiSource(dut.qsfp_5_rxd_4, dut.qsfp_5_rxc_4, dut.qsfp_5_rx_clk_4, dut.qsfp_5_rx_rst_4) - cocotb.fork(Clock(dut.qsfp_5_tx_clk_4, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_5_tx_clk_4, 6.4, units="ns").start()) self.qsfp_5_4_sink = XgmiiSink(dut.qsfp_5_txd_4, dut.qsfp_5_txc_4, dut.qsfp_5_tx_clk_4, dut.qsfp_5_tx_rst_4) - cocotb.fork(Clock(dut.qsfp_6_rx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_6_rx_clk_1, 6.4, units="ns").start()) self.qsfp_6_1_source = XgmiiSource(dut.qsfp_6_rxd_1, dut.qsfp_6_rxc_1, dut.qsfp_6_rx_clk_1, dut.qsfp_6_rx_rst_1) - cocotb.fork(Clock(dut.qsfp_6_tx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_6_tx_clk_1, 6.4, units="ns").start()) self.qsfp_6_1_sink = XgmiiSink(dut.qsfp_6_txd_1, dut.qsfp_6_txc_1, dut.qsfp_6_tx_clk_1, dut.qsfp_6_tx_rst_1) - cocotb.fork(Clock(dut.qsfp_6_rx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_6_rx_clk_2, 6.4, units="ns").start()) self.qsfp_6_2_source = XgmiiSource(dut.qsfp_6_rxd_2, dut.qsfp_6_rxc_2, dut.qsfp_6_rx_clk_2, dut.qsfp_6_rx_rst_2) - cocotb.fork(Clock(dut.qsfp_6_tx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_6_tx_clk_2, 6.4, units="ns").start()) self.qsfp_6_2_sink = XgmiiSink(dut.qsfp_6_txd_2, dut.qsfp_6_txc_2, dut.qsfp_6_tx_clk_2, dut.qsfp_6_tx_rst_2) - cocotb.fork(Clock(dut.qsfp_6_rx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_6_rx_clk_3, 6.4, units="ns").start()) self.qsfp_6_3_source = XgmiiSource(dut.qsfp_6_rxd_3, dut.qsfp_6_rxc_3, dut.qsfp_6_rx_clk_3, dut.qsfp_6_rx_rst_3) - cocotb.fork(Clock(dut.qsfp_6_tx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_6_tx_clk_3, 6.4, units="ns").start()) self.qsfp_6_3_sink = XgmiiSink(dut.qsfp_6_txd_3, dut.qsfp_6_txc_3, dut.qsfp_6_tx_clk_3, dut.qsfp_6_tx_rst_3) - cocotb.fork(Clock(dut.qsfp_6_rx_clk_4, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_6_rx_clk_4, 6.4, units="ns").start()) self.qsfp_6_4_source = XgmiiSource(dut.qsfp_6_rxd_4, dut.qsfp_6_rxc_4, dut.qsfp_6_rx_clk_4, dut.qsfp_6_rx_rst_4) - cocotb.fork(Clock(dut.qsfp_6_tx_clk_4, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_6_tx_clk_4, 6.4, units="ns").start()) self.qsfp_6_4_sink = XgmiiSink(dut.qsfp_6_txd_4, dut.qsfp_6_txc_4, dut.qsfp_6_tx_clk_4, dut.qsfp_6_tx_rst_4) - cocotb.fork(Clock(dut.qsfp_7_rx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_7_rx_clk_1, 6.4, units="ns").start()) self.qsfp_7_1_source = XgmiiSource(dut.qsfp_7_rxd_1, dut.qsfp_7_rxc_1, dut.qsfp_7_rx_clk_1, dut.qsfp_7_rx_rst_1) - cocotb.fork(Clock(dut.qsfp_7_tx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_7_tx_clk_1, 6.4, units="ns").start()) self.qsfp_7_1_sink = XgmiiSink(dut.qsfp_7_txd_1, dut.qsfp_7_txc_1, dut.qsfp_7_tx_clk_1, dut.qsfp_7_tx_rst_1) - cocotb.fork(Clock(dut.qsfp_7_rx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_7_rx_clk_2, 6.4, units="ns").start()) self.qsfp_7_2_source = XgmiiSource(dut.qsfp_7_rxd_2, dut.qsfp_7_rxc_2, dut.qsfp_7_rx_clk_2, dut.qsfp_7_rx_rst_2) - cocotb.fork(Clock(dut.qsfp_7_tx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_7_tx_clk_2, 6.4, units="ns").start()) self.qsfp_7_2_sink = XgmiiSink(dut.qsfp_7_txd_2, dut.qsfp_7_txc_2, dut.qsfp_7_tx_clk_2, dut.qsfp_7_tx_rst_2) - cocotb.fork(Clock(dut.qsfp_7_rx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_7_rx_clk_3, 6.4, units="ns").start()) self.qsfp_7_3_source = XgmiiSource(dut.qsfp_7_rxd_3, dut.qsfp_7_rxc_3, dut.qsfp_7_rx_clk_3, dut.qsfp_7_rx_rst_3) - cocotb.fork(Clock(dut.qsfp_7_tx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_7_tx_clk_3, 6.4, units="ns").start()) self.qsfp_7_3_sink = XgmiiSink(dut.qsfp_7_txd_3, dut.qsfp_7_txc_3, dut.qsfp_7_tx_clk_3, dut.qsfp_7_tx_rst_3) - cocotb.fork(Clock(dut.qsfp_7_rx_clk_4, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_7_rx_clk_4, 6.4, units="ns").start()) self.qsfp_7_4_source = XgmiiSource(dut.qsfp_7_rxd_4, dut.qsfp_7_rxc_4, dut.qsfp_7_rx_clk_4, dut.qsfp_7_rx_rst_4) - cocotb.fork(Clock(dut.qsfp_7_tx_clk_4, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_7_tx_clk_4, 6.4, units="ns").start()) self.qsfp_7_4_sink = XgmiiSink(dut.qsfp_7_txd_4, dut.qsfp_7_txc_4, dut.qsfp_7_tx_clk_4, dut.qsfp_7_tx_rst_4) - cocotb.fork(Clock(dut.qsfp_8_rx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_8_rx_clk_1, 6.4, units="ns").start()) self.qsfp_8_1_source = XgmiiSource(dut.qsfp_8_rxd_1, dut.qsfp_8_rxc_1, dut.qsfp_8_rx_clk_1, dut.qsfp_8_rx_rst_1) - cocotb.fork(Clock(dut.qsfp_8_tx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_8_tx_clk_1, 6.4, units="ns").start()) self.qsfp_8_1_sink = XgmiiSink(dut.qsfp_8_txd_1, dut.qsfp_8_txc_1, dut.qsfp_8_tx_clk_1, dut.qsfp_8_tx_rst_1) - cocotb.fork(Clock(dut.qsfp_8_rx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_8_rx_clk_2, 6.4, units="ns").start()) self.qsfp_8_2_source = XgmiiSource(dut.qsfp_8_rxd_2, dut.qsfp_8_rxc_2, dut.qsfp_8_rx_clk_2, dut.qsfp_8_rx_rst_2) - cocotb.fork(Clock(dut.qsfp_8_tx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_8_tx_clk_2, 6.4, units="ns").start()) self.qsfp_8_2_sink = XgmiiSink(dut.qsfp_8_txd_2, dut.qsfp_8_txc_2, dut.qsfp_8_tx_clk_2, dut.qsfp_8_tx_rst_2) - cocotb.fork(Clock(dut.qsfp_8_rx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_8_rx_clk_3, 6.4, units="ns").start()) self.qsfp_8_3_source = XgmiiSource(dut.qsfp_8_rxd_3, dut.qsfp_8_rxc_3, dut.qsfp_8_rx_clk_3, dut.qsfp_8_rx_rst_3) - cocotb.fork(Clock(dut.qsfp_8_tx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_8_tx_clk_3, 6.4, units="ns").start()) self.qsfp_8_3_sink = XgmiiSink(dut.qsfp_8_txd_3, dut.qsfp_8_txc_3, dut.qsfp_8_tx_clk_3, dut.qsfp_8_tx_rst_3) - cocotb.fork(Clock(dut.qsfp_8_rx_clk_4, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_8_rx_clk_4, 6.4, units="ns").start()) self.qsfp_8_4_source = XgmiiSource(dut.qsfp_8_rxd_4, dut.qsfp_8_rxc_4, dut.qsfp_8_rx_clk_4, dut.qsfp_8_rx_rst_4) - cocotb.fork(Clock(dut.qsfp_8_tx_clk_4, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_8_tx_clk_4, 6.4, units="ns").start()) self.qsfp_8_4_sink = XgmiiSink(dut.qsfp_8_txd_4, dut.qsfp_8_txc_4, dut.qsfp_8_tx_clk_4, dut.qsfp_8_tx_rst_4) - cocotb.fork(Clock(dut.qsfp_9_rx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_9_rx_clk_1, 6.4, units="ns").start()) self.qsfp_9_1_source = XgmiiSource(dut.qsfp_9_rxd_1, dut.qsfp_9_rxc_1, dut.qsfp_9_rx_clk_1, dut.qsfp_9_rx_rst_1) - cocotb.fork(Clock(dut.qsfp_9_tx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_9_tx_clk_1, 6.4, units="ns").start()) self.qsfp_9_1_sink = XgmiiSink(dut.qsfp_9_txd_1, dut.qsfp_9_txc_1, dut.qsfp_9_tx_clk_1, dut.qsfp_9_tx_rst_1) - cocotb.fork(Clock(dut.qsfp_9_rx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_9_rx_clk_2, 6.4, units="ns").start()) self.qsfp_9_2_source = XgmiiSource(dut.qsfp_9_rxd_2, dut.qsfp_9_rxc_2, dut.qsfp_9_rx_clk_2, dut.qsfp_9_rx_rst_2) - cocotb.fork(Clock(dut.qsfp_9_tx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_9_tx_clk_2, 6.4, units="ns").start()) self.qsfp_9_2_sink = XgmiiSink(dut.qsfp_9_txd_2, dut.qsfp_9_txc_2, dut.qsfp_9_tx_clk_2, dut.qsfp_9_tx_rst_2) - cocotb.fork(Clock(dut.qsfp_9_rx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_9_rx_clk_3, 6.4, units="ns").start()) self.qsfp_9_3_source = XgmiiSource(dut.qsfp_9_rxd_3, dut.qsfp_9_rxc_3, dut.qsfp_9_rx_clk_3, dut.qsfp_9_rx_rst_3) - cocotb.fork(Clock(dut.qsfp_9_tx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_9_tx_clk_3, 6.4, units="ns").start()) self.qsfp_9_3_sink = XgmiiSink(dut.qsfp_9_txd_3, dut.qsfp_9_txc_3, dut.qsfp_9_tx_clk_3, dut.qsfp_9_tx_rst_3) - cocotb.fork(Clock(dut.qsfp_9_rx_clk_4, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_9_rx_clk_4, 6.4, units="ns").start()) self.qsfp_9_4_source = XgmiiSource(dut.qsfp_9_rxd_4, dut.qsfp_9_rxc_4, dut.qsfp_9_rx_clk_4, dut.qsfp_9_rx_rst_4) - cocotb.fork(Clock(dut.qsfp_9_tx_clk_4, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_9_tx_clk_4, 6.4, units="ns").start()) self.qsfp_9_4_sink = XgmiiSink(dut.qsfp_9_txd_4, dut.qsfp_9_txc_4, dut.qsfp_9_tx_clk_4, dut.qsfp_9_tx_rst_4) async def init(self): diff --git a/example/HXT100G/fpga/tb/fpga_core/test_fpga_core.py b/example/HXT100G/fpga/tb/fpga_core/test_fpga_core.py index 62cd72081..7116db21e 100644 --- a/example/HXT100G/fpga/tb/fpga_core/test_fpga_core.py +++ b/example/HXT100G/fpga/tb/fpga_core/test_fpga_core.py @@ -45,7 +45,7 @@ class TB: self.log = SimLog("cocotb.tb") self.log.setLevel(logging.DEBUG) - cocotb.fork(Clock(dut.clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.clk, 6.4, units="ns").start()) # Ethernet self.eth_r0_source = XgmiiSource(dut.eth_r0_rxd, dut.eth_r0_rxc, dut.clk, dut.rst) diff --git a/example/HXT100G/fpga_cxpt16/tb/fpga_core/test_fpga_core.py b/example/HXT100G/fpga_cxpt16/tb/fpga_core/test_fpga_core.py index cb9e8ae19..0460b5326 100644 --- a/example/HXT100G/fpga_cxpt16/tb/fpga_core/test_fpga_core.py +++ b/example/HXT100G/fpga_cxpt16/tb/fpga_core/test_fpga_core.py @@ -44,7 +44,7 @@ class TB: self.log = SimLog("cocotb.tb") self.log.setLevel(logging.DEBUG) - cocotb.fork(Clock(dut.clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.clk, 6.4, units="ns").start()) # Ethernet self.eth_r0_source = XgmiiSource(dut.eth_r0_rxd, dut.eth_r0_rxc, dut.clk, dut.rst) diff --git a/example/KC705/fpga_gmii/tb/fpga_core/test_fpga_core.py b/example/KC705/fpga_gmii/tb/fpga_core/test_fpga_core.py index 9514c1acd..f324b2205 100644 --- a/example/KC705/fpga_gmii/tb/fpga_core/test_fpga_core.py +++ b/example/KC705/fpga_gmii/tb/fpga_core/test_fpga_core.py @@ -45,7 +45,7 @@ class TB: self.log = SimLog("cocotb.tb") self.log.setLevel(logging.DEBUG) - cocotb.fork(Clock(dut.clk, 8, units="ns").start()) + cocotb.start_soon(Clock(dut.clk, 8, units="ns").start()) # Ethernet self.gmii_phy = GmiiPhy(dut.phy_txd, dut.phy_tx_er, dut.phy_tx_en, dut.phy_tx_clk, dut.phy_gtx_clk, diff --git a/example/KC705/fpga_rgmii/tb/fpga_core/test_fpga_core.py b/example/KC705/fpga_rgmii/tb/fpga_core/test_fpga_core.py index 5302b99f2..c66d04590 100644 --- a/example/KC705/fpga_rgmii/tb/fpga_core/test_fpga_core.py +++ b/example/KC705/fpga_rgmii/tb/fpga_core/test_fpga_core.py @@ -59,7 +59,7 @@ class TB: dut.clk.setimmediatevalue(0) dut.clk90.setimmediatevalue(0) - cocotb.fork(self._run_clk()) + cocotb.start_soon(self._run_clk()) async def init(self): diff --git a/example/KC705/fpga_sgmii/tb/fpga_core/test_fpga_core.py b/example/KC705/fpga_sgmii/tb/fpga_core/test_fpga_core.py index 8354186e8..6a4cf4c28 100644 --- a/example/KC705/fpga_sgmii/tb/fpga_core/test_fpga_core.py +++ b/example/KC705/fpga_sgmii/tb/fpga_core/test_fpga_core.py @@ -45,8 +45,8 @@ class TB: self.log = SimLog("cocotb.tb") self.log.setLevel(logging.DEBUG) - cocotb.fork(Clock(dut.clk, 6.4, units="ns").start()) - cocotb.fork(Clock(dut.phy_gmii_clk, 8, units="ns").start()) + cocotb.start_soon(Clock(dut.clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.phy_gmii_clk, 8, units="ns").start()) self.gmii_source = GmiiSource(dut.phy_gmii_rxd, dut.phy_gmii_rx_er, dut.phy_gmii_rx_dv, dut.phy_gmii_clk, dut.phy_gmii_rst, dut.phy_gmii_clk_en) diff --git a/example/ML605/fpga_gmii/tb/fpga_core/test_fpga_core.py b/example/ML605/fpga_gmii/tb/fpga_core/test_fpga_core.py index 1542da836..a37da8504 100644 --- a/example/ML605/fpga_gmii/tb/fpga_core/test_fpga_core.py +++ b/example/ML605/fpga_gmii/tb/fpga_core/test_fpga_core.py @@ -45,7 +45,7 @@ class TB: self.log = SimLog("cocotb.tb") self.log.setLevel(logging.DEBUG) - cocotb.fork(Clock(dut.clk_125mhz, 8, units="ns").start()) + cocotb.start_soon(Clock(dut.clk_125mhz, 8, units="ns").start()) # Ethernet self.gmii_phy = GmiiPhy(dut.phy_txd, dut.phy_tx_er, dut.phy_tx_en, dut.phy_tx_clk, dut.phy_gtx_clk, diff --git a/example/ML605/fpga_rgmii/tb/fpga_core/test_fpga_core.py b/example/ML605/fpga_rgmii/tb/fpga_core/test_fpga_core.py index 750d3477e..bdab9452e 100644 --- a/example/ML605/fpga_rgmii/tb/fpga_core/test_fpga_core.py +++ b/example/ML605/fpga_rgmii/tb/fpga_core/test_fpga_core.py @@ -59,7 +59,7 @@ class TB: dut.clk_125mhz.setimmediatevalue(0) dut.clk90_125mhz.setimmediatevalue(0) - cocotb.fork(self._run_clk_125mhz()) + cocotb.start_soon(self._run_clk_125mhz()) async def init(self): diff --git a/example/ML605/fpga_sgmii/tb/fpga_core/test_fpga_core.py b/example/ML605/fpga_sgmii/tb/fpga_core/test_fpga_core.py index 14988bff7..1268b0025 100644 --- a/example/ML605/fpga_sgmii/tb/fpga_core/test_fpga_core.py +++ b/example/ML605/fpga_sgmii/tb/fpga_core/test_fpga_core.py @@ -45,8 +45,8 @@ class TB: self.log = SimLog("cocotb.tb") self.log.setLevel(logging.DEBUG) - cocotb.fork(Clock(dut.clk_125mhz, 6.4, units="ns").start()) - cocotb.fork(Clock(dut.phy_gmii_clk, 8, units="ns").start()) + cocotb.start_soon(Clock(dut.clk_125mhz, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.phy_gmii_clk, 8, units="ns").start()) self.gmii_source = GmiiSource(dut.phy_gmii_rxd, dut.phy_gmii_rx_er, dut.phy_gmii_rx_dv, dut.phy_gmii_clk, dut.phy_gmii_rst, dut.phy_gmii_clk_en) diff --git a/example/NetFPGA_SUME/fpga/tb/fpga_core/test_fpga_core.py b/example/NetFPGA_SUME/fpga/tb/fpga_core/test_fpga_core.py index b6ec23c1d..5f8296d10 100644 --- a/example/NetFPGA_SUME/fpga/tb/fpga_core/test_fpga_core.py +++ b/example/NetFPGA_SUME/fpga/tb/fpga_core/test_fpga_core.py @@ -45,27 +45,27 @@ class TB: self.log = SimLog("cocotb.tb") self.log.setLevel(logging.DEBUG) - cocotb.fork(Clock(dut.clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.clk, 6.4, units="ns").start()) # Ethernet - cocotb.fork(Clock(dut.sfp_1_rx_clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.sfp_1_rx_clk, 6.4, units="ns").start()) self.sfp_1_source = XgmiiSource(dut.sfp_1_rxd, dut.sfp_1_rxc, dut.sfp_1_rx_clk, dut.sfp_1_rx_rst) - cocotb.fork(Clock(dut.sfp_1_tx_clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.sfp_1_tx_clk, 6.4, units="ns").start()) self.sfp_1_sink = XgmiiSink(dut.sfp_1_txd, dut.sfp_1_txc, dut.sfp_1_tx_clk, dut.sfp_1_tx_rst) - cocotb.fork(Clock(dut.sfp_2_rx_clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.sfp_2_rx_clk, 6.4, units="ns").start()) self.sfp_2_source = XgmiiSource(dut.sfp_2_rxd, dut.sfp_2_rxc, dut.sfp_2_rx_clk, dut.sfp_2_rx_rst) - cocotb.fork(Clock(dut.sfp_2_tx_clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.sfp_2_tx_clk, 6.4, units="ns").start()) self.sfp_2_sink = XgmiiSink(dut.sfp_2_txd, dut.sfp_2_txc, dut.sfp_2_tx_clk, dut.sfp_2_tx_rst) - cocotb.fork(Clock(dut.sfp_3_rx_clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.sfp_3_rx_clk, 6.4, units="ns").start()) self.sfp_3_source = XgmiiSource(dut.sfp_3_rxd, dut.sfp_3_rxc, dut.sfp_3_rx_clk, dut.sfp_3_rx_rst) - cocotb.fork(Clock(dut.sfp_3_tx_clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.sfp_3_tx_clk, 6.4, units="ns").start()) self.sfp_3_sink = XgmiiSink(dut.sfp_3_txd, dut.sfp_3_txc, dut.sfp_3_tx_clk, dut.sfp_3_tx_rst) - cocotb.fork(Clock(dut.sfp_4_rx_clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.sfp_4_rx_clk, 6.4, units="ns").start()) self.sfp_4_source = XgmiiSource(dut.sfp_4_rxd, dut.sfp_4_rxc, dut.sfp_4_rx_clk, dut.sfp_4_rx_rst) - cocotb.fork(Clock(dut.sfp_4_tx_clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.sfp_4_tx_clk, 6.4, units="ns").start()) self.sfp_4_sink = XgmiiSink(dut.sfp_4_txd, dut.sfp_4_txc, dut.sfp_4_tx_clk, dut.sfp_4_tx_rst) dut.btn.setimmediatevalue(0) diff --git a/example/NexysVideo/fpga/tb/fpga_core/test_fpga_core.py b/example/NexysVideo/fpga/tb/fpga_core/test_fpga_core.py index 2fb6c1449..e34c42ee6 100644 --- a/example/NexysVideo/fpga/tb/fpga_core/test_fpga_core.py +++ b/example/NexysVideo/fpga/tb/fpga_core/test_fpga_core.py @@ -61,7 +61,7 @@ class TB: dut.clk.setimmediatevalue(0) dut.clk90.setimmediatevalue(0) - cocotb.fork(self._run_clk()) + cocotb.start_soon(self._run_clk()) async def init(self): diff --git a/example/S10DX_DK/fpga_10g/tb/fpga_core/test_fpga_core.py b/example/S10DX_DK/fpga_10g/tb/fpga_core/test_fpga_core.py index b9d0f669e..d1c4fc17d 100644 --- a/example/S10DX_DK/fpga_10g/tb/fpga_core/test_fpga_core.py +++ b/example/S10DX_DK/fpga_10g/tb/fpga_core/test_fpga_core.py @@ -46,11 +46,11 @@ class TB: self.log = SimLog("cocotb.tb") self.log.setLevel(logging.DEBUG) - cocotb.fork(Clock(dut.clk, 6.206, units="ns").start()) + cocotb.start_soon(Clock(dut.clk, 6.206, units="ns").start()) # Ethernet - cocotb.fork(Clock(dut.qsfp1_mac_1_rx_clk, 6.206, units="ns").start()) - cocotb.fork(Clock(dut.qsfp1_mac_1_tx_clk, 6.206, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_mac_1_rx_clk, 6.206, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_mac_1_tx_clk, 6.206, units="ns").start()) self.qsfp1_mac_1 = EthMac( tx_clk=dut.qsfp1_mac_1_tx_clk, @@ -62,8 +62,8 @@ class TB: ifg=12, speed=10e9 ) - cocotb.fork(Clock(dut.qsfp1_mac_2_rx_clk, 6.206, units="ns").start()) - cocotb.fork(Clock(dut.qsfp1_mac_2_tx_clk, 6.206, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_mac_2_rx_clk, 6.206, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_mac_2_tx_clk, 6.206, units="ns").start()) self.qsfp1_mac_2 = EthMac( tx_clk=dut.qsfp1_mac_2_tx_clk, @@ -75,8 +75,8 @@ class TB: ifg=12, speed=10e9 ) - cocotb.fork(Clock(dut.qsfp1_mac_3_rx_clk, 6.206, units="ns").start()) - cocotb.fork(Clock(dut.qsfp1_mac_3_tx_clk, 6.206, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_mac_3_rx_clk, 6.206, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_mac_3_tx_clk, 6.206, units="ns").start()) self.qsfp1_mac_3 = EthMac( tx_clk=dut.qsfp1_mac_3_tx_clk, @@ -88,8 +88,8 @@ class TB: ifg=12, speed=10e9 ) - cocotb.fork(Clock(dut.qsfp1_mac_4_rx_clk, 6.206, units="ns").start()) - cocotb.fork(Clock(dut.qsfp1_mac_4_tx_clk, 6.206, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_mac_4_rx_clk, 6.206, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_mac_4_tx_clk, 6.206, units="ns").start()) self.qsfp1_mac_4 = EthMac( tx_clk=dut.qsfp1_mac_4_tx_clk, @@ -101,8 +101,8 @@ class TB: ifg=12, speed=10e9 ) - cocotb.fork(Clock(dut.qsfp2_mac_1_rx_clk, 6.206, units="ns").start()) - cocotb.fork(Clock(dut.qsfp2_mac_1_tx_clk, 6.206, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp2_mac_1_rx_clk, 6.206, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp2_mac_1_tx_clk, 6.206, units="ns").start()) self.qsfp2_mac_1 = EthMac( tx_clk=dut.qsfp2_mac_1_tx_clk, @@ -114,8 +114,8 @@ class TB: ifg=12, speed=10e9 ) - cocotb.fork(Clock(dut.qsfp2_mac_2_rx_clk, 6.206, units="ns").start()) - cocotb.fork(Clock(dut.qsfp2_mac_2_tx_clk, 6.206, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp2_mac_2_rx_clk, 6.206, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp2_mac_2_tx_clk, 6.206, units="ns").start()) self.qsfp2_mac_2 = EthMac( tx_clk=dut.qsfp2_mac_2_tx_clk, @@ -127,8 +127,8 @@ class TB: ifg=12, speed=10e9 ) - cocotb.fork(Clock(dut.qsfp2_mac_3_rx_clk, 6.206, units="ns").start()) - cocotb.fork(Clock(dut.qsfp2_mac_3_tx_clk, 6.206, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp2_mac_3_rx_clk, 6.206, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp2_mac_3_tx_clk, 6.206, units="ns").start()) self.qsfp2_mac_3 = EthMac( tx_clk=dut.qsfp2_mac_3_tx_clk, @@ -140,8 +140,8 @@ class TB: ifg=12, speed=10e9 ) - cocotb.fork(Clock(dut.qsfp2_mac_4_rx_clk, 6.206, units="ns").start()) - cocotb.fork(Clock(dut.qsfp2_mac_4_tx_clk, 6.206, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp2_mac_4_rx_clk, 6.206, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp2_mac_4_tx_clk, 6.206, units="ns").start()) self.qsfp2_mac_4 = EthMac( tx_clk=dut.qsfp2_mac_4_tx_clk, diff --git a/example/S10MX_DK/fpga_10g/tb/fpga_core/test_fpga_core.py b/example/S10MX_DK/fpga_10g/tb/fpga_core/test_fpga_core.py index c74c87104..4c378adc0 100644 --- a/example/S10MX_DK/fpga_10g/tb/fpga_core/test_fpga_core.py +++ b/example/S10MX_DK/fpga_10g/tb/fpga_core/test_fpga_core.py @@ -45,47 +45,47 @@ class TB: self.log = SimLog("cocotb.tb") self.log.setLevel(logging.DEBUG) - cocotb.fork(Clock(dut.clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.clk, 6.4, units="ns").start()) # Ethernet - cocotb.fork(Clock(dut.qsfp0_rx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp0_rx_clk_1, 6.4, units="ns").start()) self.qsfp0_1_source = XgmiiSource(dut.qsfp0_rxd_1, dut.qsfp0_rxc_1, dut.qsfp0_rx_clk_1, dut.qsfp0_rx_rst_1) - cocotb.fork(Clock(dut.qsfp0_tx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp0_tx_clk_1, 6.4, units="ns").start()) self.qsfp0_1_sink = XgmiiSink(dut.qsfp0_txd_1, dut.qsfp0_txc_1, dut.qsfp0_tx_clk_1, dut.qsfp0_tx_rst_1) - cocotb.fork(Clock(dut.qsfp0_rx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp0_rx_clk_2, 6.4, units="ns").start()) self.qsfp0_2_source = XgmiiSource(dut.qsfp0_rxd_2, dut.qsfp0_rxc_2, dut.qsfp0_rx_clk_2, dut.qsfp0_rx_rst_2) - cocotb.fork(Clock(dut.qsfp0_tx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp0_tx_clk_2, 6.4, units="ns").start()) self.qsfp0_2_sink = XgmiiSink(dut.qsfp0_txd_2, dut.qsfp0_txc_2, dut.qsfp0_tx_clk_2, dut.qsfp0_tx_rst_2) - cocotb.fork(Clock(dut.qsfp0_rx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp0_rx_clk_3, 6.4, units="ns").start()) self.qsfp0_3_source = XgmiiSource(dut.qsfp0_rxd_3, dut.qsfp0_rxc_3, dut.qsfp0_rx_clk_3, dut.qsfp0_rx_rst_3) - cocotb.fork(Clock(dut.qsfp0_tx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp0_tx_clk_3, 6.4, units="ns").start()) self.qsfp0_3_sink = XgmiiSink(dut.qsfp0_txd_3, dut.qsfp0_txc_3, dut.qsfp0_tx_clk_3, dut.qsfp0_tx_rst_3) - cocotb.fork(Clock(dut.qsfp0_rx_clk_4, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp0_rx_clk_4, 6.4, units="ns").start()) self.qsfp0_4_source = XgmiiSource(dut.qsfp0_rxd_4, dut.qsfp0_rxc_4, dut.qsfp0_rx_clk_4, dut.qsfp0_rx_rst_4) - cocotb.fork(Clock(dut.qsfp0_tx_clk_4, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp0_tx_clk_4, 6.4, units="ns").start()) self.qsfp0_4_sink = XgmiiSink(dut.qsfp0_txd_4, dut.qsfp0_txc_4, dut.qsfp0_tx_clk_4, dut.qsfp0_tx_rst_4) - cocotb.fork(Clock(dut.qsfp1_rx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_rx_clk_1, 6.4, units="ns").start()) self.qsfp1_1_source = XgmiiSource(dut.qsfp1_rxd_1, dut.qsfp1_rxc_1, dut.qsfp1_rx_clk_1, dut.qsfp1_rx_rst_1) - cocotb.fork(Clock(dut.qsfp1_tx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_tx_clk_1, 6.4, units="ns").start()) self.qsfp1_1_sink = XgmiiSink(dut.qsfp1_txd_1, dut.qsfp1_txc_1, dut.qsfp1_tx_clk_1, dut.qsfp1_tx_rst_1) - cocotb.fork(Clock(dut.qsfp1_rx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_rx_clk_2, 6.4, units="ns").start()) self.qsfp1_2_source = XgmiiSource(dut.qsfp1_rxd_2, dut.qsfp1_rxc_2, dut.qsfp1_rx_clk_2, dut.qsfp1_rx_rst_2) - cocotb.fork(Clock(dut.qsfp1_tx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_tx_clk_2, 6.4, units="ns").start()) self.qsfp1_2_sink = XgmiiSink(dut.qsfp1_txd_2, dut.qsfp1_txc_2, dut.qsfp1_tx_clk_2, dut.qsfp1_tx_rst_2) - cocotb.fork(Clock(dut.qsfp1_rx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_rx_clk_3, 6.4, units="ns").start()) self.qsfp1_3_source = XgmiiSource(dut.qsfp1_rxd_3, dut.qsfp1_rxc_3, dut.qsfp1_rx_clk_3, dut.qsfp1_rx_rst_3) - cocotb.fork(Clock(dut.qsfp1_tx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_tx_clk_3, 6.4, units="ns").start()) self.qsfp1_3_sink = XgmiiSink(dut.qsfp1_txd_3, dut.qsfp1_txc_3, dut.qsfp1_tx_clk_3, dut.qsfp1_tx_rst_3) - cocotb.fork(Clock(dut.qsfp1_rx_clk_4, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_rx_clk_4, 6.4, units="ns").start()) self.qsfp1_4_source = XgmiiSource(dut.qsfp1_rxd_4, dut.qsfp1_rxc_4, dut.qsfp1_rx_clk_4, dut.qsfp1_rx_rst_4) - cocotb.fork(Clock(dut.qsfp1_tx_clk_4, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_tx_clk_4, 6.4, units="ns").start()) self.qsfp1_4_sink = XgmiiSink(dut.qsfp1_txd_4, dut.qsfp1_txc_4, dut.qsfp1_tx_clk_4, dut.qsfp1_tx_rst_4) async def init(self): diff --git a/example/VCU108/fpga_10g/tb/fpga_core/test_fpga_core.py b/example/VCU108/fpga_10g/tb/fpga_core/test_fpga_core.py index 422a0a6e8..ee8ff7acb 100644 --- a/example/VCU108/fpga_10g/tb/fpga_core/test_fpga_core.py +++ b/example/VCU108/fpga_10g/tb/fpga_core/test_fpga_core.py @@ -46,10 +46,10 @@ class TB: self.log = SimLog("cocotb.tb") self.log.setLevel(logging.DEBUG) - cocotb.fork(Clock(dut.clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.clk, 6.4, units="ns").start()) # Ethernet - cocotb.fork(Clock(dut.phy_gmii_clk, 8, units="ns").start()) + cocotb.start_soon(Clock(dut.phy_gmii_clk, 8, units="ns").start()) self.gmii_source = GmiiSource(dut.phy_gmii_rxd, dut.phy_gmii_rx_er, dut.phy_gmii_rx_dv, dut.phy_gmii_clk, dut.phy_gmii_rst, dut.phy_gmii_clk_en) @@ -58,24 +58,24 @@ class TB: dut.phy_gmii_clk_en.setimmediatevalue(1) - cocotb.fork(Clock(dut.qsfp_rx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_rx_clk_1, 6.4, units="ns").start()) self.qsfp_1_source = XgmiiSource(dut.qsfp_rxd_1, dut.qsfp_rxc_1, dut.qsfp_rx_clk_1, dut.qsfp_rx_rst_1) - cocotb.fork(Clock(dut.qsfp_tx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_tx_clk_1, 6.4, units="ns").start()) self.qsfp_1_sink = XgmiiSink(dut.qsfp_txd_1, dut.qsfp_txc_1, dut.qsfp_tx_clk_1, dut.qsfp_tx_rst_1) - cocotb.fork(Clock(dut.qsfp_rx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_rx_clk_2, 6.4, units="ns").start()) self.qsfp_2_source = XgmiiSource(dut.qsfp_rxd_2, dut.qsfp_rxc_2, dut.qsfp_rx_clk_2, dut.qsfp_rx_rst_2) - cocotb.fork(Clock(dut.qsfp_tx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_tx_clk_2, 6.4, units="ns").start()) self.qsfp_2_sink = XgmiiSink(dut.qsfp_txd_2, dut.qsfp_txc_2, dut.qsfp_tx_clk_2, dut.qsfp_tx_rst_2) - cocotb.fork(Clock(dut.qsfp_rx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_rx_clk_3, 6.4, units="ns").start()) self.qsfp_3_source = XgmiiSource(dut.qsfp_rxd_3, dut.qsfp_rxc_3, dut.qsfp_rx_clk_3, dut.qsfp_rx_rst_3) - cocotb.fork(Clock(dut.qsfp_tx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_tx_clk_3, 6.4, units="ns").start()) self.qsfp_3_sink = XgmiiSink(dut.qsfp_txd_3, dut.qsfp_txc_3, dut.qsfp_tx_clk_3, dut.qsfp_tx_rst_3) - cocotb.fork(Clock(dut.qsfp_rx_clk_4, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_rx_clk_4, 6.4, units="ns").start()) self.qsfp_4_source = XgmiiSource(dut.qsfp_rxd_4, dut.qsfp_rxc_4, dut.qsfp_rx_clk_4, dut.qsfp_rx_rst_4) - cocotb.fork(Clock(dut.qsfp_tx_clk_4, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_tx_clk_4, 6.4, units="ns").start()) self.qsfp_4_sink = XgmiiSink(dut.qsfp_txd_4, dut.qsfp_txc_4, dut.qsfp_tx_clk_4, dut.qsfp_tx_rst_4) dut.btnu.setimmediatevalue(0) diff --git a/example/VCU108/fpga_1g/tb/fpga_core/test_fpga_core.py b/example/VCU108/fpga_1g/tb/fpga_core/test_fpga_core.py index 633740270..fd8946828 100644 --- a/example/VCU108/fpga_1g/tb/fpga_core/test_fpga_core.py +++ b/example/VCU108/fpga_1g/tb/fpga_core/test_fpga_core.py @@ -45,8 +45,8 @@ class TB: self.log = SimLog("cocotb.tb") self.log.setLevel(logging.DEBUG) - cocotb.fork(Clock(dut.clk, 8, units="ns").start()) - cocotb.fork(Clock(dut.phy_gmii_clk, 8, units="ns").start()) + cocotb.start_soon(Clock(dut.clk, 8, units="ns").start()) + cocotb.start_soon(Clock(dut.phy_gmii_clk, 8, units="ns").start()) self.gmii_source = GmiiSource(dut.phy_gmii_rxd, dut.phy_gmii_rx_er, dut.phy_gmii_rx_dv, dut.phy_gmii_clk, dut.phy_gmii_rst, dut.phy_gmii_clk_en) diff --git a/example/VCU118/fpga_10g/tb/fpga_core/test_fpga_core.py b/example/VCU118/fpga_10g/tb/fpga_core/test_fpga_core.py index d4a69de5e..656c80ae4 100644 --- a/example/VCU118/fpga_10g/tb/fpga_core/test_fpga_core.py +++ b/example/VCU118/fpga_10g/tb/fpga_core/test_fpga_core.py @@ -46,10 +46,10 @@ class TB: self.log = SimLog("cocotb.tb") self.log.setLevel(logging.DEBUG) - cocotb.fork(Clock(dut.clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.clk, 6.4, units="ns").start()) # Ethernet - cocotb.fork(Clock(dut.phy_gmii_clk, 8, units="ns").start()) + cocotb.start_soon(Clock(dut.phy_gmii_clk, 8, units="ns").start()) self.gmii_source = GmiiSource(dut.phy_gmii_rxd, dut.phy_gmii_rx_er, dut.phy_gmii_rx_dv, dut.phy_gmii_clk, dut.phy_gmii_rst, dut.phy_gmii_clk_en) @@ -58,44 +58,44 @@ class TB: dut.phy_gmii_clk_en.setimmediatevalue(1) - cocotb.fork(Clock(dut.qsfp1_rx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_rx_clk_1, 6.4, units="ns").start()) self.qsfp1_1_source = XgmiiSource(dut.qsfp1_rxd_1, dut.qsfp1_rxc_1, dut.qsfp1_rx_clk_1, dut.qsfp1_rx_rst_1) - cocotb.fork(Clock(dut.qsfp1_tx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_tx_clk_1, 6.4, units="ns").start()) self.qsfp1_1_sink = XgmiiSink(dut.qsfp1_txd_1, dut.qsfp1_txc_1, dut.qsfp1_tx_clk_1, dut.qsfp1_tx_rst_1) - cocotb.fork(Clock(dut.qsfp1_rx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_rx_clk_2, 6.4, units="ns").start()) self.qsfp1_2_source = XgmiiSource(dut.qsfp1_rxd_2, dut.qsfp1_rxc_2, dut.qsfp1_rx_clk_2, dut.qsfp1_rx_rst_2) - cocotb.fork(Clock(dut.qsfp1_tx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_tx_clk_2, 6.4, units="ns").start()) self.qsfp1_2_sink = XgmiiSink(dut.qsfp1_txd_2, dut.qsfp1_txc_2, dut.qsfp1_tx_clk_2, dut.qsfp1_tx_rst_2) - cocotb.fork(Clock(dut.qsfp1_rx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_rx_clk_3, 6.4, units="ns").start()) self.qsfp1_3_source = XgmiiSource(dut.qsfp1_rxd_3, dut.qsfp1_rxc_3, dut.qsfp1_rx_clk_3, dut.qsfp1_rx_rst_3) - cocotb.fork(Clock(dut.qsfp1_tx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_tx_clk_3, 6.4, units="ns").start()) self.qsfp1_3_sink = XgmiiSink(dut.qsfp1_txd_3, dut.qsfp1_txc_3, dut.qsfp1_tx_clk_3, dut.qsfp1_tx_rst_3) - cocotb.fork(Clock(dut.qsfp1_rx_clk_4, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_rx_clk_4, 6.4, units="ns").start()) self.qsfp1_4_source = XgmiiSource(dut.qsfp1_rxd_4, dut.qsfp1_rxc_4, dut.qsfp1_rx_clk_4, dut.qsfp1_rx_rst_4) - cocotb.fork(Clock(dut.qsfp1_tx_clk_4, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_tx_clk_4, 6.4, units="ns").start()) self.qsfp1_4_sink = XgmiiSink(dut.qsfp1_txd_4, dut.qsfp1_txc_4, dut.qsfp1_tx_clk_4, dut.qsfp1_tx_rst_4) - cocotb.fork(Clock(dut.qsfp2_rx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp2_rx_clk_1, 6.4, units="ns").start()) self.qsfp2_1_source = XgmiiSource(dut.qsfp2_rxd_1, dut.qsfp2_rxc_1, dut.qsfp2_rx_clk_1, dut.qsfp2_rx_rst_1) - cocotb.fork(Clock(dut.qsfp2_tx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp2_tx_clk_1, 6.4, units="ns").start()) self.qsfp2_1_sink = XgmiiSink(dut.qsfp2_txd_1, dut.qsfp2_txc_1, dut.qsfp2_tx_clk_1, dut.qsfp2_tx_rst_1) - cocotb.fork(Clock(dut.qsfp2_rx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp2_rx_clk_2, 6.4, units="ns").start()) self.qsfp2_2_source = XgmiiSource(dut.qsfp2_rxd_2, dut.qsfp2_rxc_2, dut.qsfp2_rx_clk_2, dut.qsfp2_rx_rst_2) - cocotb.fork(Clock(dut.qsfp2_tx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp2_tx_clk_2, 6.4, units="ns").start()) self.qsfp2_2_sink = XgmiiSink(dut.qsfp2_txd_2, dut.qsfp2_txc_2, dut.qsfp2_tx_clk_2, dut.qsfp2_tx_rst_2) - cocotb.fork(Clock(dut.qsfp2_rx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp2_rx_clk_3, 6.4, units="ns").start()) self.qsfp2_3_source = XgmiiSource(dut.qsfp2_rxd_3, dut.qsfp2_rxc_3, dut.qsfp2_rx_clk_3, dut.qsfp2_rx_rst_3) - cocotb.fork(Clock(dut.qsfp2_tx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp2_tx_clk_3, 6.4, units="ns").start()) self.qsfp2_3_sink = XgmiiSink(dut.qsfp2_txd_3, dut.qsfp2_txc_3, dut.qsfp2_tx_clk_3, dut.qsfp2_tx_rst_3) - cocotb.fork(Clock(dut.qsfp2_rx_clk_4, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp2_rx_clk_4, 6.4, units="ns").start()) self.qsfp2_4_source = XgmiiSource(dut.qsfp2_rxd_4, dut.qsfp2_rxc_4, dut.qsfp2_rx_clk_4, dut.qsfp2_rx_rst_4) - cocotb.fork(Clock(dut.qsfp2_tx_clk_4, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp2_tx_clk_4, 6.4, units="ns").start()) self.qsfp2_4_sink = XgmiiSink(dut.qsfp2_txd_4, dut.qsfp2_txc_4, dut.qsfp2_tx_clk_4, dut.qsfp2_tx_rst_4) dut.btnu.setimmediatevalue(0) diff --git a/example/VCU118/fpga_1g/tb/fpga_core/test_fpga_core.py b/example/VCU118/fpga_1g/tb/fpga_core/test_fpga_core.py index 633740270..fd8946828 100644 --- a/example/VCU118/fpga_1g/tb/fpga_core/test_fpga_core.py +++ b/example/VCU118/fpga_1g/tb/fpga_core/test_fpga_core.py @@ -45,8 +45,8 @@ class TB: self.log = SimLog("cocotb.tb") self.log.setLevel(logging.DEBUG) - cocotb.fork(Clock(dut.clk, 8, units="ns").start()) - cocotb.fork(Clock(dut.phy_gmii_clk, 8, units="ns").start()) + cocotb.start_soon(Clock(dut.clk, 8, units="ns").start()) + cocotb.start_soon(Clock(dut.phy_gmii_clk, 8, units="ns").start()) self.gmii_source = GmiiSource(dut.phy_gmii_rxd, dut.phy_gmii_rx_er, dut.phy_gmii_rx_dv, dut.phy_gmii_clk, dut.phy_gmii_rst, dut.phy_gmii_clk_en) diff --git a/example/VCU118/fpga_25g/tb/fpga_core/test_fpga_core.py b/example/VCU118/fpga_25g/tb/fpga_core/test_fpga_core.py index 899374659..f5028aed3 100644 --- a/example/VCU118/fpga_25g/tb/fpga_core/test_fpga_core.py +++ b/example/VCU118/fpga_25g/tb/fpga_core/test_fpga_core.py @@ -46,10 +46,10 @@ class TB: self.log = SimLog("cocotb.tb") self.log.setLevel(logging.DEBUG) - cocotb.fork(Clock(dut.clk, 2.56, units="ns").start()) + cocotb.start_soon(Clock(dut.clk, 2.56, units="ns").start()) # Ethernet - cocotb.fork(Clock(dut.phy_gmii_clk, 8, units="ns").start()) + cocotb.start_soon(Clock(dut.phy_gmii_clk, 8, units="ns").start()) self.gmii_source = GmiiSource(dut.phy_gmii_rxd, dut.phy_gmii_rx_er, dut.phy_gmii_rx_dv, dut.phy_gmii_clk, dut.phy_gmii_rst, dut.phy_gmii_clk_en) @@ -58,44 +58,44 @@ class TB: dut.phy_gmii_clk_en.setimmediatevalue(1) - cocotb.fork(Clock(dut.qsfp1_rx_clk_1, 2.56, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_rx_clk_1, 2.56, units="ns").start()) self.qsfp1_1_source = XgmiiSource(dut.qsfp1_rxd_1, dut.qsfp1_rxc_1, dut.qsfp1_rx_clk_1, dut.qsfp1_rx_rst_1) - cocotb.fork(Clock(dut.qsfp1_tx_clk_1, 2.56, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_tx_clk_1, 2.56, units="ns").start()) self.qsfp1_1_sink = XgmiiSink(dut.qsfp1_txd_1, dut.qsfp1_txc_1, dut.qsfp1_tx_clk_1, dut.qsfp1_tx_rst_1) - cocotb.fork(Clock(dut.qsfp1_rx_clk_2, 2.56, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_rx_clk_2, 2.56, units="ns").start()) self.qsfp1_2_source = XgmiiSource(dut.qsfp1_rxd_2, dut.qsfp1_rxc_2, dut.qsfp1_rx_clk_2, dut.qsfp1_rx_rst_2) - cocotb.fork(Clock(dut.qsfp1_tx_clk_2, 2.56, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_tx_clk_2, 2.56, units="ns").start()) self.qsfp1_2_sink = XgmiiSink(dut.qsfp1_txd_2, dut.qsfp1_txc_2, dut.qsfp1_tx_clk_2, dut.qsfp1_tx_rst_2) - cocotb.fork(Clock(dut.qsfp1_rx_clk_3, 2.56, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_rx_clk_3, 2.56, units="ns").start()) self.qsfp1_3_source = XgmiiSource(dut.qsfp1_rxd_3, dut.qsfp1_rxc_3, dut.qsfp1_rx_clk_3, dut.qsfp1_rx_rst_3) - cocotb.fork(Clock(dut.qsfp1_tx_clk_3, 2.56, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_tx_clk_3, 2.56, units="ns").start()) self.qsfp1_3_sink = XgmiiSink(dut.qsfp1_txd_3, dut.qsfp1_txc_3, dut.qsfp1_tx_clk_3, dut.qsfp1_tx_rst_3) - cocotb.fork(Clock(dut.qsfp1_rx_clk_4, 2.56, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_rx_clk_4, 2.56, units="ns").start()) self.qsfp1_4_source = XgmiiSource(dut.qsfp1_rxd_4, dut.qsfp1_rxc_4, dut.qsfp1_rx_clk_4, dut.qsfp1_rx_rst_4) - cocotb.fork(Clock(dut.qsfp1_tx_clk_4, 2.56, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_tx_clk_4, 2.56, units="ns").start()) self.qsfp1_4_sink = XgmiiSink(dut.qsfp1_txd_4, dut.qsfp1_txc_4, dut.qsfp1_tx_clk_4, dut.qsfp1_tx_rst_4) - cocotb.fork(Clock(dut.qsfp2_rx_clk_1, 2.56, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp2_rx_clk_1, 2.56, units="ns").start()) self.qsfp2_1_source = XgmiiSource(dut.qsfp2_rxd_1, dut.qsfp2_rxc_1, dut.qsfp2_rx_clk_1, dut.qsfp2_rx_rst_1) - cocotb.fork(Clock(dut.qsfp2_tx_clk_1, 2.56, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp2_tx_clk_1, 2.56, units="ns").start()) self.qsfp2_1_sink = XgmiiSink(dut.qsfp2_txd_1, dut.qsfp2_txc_1, dut.qsfp2_tx_clk_1, dut.qsfp2_tx_rst_1) - cocotb.fork(Clock(dut.qsfp2_rx_clk_2, 2.56, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp2_rx_clk_2, 2.56, units="ns").start()) self.qsfp2_2_source = XgmiiSource(dut.qsfp2_rxd_2, dut.qsfp2_rxc_2, dut.qsfp2_rx_clk_2, dut.qsfp2_rx_rst_2) - cocotb.fork(Clock(dut.qsfp2_tx_clk_2, 2.56, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp2_tx_clk_2, 2.56, units="ns").start()) self.qsfp2_2_sink = XgmiiSink(dut.qsfp2_txd_2, dut.qsfp2_txc_2, dut.qsfp2_tx_clk_2, dut.qsfp2_tx_rst_2) - cocotb.fork(Clock(dut.qsfp2_rx_clk_3, 2.56, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp2_rx_clk_3, 2.56, units="ns").start()) self.qsfp2_3_source = XgmiiSource(dut.qsfp2_rxd_3, dut.qsfp2_rxc_3, dut.qsfp2_rx_clk_3, dut.qsfp2_rx_rst_3) - cocotb.fork(Clock(dut.qsfp2_tx_clk_3, 2.56, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp2_tx_clk_3, 2.56, units="ns").start()) self.qsfp2_3_sink = XgmiiSink(dut.qsfp2_txd_3, dut.qsfp2_txc_3, dut.qsfp2_tx_clk_3, dut.qsfp2_tx_rst_3) - cocotb.fork(Clock(dut.qsfp2_rx_clk_4, 2.56, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp2_rx_clk_4, 2.56, units="ns").start()) self.qsfp2_4_source = XgmiiSource(dut.qsfp2_rxd_4, dut.qsfp2_rxc_4, dut.qsfp2_rx_clk_4, dut.qsfp2_rx_rst_4) - cocotb.fork(Clock(dut.qsfp2_tx_clk_4, 2.56, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp2_tx_clk_4, 2.56, units="ns").start()) self.qsfp2_4_sink = XgmiiSink(dut.qsfp2_txd_4, dut.qsfp2_txc_4, dut.qsfp2_tx_clk_4, dut.qsfp2_tx_rst_4) dut.btnu.setimmediatevalue(0) diff --git a/example/VCU1525/fpga_10g/tb/fpga_core/test_fpga_core.py b/example/VCU1525/fpga_10g/tb/fpga_core/test_fpga_core.py index 187af7189..37a47626b 100644 --- a/example/VCU1525/fpga_10g/tb/fpga_core/test_fpga_core.py +++ b/example/VCU1525/fpga_10g/tb/fpga_core/test_fpga_core.py @@ -45,47 +45,47 @@ class TB: self.log = SimLog("cocotb.tb") self.log.setLevel(logging.DEBUG) - cocotb.fork(Clock(dut.clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.clk, 6.4, units="ns").start()) # Ethernet - cocotb.fork(Clock(dut.qsfp0_rx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp0_rx_clk_1, 6.4, units="ns").start()) self.qsfp0_1_source = XgmiiSource(dut.qsfp0_rxd_1, dut.qsfp0_rxc_1, dut.qsfp0_rx_clk_1, dut.qsfp0_rx_rst_1) - cocotb.fork(Clock(dut.qsfp0_tx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp0_tx_clk_1, 6.4, units="ns").start()) self.qsfp0_1_sink = XgmiiSink(dut.qsfp0_txd_1, dut.qsfp0_txc_1, dut.qsfp0_tx_clk_1, dut.qsfp0_tx_rst_1) - cocotb.fork(Clock(dut.qsfp0_rx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp0_rx_clk_2, 6.4, units="ns").start()) self.qsfp0_2_source = XgmiiSource(dut.qsfp0_rxd_2, dut.qsfp0_rxc_2, dut.qsfp0_rx_clk_2, dut.qsfp0_rx_rst_2) - cocotb.fork(Clock(dut.qsfp0_tx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp0_tx_clk_2, 6.4, units="ns").start()) self.qsfp0_2_sink = XgmiiSink(dut.qsfp0_txd_2, dut.qsfp0_txc_2, dut.qsfp0_tx_clk_2, dut.qsfp0_tx_rst_2) - cocotb.fork(Clock(dut.qsfp0_rx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp0_rx_clk_3, 6.4, units="ns").start()) self.qsfp0_3_source = XgmiiSource(dut.qsfp0_rxd_3, dut.qsfp0_rxc_3, dut.qsfp0_rx_clk_3, dut.qsfp0_rx_rst_3) - cocotb.fork(Clock(dut.qsfp0_tx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp0_tx_clk_3, 6.4, units="ns").start()) self.qsfp0_3_sink = XgmiiSink(dut.qsfp0_txd_3, dut.qsfp0_txc_3, dut.qsfp0_tx_clk_3, dut.qsfp0_tx_rst_3) - cocotb.fork(Clock(dut.qsfp0_rx_clk_4, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp0_rx_clk_4, 6.4, units="ns").start()) self.qsfp0_4_source = XgmiiSource(dut.qsfp0_rxd_4, dut.qsfp0_rxc_4, dut.qsfp0_rx_clk_4, dut.qsfp0_rx_rst_4) - cocotb.fork(Clock(dut.qsfp0_tx_clk_4, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp0_tx_clk_4, 6.4, units="ns").start()) self.qsfp0_4_sink = XgmiiSink(dut.qsfp0_txd_4, dut.qsfp0_txc_4, dut.qsfp0_tx_clk_4, dut.qsfp0_tx_rst_4) - cocotb.fork(Clock(dut.qsfp1_rx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_rx_clk_1, 6.4, units="ns").start()) self.qsfp1_1_source = XgmiiSource(dut.qsfp1_rxd_1, dut.qsfp1_rxc_1, dut.qsfp1_rx_clk_1, dut.qsfp1_rx_rst_1) - cocotb.fork(Clock(dut.qsfp1_tx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_tx_clk_1, 6.4, units="ns").start()) self.qsfp1_1_sink = XgmiiSink(dut.qsfp1_txd_1, dut.qsfp1_txc_1, dut.qsfp1_tx_clk_1, dut.qsfp1_tx_rst_1) - cocotb.fork(Clock(dut.qsfp1_rx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_rx_clk_2, 6.4, units="ns").start()) self.qsfp1_2_source = XgmiiSource(dut.qsfp1_rxd_2, dut.qsfp1_rxc_2, dut.qsfp1_rx_clk_2, dut.qsfp1_rx_rst_2) - cocotb.fork(Clock(dut.qsfp1_tx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_tx_clk_2, 6.4, units="ns").start()) self.qsfp1_2_sink = XgmiiSink(dut.qsfp1_txd_2, dut.qsfp1_txc_2, dut.qsfp1_tx_clk_2, dut.qsfp1_tx_rst_2) - cocotb.fork(Clock(dut.qsfp1_rx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_rx_clk_3, 6.4, units="ns").start()) self.qsfp1_3_source = XgmiiSource(dut.qsfp1_rxd_3, dut.qsfp1_rxc_3, dut.qsfp1_rx_clk_3, dut.qsfp1_rx_rst_3) - cocotb.fork(Clock(dut.qsfp1_tx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_tx_clk_3, 6.4, units="ns").start()) self.qsfp1_3_sink = XgmiiSink(dut.qsfp1_txd_3, dut.qsfp1_txc_3, dut.qsfp1_tx_clk_3, dut.qsfp1_tx_rst_3) - cocotb.fork(Clock(dut.qsfp1_rx_clk_4, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_rx_clk_4, 6.4, units="ns").start()) self.qsfp1_4_source = XgmiiSource(dut.qsfp1_rxd_4, dut.qsfp1_rxc_4, dut.qsfp1_rx_clk_4, dut.qsfp1_rx_rst_4) - cocotb.fork(Clock(dut.qsfp1_tx_clk_4, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp1_tx_clk_4, 6.4, units="ns").start()) self.qsfp1_4_sink = XgmiiSink(dut.qsfp1_txd_4, dut.qsfp1_txc_4, dut.qsfp1_tx_clk_4, dut.qsfp1_tx_rst_4) dut.sw.setimmediatevalue(0) diff --git a/example/ZCU102/fpga/tb/fpga_core/test_fpga_core.py b/example/ZCU102/fpga/tb/fpga_core/test_fpga_core.py index a5449be7a..5e47a3c22 100644 --- a/example/ZCU102/fpga/tb/fpga_core/test_fpga_core.py +++ b/example/ZCU102/fpga/tb/fpga_core/test_fpga_core.py @@ -45,27 +45,27 @@ class TB: self.log = SimLog("cocotb.tb") self.log.setLevel(logging.DEBUG) - cocotb.fork(Clock(dut.clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.clk, 6.4, units="ns").start()) # Ethernet - cocotb.fork(Clock(dut.sfp0_rx_clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.sfp0_rx_clk, 6.4, units="ns").start()) self.sfp0_source = XgmiiSource(dut.sfp0_rxd, dut.sfp0_rxc, dut.sfp0_rx_clk, dut.sfp0_rx_rst) - cocotb.fork(Clock(dut.sfp0_tx_clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.sfp0_tx_clk, 6.4, units="ns").start()) self.sfp0_sink = XgmiiSink(dut.sfp0_txd, dut.sfp0_txc, dut.sfp0_tx_clk, dut.sfp0_tx_rst) - cocotb.fork(Clock(dut.sfp1_rx_clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.sfp1_rx_clk, 6.4, units="ns").start()) self.sfp1_source = XgmiiSource(dut.sfp1_rxd, dut.sfp1_rxc, dut.sfp1_rx_clk, dut.sfp1_rx_rst) - cocotb.fork(Clock(dut.sfp1_tx_clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.sfp1_tx_clk, 6.4, units="ns").start()) self.sfp1_sink = XgmiiSink(dut.sfp1_txd, dut.sfp1_txc, dut.sfp1_tx_clk, dut.sfp1_tx_rst) - cocotb.fork(Clock(dut.sfp2_rx_clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.sfp2_rx_clk, 6.4, units="ns").start()) self.sfp2_source = XgmiiSource(dut.sfp2_rxd, dut.sfp2_rxc, dut.sfp2_rx_clk, dut.sfp2_rx_rst) - cocotb.fork(Clock(dut.sfp2_tx_clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.sfp2_tx_clk, 6.4, units="ns").start()) self.sfp2_sink = XgmiiSink(dut.sfp2_txd, dut.sfp2_txc, dut.sfp2_tx_clk, dut.sfp2_tx_rst) - cocotb.fork(Clock(dut.sfp3_rx_clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.sfp3_rx_clk, 6.4, units="ns").start()) self.sfp3_source = XgmiiSource(dut.sfp3_rxd, dut.sfp3_rxc, dut.sfp3_rx_clk, dut.sfp3_rx_rst) - cocotb.fork(Clock(dut.sfp3_tx_clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.sfp3_tx_clk, 6.4, units="ns").start()) self.sfp3_sink = XgmiiSink(dut.sfp3_txd, dut.sfp3_txc, dut.sfp3_tx_clk, dut.sfp3_tx_rst) dut.btnu.setimmediatevalue(0) diff --git a/example/ZCU106/fpga/tb/fpga_core/test_fpga_core.py b/example/ZCU106/fpga/tb/fpga_core/test_fpga_core.py index c6118d6c8..7de8d6e9f 100644 --- a/example/ZCU106/fpga/tb/fpga_core/test_fpga_core.py +++ b/example/ZCU106/fpga/tb/fpga_core/test_fpga_core.py @@ -45,17 +45,17 @@ class TB: self.log = SimLog("cocotb.tb") self.log.setLevel(logging.DEBUG) - cocotb.fork(Clock(dut.clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.clk, 6.4, units="ns").start()) # Ethernet - cocotb.fork(Clock(dut.sfp0_rx_clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.sfp0_rx_clk, 6.4, units="ns").start()) self.sfp0_source = XgmiiSource(dut.sfp0_rxd, dut.sfp0_rxc, dut.sfp0_rx_clk, dut.sfp0_rx_rst) - cocotb.fork(Clock(dut.sfp0_tx_clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.sfp0_tx_clk, 6.4, units="ns").start()) self.sfp0_sink = XgmiiSink(dut.sfp0_txd, dut.sfp0_txc, dut.sfp0_tx_clk, dut.sfp0_tx_rst) - cocotb.fork(Clock(dut.sfp1_rx_clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.sfp1_rx_clk, 6.4, units="ns").start()) self.sfp1_source = XgmiiSource(dut.sfp1_rxd, dut.sfp1_rxc, dut.sfp1_rx_clk, dut.sfp1_rx_rst) - cocotb.fork(Clock(dut.sfp1_tx_clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.sfp1_tx_clk, 6.4, units="ns").start()) self.sfp1_sink = XgmiiSink(dut.sfp1_txd, dut.sfp1_txc, dut.sfp1_tx_clk, dut.sfp1_tx_rst) dut.btnu.setimmediatevalue(0) diff --git a/example/fb2CG/fpga_10g/tb/fpga_core/test_fpga_core.py b/example/fb2CG/fpga_10g/tb/fpga_core/test_fpga_core.py index 6d7c15896..181fdbf0d 100644 --- a/example/fb2CG/fpga_10g/tb/fpga_core/test_fpga_core.py +++ b/example/fb2CG/fpga_10g/tb/fpga_core/test_fpga_core.py @@ -45,47 +45,47 @@ class TB: self.log = SimLog("cocotb.tb") self.log.setLevel(logging.DEBUG) - cocotb.fork(Clock(dut.clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.clk, 6.4, units="ns").start()) # Ethernet - cocotb.fork(Clock(dut.qsfp_0_rx_clk_0, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_0_rx_clk_0, 6.4, units="ns").start()) self.qsfp_0_0_source = XgmiiSource(dut.qsfp_0_rxd_0, dut.qsfp_0_rxc_0, dut.qsfp_0_rx_clk_0, dut.qsfp_0_rx_rst_0) - cocotb.fork(Clock(dut.qsfp_0_tx_clk_0, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_0_tx_clk_0, 6.4, units="ns").start()) self.qsfp_0_0_sink = XgmiiSink(dut.qsfp_0_txd_0, dut.qsfp_0_txc_0, dut.qsfp_0_tx_clk_0, dut.qsfp_0_tx_rst_0) - cocotb.fork(Clock(dut.qsfp_0_rx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_0_rx_clk_1, 6.4, units="ns").start()) self.qsfp_0_1_source = XgmiiSource(dut.qsfp_0_rxd_1, dut.qsfp_0_rxc_1, dut.qsfp_0_rx_clk_1, dut.qsfp_0_rx_rst_1) - cocotb.fork(Clock(dut.qsfp_0_tx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_0_tx_clk_1, 6.4, units="ns").start()) self.qsfp_0_1_sink = XgmiiSink(dut.qsfp_0_txd_1, dut.qsfp_0_txc_1, dut.qsfp_0_tx_clk_1, dut.qsfp_0_tx_rst_1) - cocotb.fork(Clock(dut.qsfp_0_rx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_0_rx_clk_2, 6.4, units="ns").start()) self.qsfp_0_2_source = XgmiiSource(dut.qsfp_0_rxd_2, dut.qsfp_0_rxc_2, dut.qsfp_0_rx_clk_2, dut.qsfp_0_rx_rst_2) - cocotb.fork(Clock(dut.qsfp_0_tx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_0_tx_clk_2, 6.4, units="ns").start()) self.qsfp_0_2_sink = XgmiiSink(dut.qsfp_0_txd_2, dut.qsfp_0_txc_2, dut.qsfp_0_tx_clk_2, dut.qsfp_0_tx_rst_2) - cocotb.fork(Clock(dut.qsfp_0_rx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_0_rx_clk_3, 6.4, units="ns").start()) self.qsfp_0_3_source = XgmiiSource(dut.qsfp_0_rxd_3, dut.qsfp_0_rxc_3, dut.qsfp_0_rx_clk_3, dut.qsfp_0_rx_rst_3) - cocotb.fork(Clock(dut.qsfp_0_tx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_0_tx_clk_3, 6.4, units="ns").start()) self.qsfp_0_3_sink = XgmiiSink(dut.qsfp_0_txd_3, dut.qsfp_0_txc_3, dut.qsfp_0_tx_clk_3, dut.qsfp_0_tx_rst_3) - cocotb.fork(Clock(dut.qsfp_1_rx_clk_0, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_1_rx_clk_0, 6.4, units="ns").start()) self.qsfp_1_0_source = XgmiiSource(dut.qsfp_1_rxd_0, dut.qsfp_1_rxc_0, dut.qsfp_1_rx_clk_0, dut.qsfp_1_rx_rst_0) - cocotb.fork(Clock(dut.qsfp_1_tx_clk_0, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_1_tx_clk_0, 6.4, units="ns").start()) self.qsfp_1_0_sink = XgmiiSink(dut.qsfp_1_txd_0, dut.qsfp_1_txc_0, dut.qsfp_1_tx_clk_0, dut.qsfp_1_tx_rst_0) - cocotb.fork(Clock(dut.qsfp_1_rx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_1_rx_clk_1, 6.4, units="ns").start()) self.qsfp_1_1_source = XgmiiSource(dut.qsfp_1_rxd_1, dut.qsfp_1_rxc_1, dut.qsfp_1_rx_clk_1, dut.qsfp_1_rx_rst_1) - cocotb.fork(Clock(dut.qsfp_1_tx_clk_1, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_1_tx_clk_1, 6.4, units="ns").start()) self.qsfp_1_1_sink = XgmiiSink(dut.qsfp_1_txd_1, dut.qsfp_1_txc_1, dut.qsfp_1_tx_clk_1, dut.qsfp_1_tx_rst_1) - cocotb.fork(Clock(dut.qsfp_1_rx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_1_rx_clk_2, 6.4, units="ns").start()) self.qsfp_1_2_source = XgmiiSource(dut.qsfp_1_rxd_2, dut.qsfp_1_rxc_2, dut.qsfp_1_rx_clk_2, dut.qsfp_1_rx_rst_2) - cocotb.fork(Clock(dut.qsfp_1_tx_clk_2, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_1_tx_clk_2, 6.4, units="ns").start()) self.qsfp_1_2_sink = XgmiiSink(dut.qsfp_1_txd_2, dut.qsfp_1_txc_2, dut.qsfp_1_tx_clk_2, dut.qsfp_1_tx_rst_2) - cocotb.fork(Clock(dut.qsfp_1_rx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_1_rx_clk_3, 6.4, units="ns").start()) self.qsfp_1_3_source = XgmiiSource(dut.qsfp_1_rxd_3, dut.qsfp_1_rxc_3, dut.qsfp_1_rx_clk_3, dut.qsfp_1_rx_rst_3) - cocotb.fork(Clock(dut.qsfp_1_tx_clk_3, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.qsfp_1_tx_clk_3, 6.4, units="ns").start()) self.qsfp_1_3_sink = XgmiiSink(dut.qsfp_1_txd_3, dut.qsfp_1_txc_3, dut.qsfp_1_tx_clk_3, dut.qsfp_1_tx_rst_3) async def init(self): diff --git a/tb/arp/test_arp.py b/tb/arp/test_arp.py index cad80e0ce..495698209 100644 --- a/tb/arp/test_arp.py +++ b/tb/arp/test_arp.py @@ -62,7 +62,7 @@ class TB: self.log = logging.getLogger("cocotb.tb") self.log.setLevel(logging.DEBUG) - cocotb.fork(Clock(dut.clk, 8, units="ns").start()) + cocotb.start_soon(Clock(dut.clk, 8, units="ns").start()) self.header_source = EthHdrSource(EthHdrBus.from_prefix(dut, "s_eth"), dut.clk, dut.rst) self.payload_source = AxiStreamSource(AxiStreamBus.from_prefix(dut, "s_eth_payload_axis"), dut.clk, dut.rst) diff --git a/tb/arp_cache/test_arp_cache.py b/tb/arp_cache/test_arp_cache.py index ee9198e00..4e3a6daef 100644 --- a/tb/arp_cache/test_arp_cache.py +++ b/tb/arp_cache/test_arp_cache.py @@ -49,7 +49,7 @@ class TB: self.log = logging.getLogger("cocotb.tb") self.log.setLevel(logging.DEBUG) - cocotb.fork(Clock(dut.clk, 8, units="ns").start()) + cocotb.start_soon(Clock(dut.clk, 8, units="ns").start()) self.query_request_source = CacheOpSource(CacheOpBus.from_prefix(dut, "query_request"), dut.clk, dut.rst) self.query_response_sink = CacheOpSink(CacheOpBus.from_prefix(dut, "query_response"), dut.clk, dut.rst) diff --git a/tb/arp_eth_rx/test_arp_eth_rx.py b/tb/arp_eth_rx/test_arp_eth_rx.py index 8b6ed214b..0bde8634a 100644 --- a/tb/arp_eth_rx/test_arp_eth_rx.py +++ b/tb/arp_eth_rx/test_arp_eth_rx.py @@ -59,7 +59,7 @@ class TB: self.log = logging.getLogger("cocotb.tb") self.log.setLevel(logging.DEBUG) - cocotb.fork(Clock(dut.clk, 8, units="ns").start()) + cocotb.start_soon(Clock(dut.clk, 8, units="ns").start()) self.header_source = EthHdrSource(EthHdrBus.from_prefix(dut, "s_eth"), dut.clk, dut.rst) self.payload_source = AxiStreamSource(AxiStreamBus.from_prefix(dut, "s_eth_payload_axis"), dut.clk, dut.rst) diff --git a/tb/arp_eth_tx/test_arp_eth_tx.py b/tb/arp_eth_tx/test_arp_eth_tx.py index c42193aa9..fb071acb8 100644 --- a/tb/arp_eth_tx/test_arp_eth_tx.py +++ b/tb/arp_eth_tx/test_arp_eth_tx.py @@ -59,7 +59,7 @@ class TB: self.log = logging.getLogger("cocotb.tb") self.log.setLevel(logging.DEBUG) - cocotb.fork(Clock(dut.clk, 8, units="ns").start()) + cocotb.start_soon(Clock(dut.clk, 8, units="ns").start()) self.source = ArpHdrSource(ArpHdrBus.from_prefix(dut, "s"), dut.clk, dut.rst) diff --git a/tb/axis_baser_rx_64/test_axis_baser_rx_64.py b/tb/axis_baser_rx_64/test_axis_baser_rx_64.py index 0fb3c249c..46bbab59b 100644 --- a/tb/axis_baser_rx_64/test_axis_baser_rx_64.py +++ b/tb/axis_baser_rx_64/test_axis_baser_rx_64.py @@ -56,7 +56,7 @@ class TB: self.log = logging.getLogger("cocotb.tb") self.log.setLevel(logging.DEBUG) - cocotb.fork(Clock(dut.clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.clk, 6.4, units="ns").start()) self.source = BaseRSerdesSource(dut.encoded_rx_data, dut.encoded_rx_hdr, dut.clk, scramble=False) self.sink = AxiStreamSink(AxiStreamBus.from_prefix(dut, "m_axis"), dut.clk, dut.rst) diff --git a/tb/axis_baser_tx_64/test_axis_baser_tx_64.py b/tb/axis_baser_tx_64/test_axis_baser_tx_64.py index 3329f0940..078559ecf 100644 --- a/tb/axis_baser_tx_64/test_axis_baser_tx_64.py +++ b/tb/axis_baser_tx_64/test_axis_baser_tx_64.py @@ -56,7 +56,7 @@ class TB: self.log = logging.getLogger("cocotb.tb") self.log.setLevel(logging.DEBUG) - cocotb.fork(Clock(dut.clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.clk, 6.4, units="ns").start()) self.source = AxiStreamSource(AxiStreamBus.from_prefix(dut, "s_axis"), dut.clk, dut.rst) self.sink = BaseRSerdesSink(dut.encoded_tx_data, dut.encoded_tx_hdr, dut.clk, scramble=False) diff --git a/tb/axis_gmii_rx/test_axis_gmii_rx.py b/tb/axis_gmii_rx/test_axis_gmii_rx.py index 82d084594..9072852f6 100644 --- a/tb/axis_gmii_rx/test_axis_gmii_rx.py +++ b/tb/axis_gmii_rx/test_axis_gmii_rx.py @@ -48,7 +48,7 @@ class TB: self._enable_generator = None self._enable_cr = None - cocotb.fork(Clock(dut.clk, 8, units="ns").start()) + cocotb.start_soon(Clock(dut.clk, 8, units="ns").start()) self.source = GmiiSource(dut.gmii_rxd, dut.gmii_rx_er, dut.gmii_rx_dv, dut.clk, dut.rst, dut.clk_enable, dut.mii_select) @@ -77,7 +77,7 @@ class TB: self._enable_generator = generator if self._enable_generator is not None: - self._enable_cr = cocotb.fork(self._run_enable()) + self._enable_cr = cocotb.start_soon(self._run_enable()) def clear_enable_generator(self): self.set_enable_generator(None) diff --git a/tb/axis_gmii_tx/test_axis_gmii_tx.py b/tb/axis_gmii_tx/test_axis_gmii_tx.py index b575a7003..ad42e8a2f 100644 --- a/tb/axis_gmii_tx/test_axis_gmii_tx.py +++ b/tb/axis_gmii_tx/test_axis_gmii_tx.py @@ -48,7 +48,7 @@ class TB: self._enable_generator = None self._enable_cr = None - cocotb.fork(Clock(dut.clk, 8, units="ns").start()) + cocotb.start_soon(Clock(dut.clk, 8, units="ns").start()) self.source = AxiStreamSource(AxiStreamBus.from_prefix(dut, "s_axis"), dut.clk, dut.rst) self.sink = GmiiSink(dut.gmii_txd, dut.gmii_tx_er, dut.gmii_tx_en, @@ -78,7 +78,7 @@ class TB: self._enable_generator = generator if self._enable_generator is not None: - self._enable_cr = cocotb.fork(self._run_enable()) + self._enable_cr = cocotb.start_soon(self._run_enable()) def clear_enable_generator(self): self.set_enable_generator(None) diff --git a/tb/axis_xgmii_rx_32/test_axis_xgmii_rx_32.py b/tb/axis_xgmii_rx_32/test_axis_xgmii_rx_32.py index 3b048194f..7ac45db54 100644 --- a/tb/axis_xgmii_rx_32/test_axis_xgmii_rx_32.py +++ b/tb/axis_xgmii_rx_32/test_axis_xgmii_rx_32.py @@ -45,7 +45,7 @@ class TB: self.log = logging.getLogger("cocotb.tb") self.log.setLevel(logging.DEBUG) - cocotb.fork(Clock(dut.clk, 3.2, units="ns").start()) + cocotb.start_soon(Clock(dut.clk, 3.2, units="ns").start()) self.source = XgmiiSource(dut.xgmii_rxd, dut.xgmii_rxc, dut.clk, dut.rst) self.sink = AxiStreamSink(AxiStreamBus.from_prefix(dut, "m_axis"), dut.clk, dut.rst) diff --git a/tb/axis_xgmii_rx_64/test_axis_xgmii_rx_64.py b/tb/axis_xgmii_rx_64/test_axis_xgmii_rx_64.py index dc6b884d4..bce6e15f0 100644 --- a/tb/axis_xgmii_rx_64/test_axis_xgmii_rx_64.py +++ b/tb/axis_xgmii_rx_64/test_axis_xgmii_rx_64.py @@ -45,7 +45,7 @@ class TB: self.log = logging.getLogger("cocotb.tb") self.log.setLevel(logging.DEBUG) - cocotb.fork(Clock(dut.clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.clk, 6.4, units="ns").start()) self.source = XgmiiSource(dut.xgmii_rxd, dut.xgmii_rxc, dut.clk, dut.rst) self.sink = AxiStreamSink(AxiStreamBus.from_prefix(dut, "m_axis"), dut.clk, dut.rst) diff --git a/tb/axis_xgmii_tx_32/test_axis_xgmii_tx_32.py b/tb/axis_xgmii_tx_32/test_axis_xgmii_tx_32.py index 46c03974a..1a7f33591 100644 --- a/tb/axis_xgmii_tx_32/test_axis_xgmii_tx_32.py +++ b/tb/axis_xgmii_tx_32/test_axis_xgmii_tx_32.py @@ -46,7 +46,7 @@ class TB: self.log = logging.getLogger("cocotb.tb") self.log.setLevel(logging.DEBUG) - cocotb.fork(Clock(dut.clk, 3.2, units="ns").start()) + cocotb.start_soon(Clock(dut.clk, 3.2, units="ns").start()) self.source = AxiStreamSource(AxiStreamBus.from_prefix(dut, "s_axis"), dut.clk, dut.rst) self.sink = XgmiiSink(dut.xgmii_txd, dut.xgmii_txc, dut.clk, dut.rst) diff --git a/tb/axis_xgmii_tx_64/test_axis_xgmii_tx_64.py b/tb/axis_xgmii_tx_64/test_axis_xgmii_tx_64.py index cf2910ca0..f36d77bca 100644 --- a/tb/axis_xgmii_tx_64/test_axis_xgmii_tx_64.py +++ b/tb/axis_xgmii_tx_64/test_axis_xgmii_tx_64.py @@ -46,7 +46,7 @@ class TB: self.log = logging.getLogger("cocotb.tb") self.log.setLevel(logging.DEBUG) - cocotb.fork(Clock(dut.clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.clk, 6.4, units="ns").start()) self.source = AxiStreamSource(AxiStreamBus.from_prefix(dut, "s_axis"), dut.clk, dut.rst) self.sink = XgmiiSink(dut.xgmii_txd, dut.xgmii_txc, dut.clk, dut.rst) diff --git a/tb/baser.py b/tb/baser.py index 0570ff7e9..2a9c93207 100644 --- a/tb/baser.py +++ b/tb/baser.py @@ -87,7 +87,7 @@ class BaseRSerdesSource(): self.data.setimmediatevalue(0) self.header.setimmediatevalue(0) - self._run_cr = cocotb.fork(self._run()) + self._run_cr = cocotb.start_soon(self._run()) async def send(self, frame): while self.full(): @@ -398,7 +398,7 @@ class BaseRSerdesSink: self.log.info(" Enable scrambler: %s", self.scramble) self.log.info(" Bit reverse: %s", self.reverse) - self._run_cr = cocotb.fork(self._run()) + self._run_cr = cocotb.start_soon(self._run()) def _recv(self, frame, compact=True): if self.queue.empty(): diff --git a/tb/eth_axis_rx/test_eth_axis_rx.py b/tb/eth_axis_rx/test_eth_axis_rx.py index 46589cb04..0b8abc5b0 100644 --- a/tb/eth_axis_rx/test_eth_axis_rx.py +++ b/tb/eth_axis_rx/test_eth_axis_rx.py @@ -53,7 +53,7 @@ class TB: self.log = logging.getLogger("cocotb.tb") self.log.setLevel(logging.DEBUG) - cocotb.fork(Clock(dut.clk, 8, units="ns").start()) + cocotb.start_soon(Clock(dut.clk, 8, units="ns").start()) self.source = AxiStreamSource(AxiStreamBus.from_prefix(dut, "s_axis"), dut.clk, dut.rst) diff --git a/tb/eth_axis_tx/test_eth_axis_tx.py b/tb/eth_axis_tx/test_eth_axis_tx.py index 4838799fe..66a2c2b47 100644 --- a/tb/eth_axis_tx/test_eth_axis_tx.py +++ b/tb/eth_axis_tx/test_eth_axis_tx.py @@ -54,7 +54,7 @@ class TB: self.log = logging.getLogger("cocotb.tb") self.log.setLevel(logging.DEBUG) - cocotb.fork(Clock(dut.clk, 8, units="ns").start()) + cocotb.start_soon(Clock(dut.clk, 8, units="ns").start()) self.header_source = EthHdrSource(EthHdrBus.from_prefix(dut, "s_eth"), dut.clk, dut.rst) self.payload_source = AxiStreamSource(AxiStreamBus.from_prefix(dut, "s_eth_payload_axis"), dut.clk, dut.rst) diff --git a/tb/eth_mac_10g/test_eth_mac_10g.py b/tb/eth_mac_10g/test_eth_mac_10g.py index 208965013..4fcdf07cb 100644 --- a/tb/eth_mac_10g/test_eth_mac_10g.py +++ b/tb/eth_mac_10g/test_eth_mac_10g.py @@ -47,11 +47,11 @@ class TB: self.log.setLevel(logging.DEBUG) if len(dut.xgmii_txd) == 64: - cocotb.fork(Clock(dut.rx_clk, 6.4, units="ns").start()) - cocotb.fork(Clock(dut.tx_clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.rx_clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.tx_clk, 6.4, units="ns").start()) else: - cocotb.fork(Clock(dut.rx_clk, 3.2, units="ns").start()) - cocotb.fork(Clock(dut.tx_clk, 3.2, units="ns").start()) + cocotb.start_soon(Clock(dut.rx_clk, 3.2, units="ns").start()) + cocotb.start_soon(Clock(dut.tx_clk, 3.2, units="ns").start()) self.xgmii_source = XgmiiSource(dut.xgmii_rxd, dut.xgmii_rxc, dut.rx_clk, dut.rx_rst) self.xgmii_sink = XgmiiSink(dut.xgmii_txd, dut.xgmii_txc, dut.tx_clk, dut.tx_rst) diff --git a/tb/eth_mac_10g_fifo/test_eth_mac_10g_fifo.py b/tb/eth_mac_10g_fifo/test_eth_mac_10g_fifo.py index 234f018ad..53f9f57f2 100644 --- a/tb/eth_mac_10g_fifo/test_eth_mac_10g_fifo.py +++ b/tb/eth_mac_10g_fifo/test_eth_mac_10g_fifo.py @@ -47,13 +47,13 @@ class TB: self.log.setLevel(logging.DEBUG) if len(dut.xgmii_txd) == 64: - cocotb.fork(Clock(dut.logic_clk, 6.4, units="ns").start()) - cocotb.fork(Clock(dut.rx_clk, 6.4, units="ns").start()) - cocotb.fork(Clock(dut.tx_clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.logic_clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.rx_clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.tx_clk, 6.4, units="ns").start()) else: - cocotb.fork(Clock(dut.logic_clk, 3.2, units="ns").start()) - cocotb.fork(Clock(dut.rx_clk, 3.2, units="ns").start()) - cocotb.fork(Clock(dut.tx_clk, 3.2, units="ns").start()) + cocotb.start_soon(Clock(dut.logic_clk, 3.2, units="ns").start()) + cocotb.start_soon(Clock(dut.rx_clk, 3.2, units="ns").start()) + cocotb.start_soon(Clock(dut.tx_clk, 3.2, units="ns").start()) self.xgmii_source = XgmiiSource(dut.xgmii_rxd, dut.xgmii_rxc, dut.rx_clk, dut.rx_rst) self.xgmii_sink = XgmiiSink(dut.xgmii_txd, dut.xgmii_txc, dut.tx_clk, dut.tx_rst) diff --git a/tb/eth_mac_1g/test_eth_mac_1g.py b/tb/eth_mac_1g/test_eth_mac_1g.py index 7130da2eb..e51046330 100644 --- a/tb/eth_mac_1g/test_eth_mac_1g.py +++ b/tb/eth_mac_1g/test_eth_mac_1g.py @@ -50,8 +50,8 @@ class TB: self._enable_cr_rx = None self._enable_cr_tx = None - cocotb.fork(Clock(dut.rx_clk, 8, units="ns").start()) - cocotb.fork(Clock(dut.tx_clk, 8, units="ns").start()) + cocotb.start_soon(Clock(dut.rx_clk, 8, units="ns").start()) + cocotb.start_soon(Clock(dut.tx_clk, 8, units="ns").start()) self.gmii_source = GmiiSource(dut.gmii_rxd, dut.gmii_rx_er, dut.gmii_rx_dv, dut.rx_clk, dut.rx_rst, dut.rx_clk_enable, dut.rx_mii_select) @@ -91,7 +91,7 @@ class TB: self._enable_generator_rx = generator if self._enable_generator_rx is not None: - self._enable_cr_rx = cocotb.fork(self._run_enable_rx()) + self._enable_cr_rx = cocotb.start_soon(self._run_enable_rx()) def set_enable_generator_tx(self, generator=None): if self._enable_cr_tx is not None: @@ -101,7 +101,7 @@ class TB: self._enable_generator_tx = generator if self._enable_generator_tx is not None: - self._enable_cr_tx = cocotb.fork(self._run_enable_tx()) + self._enable_cr_tx = cocotb.start_soon(self._run_enable_tx()) def clear_enable_generator_rx(self): self.set_enable_generator_rx(None) diff --git a/tb/eth_mac_1g_fifo/test_eth_mac_1g_fifo.py b/tb/eth_mac_1g_fifo/test_eth_mac_1g_fifo.py index 52ac4ffd7..eead20685 100644 --- a/tb/eth_mac_1g_fifo/test_eth_mac_1g_fifo.py +++ b/tb/eth_mac_1g_fifo/test_eth_mac_1g_fifo.py @@ -50,9 +50,9 @@ class TB: self._enable_cr_rx = None self._enable_cr_tx = None - cocotb.fork(Clock(dut.logic_clk, 8, units="ns").start()) - cocotb.fork(Clock(dut.rx_clk, 8, units="ns").start()) - cocotb.fork(Clock(dut.tx_clk, 8, units="ns").start()) + cocotb.start_soon(Clock(dut.logic_clk, 8, units="ns").start()) + cocotb.start_soon(Clock(dut.rx_clk, 8, units="ns").start()) + cocotb.start_soon(Clock(dut.tx_clk, 8, units="ns").start()) self.gmii_source = GmiiSource(dut.gmii_rxd, dut.gmii_rx_er, dut.gmii_rx_dv, dut.rx_clk, dut.rx_rst, dut.rx_clk_enable, dut.rx_mii_select) @@ -93,7 +93,7 @@ class TB: self._enable_generator_rx = generator if self._enable_generator_rx is not None: - self._enable_cr_rx = cocotb.fork(self._run_enable_rx()) + self._enable_cr_rx = cocotb.start_soon(self._run_enable_rx()) def set_enable_generator_tx(self, generator=None): if self._enable_cr_tx is not None: @@ -103,7 +103,7 @@ class TB: self._enable_generator_tx = generator if self._enable_generator_tx is not None: - self._enable_cr_tx = cocotb.fork(self._run_enable_tx()) + self._enable_cr_tx = cocotb.start_soon(self._run_enable_tx()) def clear_enable_generator_rx(self): self.set_enable_generator_rx(None) diff --git a/tb/eth_mac_1g_gmii/test_eth_mac_1g_gmii.py b/tb/eth_mac_1g_gmii/test_eth_mac_1g_gmii.py index a04364ba3..f50136bd1 100644 --- a/tb/eth_mac_1g_gmii/test_eth_mac_1g_gmii.py +++ b/tb/eth_mac_1g_gmii/test_eth_mac_1g_gmii.py @@ -45,7 +45,7 @@ class TB: self.log = logging.getLogger("cocotb.tb") self.log.setLevel(logging.DEBUG) - cocotb.fork(Clock(dut.gtx_clk, 8, units="ns").start()) + cocotb.start_soon(Clock(dut.gtx_clk, 8, units="ns").start()) self.gmii_phy = GmiiPhy(dut.gmii_txd, dut.gmii_tx_er, dut.gmii_tx_en, dut.mii_tx_clk, dut.gmii_tx_clk, dut.gmii_rxd, dut.gmii_rx_er, dut.gmii_rx_dv, dut.gmii_rx_clk, speed=speed) diff --git a/tb/eth_mac_1g_gmii_fifo/test_eth_mac_1g_gmii_fifo.py b/tb/eth_mac_1g_gmii_fifo/test_eth_mac_1g_gmii_fifo.py index 00e6f7730..106c4fb3b 100644 --- a/tb/eth_mac_1g_gmii_fifo/test_eth_mac_1g_gmii_fifo.py +++ b/tb/eth_mac_1g_gmii_fifo/test_eth_mac_1g_gmii_fifo.py @@ -45,8 +45,8 @@ class TB: self.log = logging.getLogger("cocotb.tb") self.log.setLevel(logging.DEBUG) - cocotb.fork(Clock(dut.gtx_clk, 8, units="ns").start()) - cocotb.fork(Clock(dut.logic_clk, 8, units="ns").start()) + cocotb.start_soon(Clock(dut.gtx_clk, 8, units="ns").start()) + cocotb.start_soon(Clock(dut.logic_clk, 8, units="ns").start()) self.gmii_phy = GmiiPhy(dut.gmii_txd, dut.gmii_tx_er, dut.gmii_tx_en, dut.mii_tx_clk, dut.gmii_tx_clk, dut.gmii_rxd, dut.gmii_rx_er, dut.gmii_rx_dv, dut.gmii_rx_clk, speed=speed) diff --git a/tb/eth_mac_1g_rgmii/test_eth_mac_1g_rgmii.py b/tb/eth_mac_1g_rgmii/test_eth_mac_1g_rgmii.py index 7f3f522f1..c0896e94a 100644 --- a/tb/eth_mac_1g_rgmii/test_eth_mac_1g_rgmii.py +++ b/tb/eth_mac_1g_rgmii/test_eth_mac_1g_rgmii.py @@ -55,7 +55,7 @@ class TB: dut.gtx_clk.setimmediatevalue(0) dut.gtx_clk90.setimmediatevalue(0) - cocotb.fork(self._run_gtx_clk()) + cocotb.start_soon(self._run_gtx_clk()) async def reset(self): self.dut.gtx_rst.setimmediatevalue(0) diff --git a/tb/eth_mac_1g_rgmii_fifo/test_eth_mac_1g_rgmii_fifo.py b/tb/eth_mac_1g_rgmii_fifo/test_eth_mac_1g_rgmii_fifo.py index d7d27134e..fb935d045 100644 --- a/tb/eth_mac_1g_rgmii_fifo/test_eth_mac_1g_rgmii_fifo.py +++ b/tb/eth_mac_1g_rgmii_fifo/test_eth_mac_1g_rgmii_fifo.py @@ -45,7 +45,7 @@ class TB: self.log = logging.getLogger("cocotb.tb") self.log.setLevel(logging.DEBUG) - cocotb.fork(Clock(dut.logic_clk, 8, units="ns").start()) + cocotb.start_soon(Clock(dut.logic_clk, 8, units="ns").start()) self.rgmii_phy = RgmiiPhy(dut.rgmii_txd, dut.rgmii_tx_ctl, dut.rgmii_tx_clk, dut.rgmii_rxd, dut.rgmii_rx_ctl, dut.rgmii_rx_clk, speed=speed) @@ -58,7 +58,7 @@ class TB: dut.gtx_clk.setimmediatevalue(0) dut.gtx_clk90.setimmediatevalue(0) - cocotb.fork(self._run_gtx_clk()) + cocotb.start_soon(self._run_gtx_clk()) async def reset(self): self.dut.gtx_rst.setimmediatevalue(0) diff --git a/tb/eth_mac_mii_fifo/test_eth_mac_mii_fifo.py b/tb/eth_mac_mii_fifo/test_eth_mac_mii_fifo.py index d9ee29ca0..babeb1178 100644 --- a/tb/eth_mac_mii_fifo/test_eth_mac_mii_fifo.py +++ b/tb/eth_mac_mii_fifo/test_eth_mac_mii_fifo.py @@ -45,7 +45,7 @@ class TB: self.log = logging.getLogger("cocotb.tb") self.log.setLevel(logging.DEBUG) - cocotb.fork(Clock(dut.logic_clk, 40, units="ns").start()) + cocotb.start_soon(Clock(dut.logic_clk, 40, units="ns").start()) self.mii_phy = MiiPhy(dut.mii_txd, dut.mii_tx_er, dut.mii_tx_en, dut.mii_tx_clk, dut.mii_rxd, dut.mii_rx_er, dut.mii_rx_dv, dut.mii_rx_clk, speed=speed) diff --git a/tb/eth_mac_phy_10g/test_eth_mac_phy_10g.py b/tb/eth_mac_phy_10g/test_eth_mac_phy_10g.py index 48515b510..3276ed47f 100644 --- a/tb/eth_mac_phy_10g/test_eth_mac_phy_10g.py +++ b/tb/eth_mac_phy_10g/test_eth_mac_phy_10g.py @@ -58,11 +58,11 @@ class TB: self.log.setLevel(logging.DEBUG) if len(dut.serdes_tx_data) == 64: - cocotb.fork(Clock(dut.rx_clk, 6.4, units="ns").start()) - cocotb.fork(Clock(dut.tx_clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.rx_clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.tx_clk, 6.4, units="ns").start()) else: - cocotb.fork(Clock(dut.rx_clk, 3.2, units="ns").start()) - cocotb.fork(Clock(dut.tx_clk, 3.2, units="ns").start()) + cocotb.start_soon(Clock(dut.rx_clk, 3.2, units="ns").start()) + cocotb.start_soon(Clock(dut.tx_clk, 3.2, units="ns").start()) self.serdes_source = BaseRSerdesSource(dut.serdes_rx_data, dut.serdes_rx_hdr, dut.rx_clk, slip=dut.serdes_rx_bitslip) self.serdes_sink = BaseRSerdesSink(dut.serdes_tx_data, dut.serdes_tx_hdr, dut.tx_clk) diff --git a/tb/eth_mac_phy_10g_fifo/test_eth_mac_phy_10g_fifo.py b/tb/eth_mac_phy_10g_fifo/test_eth_mac_phy_10g_fifo.py index 7f61043d7..057395e1b 100644 --- a/tb/eth_mac_phy_10g_fifo/test_eth_mac_phy_10g_fifo.py +++ b/tb/eth_mac_phy_10g_fifo/test_eth_mac_phy_10g_fifo.py @@ -58,13 +58,13 @@ class TB: self.log.setLevel(logging.DEBUG) if len(dut.serdes_tx_data) == 64: - cocotb.fork(Clock(dut.logic_clk, 6.4, units="ns").start()) - cocotb.fork(Clock(dut.rx_clk, 6.4, units="ns").start()) - cocotb.fork(Clock(dut.tx_clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.logic_clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.rx_clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.tx_clk, 6.4, units="ns").start()) else: - cocotb.fork(Clock(dut.logic_clk, 3.2, units="ns").start()) - cocotb.fork(Clock(dut.rx_clk, 3.2, units="ns").start()) - cocotb.fork(Clock(dut.tx_clk, 3.2, units="ns").start()) + cocotb.start_soon(Clock(dut.logic_clk, 3.2, units="ns").start()) + cocotb.start_soon(Clock(dut.rx_clk, 3.2, units="ns").start()) + cocotb.start_soon(Clock(dut.tx_clk, 3.2, units="ns").start()) self.serdes_source = BaseRSerdesSource(dut.serdes_rx_data, dut.serdes_rx_hdr, dut.rx_clk, slip=dut.serdes_rx_bitslip) self.serdes_sink = BaseRSerdesSink(dut.serdes_tx_data, dut.serdes_tx_hdr, dut.tx_clk) diff --git a/tb/eth_phy_10g/test_eth_phy_10g.py b/tb/eth_phy_10g/test_eth_phy_10g.py index 62aabce66..d6742289d 100644 --- a/tb/eth_phy_10g/test_eth_phy_10g.py +++ b/tb/eth_phy_10g/test_eth_phy_10g.py @@ -55,8 +55,8 @@ class TB: self.log = logging.getLogger("cocotb.tb") self.log.setLevel(logging.DEBUG) - cocotb.fork(Clock(dut.tx_clk, 6.4, units="ns").start()) - cocotb.fork(Clock(dut.rx_clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.tx_clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.rx_clk, 6.4, units="ns").start()) self.xgmii_source = XgmiiSource(dut.xgmii_txd, dut.xgmii_txc, dut.tx_clk, dut.tx_rst) self.xgmii_sink = XgmiiSink(dut.xgmii_rxd, dut.xgmii_rxc, dut.rx_clk, dut.rx_rst) diff --git a/tb/ptp_clock/test_ptp_clock.py b/tb/ptp_clock/test_ptp_clock.py index a0543873e..4bed978dc 100644 --- a/tb/ptp_clock/test_ptp_clock.py +++ b/tb/ptp_clock/test_ptp_clock.py @@ -41,7 +41,7 @@ class TB: self.log = logging.getLogger("cocotb.tb") self.log.setLevel(logging.DEBUG) - cocotb.fork(Clock(dut.clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.clk, 6.4, units="ns").start()) dut.input_ts_96.setimmediatevalue(0) dut.input_ts_96_valid.setimmediatevalue(0) diff --git a/tb/ptp_clock_cdc/test_ptp_clock_cdc.py b/tb/ptp_clock_cdc/test_ptp_clock_cdc.py index a3cb90569..3b9d74820 100644 --- a/tb/ptp_clock_cdc/test_ptp_clock_cdc.py +++ b/tb/ptp_clock_cdc/test_ptp_clock_cdc.py @@ -44,9 +44,9 @@ class TB: self.log = logging.getLogger("cocotb.tb") self.log.setLevel(logging.DEBUG) - cocotb.fork(Clock(dut.input_clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.input_clk, 6.4, units="ns").start()) - cocotb.fork(Clock(dut.sample_clk, 10, units="ns").start()) + cocotb.start_soon(Clock(dut.sample_clk, 10, units="ns").start()) if len(dut.input_ts) == 64: self.ptp_clock = PtpClock( @@ -86,7 +86,7 @@ class TB: if self._clock_cr is not None: self._clock_cr.kill() - self._clock_cr = cocotb.fork(self._run_clock(period)) + self._clock_cr = cocotb.start_soon(self._run_clock(period)) async def _run_clock(self, period): half_period = get_sim_steps(period / 2.0, 'ns') diff --git a/tb/ptp_perout/test_ptp_perout.py b/tb/ptp_perout/test_ptp_perout.py index f16340002..13a126f9d 100644 --- a/tb/ptp_perout/test_ptp_perout.py +++ b/tb/ptp_perout/test_ptp_perout.py @@ -42,7 +42,7 @@ class TB: self.log = logging.getLogger("cocotb.tb") self.log.setLevel(logging.DEBUG) - cocotb.fork(Clock(dut.clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.clk, 6.4, units="ns").start()) self.ptp_clock = PtpClock( ts_96=dut.input_ts_96, diff --git a/tb/xgmii_baser_dec_64/test_xgmii_baser_dec_64.py b/tb/xgmii_baser_dec_64/test_xgmii_baser_dec_64.py index 081663aa9..bfeb226fc 100644 --- a/tb/xgmii_baser_dec_64/test_xgmii_baser_dec_64.py +++ b/tb/xgmii_baser_dec_64/test_xgmii_baser_dec_64.py @@ -55,7 +55,7 @@ class TB: self.log = logging.getLogger("cocotb.tb") self.log.setLevel(logging.DEBUG) - cocotb.fork(Clock(dut.clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.clk, 6.4, units="ns").start()) self.source = BaseRSerdesSource(dut.encoded_rx_data, dut.encoded_rx_hdr, dut.clk, scramble=False) self.sink = XgmiiSink(dut.xgmii_rxd, dut.xgmii_rxc, dut.clk, dut.rst) diff --git a/tb/xgmii_baser_enc_64/test_xgmii_baser_enc_64.py b/tb/xgmii_baser_enc_64/test_xgmii_baser_enc_64.py index 38fe737fe..6b25d26a6 100644 --- a/tb/xgmii_baser_enc_64/test_xgmii_baser_enc_64.py +++ b/tb/xgmii_baser_enc_64/test_xgmii_baser_enc_64.py @@ -55,7 +55,7 @@ class TB: self.log = logging.getLogger("cocotb.tb") self.log.setLevel(logging.DEBUG) - cocotb.fork(Clock(dut.clk, 6.4, units="ns").start()) + cocotb.start_soon(Clock(dut.clk, 6.4, units="ns").start()) self.source = XgmiiSource(dut.xgmii_txd, dut.xgmii_txc, dut.clk, dut.rst) self.sink = BaseRSerdesSink(dut.encoded_tx_data, dut.encoded_tx_hdr, dut.clk, scramble=False)