From ff888b217beda3c31e3e380a99b78c71f9b3e566 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 22 Jun 2020 13:06:34 +0100 Subject: [PATCH] comments for LDST CompUnit test --- src/soc/experiment/compldst_multi.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/soc/experiment/compldst_multi.py b/src/soc/experiment/compldst_multi.py index 4bcfc7dd..5a91dca3 100644 --- a/src/soc/experiment/compldst_multi.py +++ b/src/soc/experiment/compldst_multi.py @@ -614,12 +614,15 @@ def load(dut, src1, src2, imm, imm_ok=True, update=False, zero_a=False, yield yield dut.issue_i.eq(0) yield + + # set up read-operand flags rd = 0b00 - if not imm_ok: + if not imm_ok: # no immediate means RB register needs to be read rd |= 0b10 - if not zero_a: + if not zero_a: # no zero-a means RA needs to be read rd |= 0b01 + # wait for the operands (RA, RB, or both) if rd: yield dut.rd.go.eq(rd) yield from wait_for(dut.rd.rel) -- 2.30.2