From 651198d42e5d781524c16c9015aa6706d151d265 Mon Sep 17 00:00:00 2001 From: Marek Materzok Date: Tue, 24 Sep 2024 12:44:14 +0200 Subject: [PATCH] Verify the cycle count for fully pipelined test --- test/transactron/lib/test_transaction_lib.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/transactron/lib/test_transaction_lib.py b/test/transactron/lib/test_transaction_lib.py index c323a9211..0c992c19b 100644 --- a/test/transactron/lib/test_transaction_lib.py +++ b/test/transactron/lib/test_transaction_lib.py @@ -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)