From b87149bcd555b8c5c330aa31a021a9c1b1ef2c95 Mon Sep 17 00:00:00 2001 From: Lekcyjna <309016@uwr.edu.pl> Date: Sun, 1 Oct 2023 11:59:32 +0200 Subject: [PATCH] Example to reproduce amaranth bug. --- coreblocks/structs_common/exception.py | 2 +- test/transactions/test_transaction_lib.py | 50 +++++++++++++++++++++-- 2 files changed, 48 insertions(+), 4 deletions(-) diff --git a/coreblocks/structs_common/exception.py b/coreblocks/structs_common/exception.py index 412ea820b..cb712ace5 100644 --- a/coreblocks/structs_common/exception.py +++ b/coreblocks/structs_common/exception.py @@ -72,7 +72,7 @@ def _(cause, rob_id): diff2 = Signal.like(rob_start_idx) m.d.comb += diff1.eq((rob_id - rob_start_idx)) m.d.comb += diff2.eq((self.rob_id - rob_start_idx)) - m.d.comb += should_write.eq(diff1