From ce0b77ae27014cbcc2972b4894cea99aaef222d4 Mon Sep 17 00:00:00 2001 From: Cesar Strauss Date: Thu, 31 Dec 2020 17:31:41 -0300 Subject: [PATCH] Test first input port being masked out --- src/soc/experiment/test/test_compalu_multi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/soc/experiment/test/test_compalu_multi.py b/src/soc/experiment/test/test_compalu_multi.py index f27a2500..3e295935 100644 --- a/src/soc/experiment/test/test_compalu_multi.py +++ b/src/soc/experiment/test/test_compalu_multi.py @@ -458,8 +458,8 @@ def scoreboard_sim(op): yield from op.issue([0x80, 2], MicrOp.OP_EXTS, [0xFF80], rdmaskn=[0, 1], src_delays=[2, 1], dest_delays=[0]) - # 0 (masked) + 2 = 2 - yield from op.issue([5, 2], MicrOp.OP_ADD, [2], + # sign_extend(0x80) = 0xFF80 + yield from op.issue([2, 0x80], MicrOp.OP_EXTSWSLI, [0xFF80], rdmaskn=[1, 0], src_delays=[1, 2], dest_delays=[1]) # 0 (masked) + 0 (masked) = 0 -- 2.30.2