From b38391f3a9696a2e83b446dd0c009841f6c78166 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 8 May 2020 21:54:19 +0100 Subject: [PATCH] working indexed version of LD/ST CompUnit --- src/soc/experiment/compldst_multi.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/soc/experiment/compldst_multi.py b/src/soc/experiment/compldst_multi.py index b4bc738b..1ad24443 100644 --- a/src/soc/experiment/compldst_multi.py +++ b/src/soc/experiment/compldst_multi.py @@ -575,6 +575,10 @@ def load(dut, src1, src2, imm, imm_ok=True): def scoreboard_sim(dut): + + ################### + # immediate version + # two STs (different addresses) yield from store(dut, 4, 0, 3, 2) yield from store(dut, 2, 0, 9, 2) @@ -583,9 +587,14 @@ def scoreboard_sim(dut): data = yield from load(dut, 4, 0, 2) assert data == 0x0003, "returned %x" % data data = yield from load(dut, 2, 0, 2) - assert data == 0x0009 + assert data == 0x0009, "returned %x" % data yield + # indexed version + yield from store(dut, 4, 5, 3, 0, imm_ok=False) + data = yield from load(dut, 4, 5, 0, imm_ok=False) + assert data == 0x0003, "returned %x" % data + class TestLDSTCompUnit(LDSTCompUnit): -- 2.30.2