Skip to content

Commit

Permalink
change deprecated fork to start_soon
Browse files Browse the repository at this point in the history
  • Loading branch information
bensampson5 committed May 26, 2024
1 parent be2ebd1 commit 225254e
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tests/arbiters/test_ring_arbiter.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ async def cocotb_test_ring_arbiter(dut):
ports = int(dut.PORTS)
data_width = int(dut.DATA_WIDTH)

cocotb.fork(Clock(dut.i_clock, 2).start())
cocotb.start_soon(Clock(dut.i_clock, 2).start())

# reset
dut.i_aresetn.value = 0
Expand Down
2 changes: 1 addition & 1 deletion tests/coders/test_decoder_8b10b.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ async def cocotb_test_decoder_8b10b(dut):
"""8B/10B Decoder test"""

# Create clock
cocotb.fork(Clock(dut.i_clk, 2).start())
cocotb.start_soon(Clock(dut.i_clk, 2).start())

# Assert reset and check output and
# internal running disparity
Expand Down
2 changes: 1 addition & 1 deletion tests/coders/test_encoder_8b10b.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ async def cocotb_test_encoder_8b10b(dut):
"""8B/10B Encoder test"""

# Create clock
cocotb.fork(Clock(dut.i_clk, 2).start())
cocotb.start_soon(Clock(dut.i_clk, 2).start())

# Assert reset and check output and
# internal running disparity
Expand Down
2 changes: 1 addition & 1 deletion tests/counters/test_binary_counter.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ async def cocotb_test_binary_counter(dut):

n = int(dut.N)

cocotb.fork(Clock(dut.clk, 2).start())
cocotb.start_soon(Clock(dut.clk, 2).start())

# reset
dut.aresetn.value = 0
Expand Down
2 changes: 1 addition & 1 deletion tests/fifos/test_skid_buffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ async def cocotb_test_skid_buffer(dut):

data_width = int(dut.DATA_WIDTH)

cocotb.fork(Clock(dut.i_clock, 2).start())
cocotb.start_soon(Clock(dut.i_clock, 2).start())

# reset
dut.i_aresetn.value = 0
Expand Down
2 changes: 1 addition & 1 deletion tests/fifos/test_sync_fifo.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ async def cocotb_test_sync_fifo(dut):
data_width = int(dut.DATA_WIDTH)
fifo_depth = int(dut.FIFO_DEPTH)

cocotb.fork(Clock(dut.i_clock, 2).start())
cocotb.start_soon(Clock(dut.i_clock, 2).start())

# reset
dut.i_aresetn.value = 0
Expand Down
2 changes: 1 addition & 1 deletion tests/synchronizers/test_synchronizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ async def cocotb_test_synchonrizer(dut):

ff_stages = int(dut.FF_STAGES)

cocotb.fork(Clock(dut.i_clock, 2).start())
cocotb.start_soon(Clock(dut.i_clock, 2).start())

dut.i_aresetn.value = 0
await FallingEdge(dut.i_clock)
Expand Down

0 comments on commit 225254e

Please sign in to comment.