Skip to content

Commit

Permalink
Verify the cycle count for fully pipelined test
Browse files Browse the repository at this point in the history
  • Loading branch information
tilk committed Sep 24, 2024
1 parent c922b32 commit 651198d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/transactron/lib/test_transaction_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,10 @@ def reader_resp():
assert (yield from m.read_resp.call()) == {"data": d}
yield from self.random_wait(reader_resp_rand)

with self.run_simulation(m) as sim:
pipeline_test = writer_rand == 0 and reader_req_rand == 0 and reader_resp_rand == 0
max_cycles = test_count + 2 if pipeline_test else 100000

with self.run_simulation(m, max_cycles=max_cycles) as sim:
sim.add_sync_process(reader_req)
sim.add_sync_process(reader_resp)
sim.add_sync_process(writer)
Expand Down

0 comments on commit 651198d

Please sign in to comment.