X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fsoc%2Fexperiment%2Ftest%2Ftest_compalu_multi.py;h=39b24147fb5bdef50ba77e822719dcb1ab11c762;hb=1637a3acdb1959e05e00b645b9ae95c18215651f;hp=4c2e1347adc29a4d2b05d018746bf6fff1a458a0;hpb=099825f7d53fb64adb30e363fd359eda3d1f14cd;p=soc.git diff --git a/src/soc/experiment/test/test_compalu_multi.py b/src/soc/experiment/test/test_compalu_multi.py index 4c2e1347..39b24147 100644 --- a/src/soc/experiment/test/test_compalu_multi.py +++ b/src/soc/experiment/test/test_compalu_multi.py @@ -464,13 +464,6 @@ def scoreboard_sim(op): wrmask=[0, 1], src_delays=[2, 0], dest_delays=[1, 0]) - # test combinatorial zero-delay operation - # In the test ALU, any operation other than ADD, MUL, EXTS or SHR - # is zero-delay, and do a subtraction. - # 5 - 2 = 3 - yield from op.issue([5, 2], MicrOp.OP_CMP, [3, 0], - wrmask=[0, 1], - src_delays=[0, 1], dest_delays=[2, 0]) # test all combinations of masked input ports # NOP does not make any request nor response yield from op.issue([5, 2], MicrOp.OP_NOP, [0, 0], @@ -484,6 +477,15 @@ def scoreboard_sim(op): yield from op.issue([2, 0x80], MicrOp.OP_EXTSWSLI, [0xFF80, 0], rdmaskn=[1, 0], wrmask=[0, 1], src_delays=[1, 2], dest_delays=[1, 0]) + + # test combinatorial zero-delay operation + # In the test ALU, any operation other than ADD, MUL, EXTS or SHR + # is zero-delay, and do a subtraction. + # 5 - 2 = 3 + yield from op.issue([5, 2], MicrOp.OP_CMP, [3, 0], + wrmask=[0, 1], + src_delays=[0, 1], dest_delays=[2, 0]) + # test with rc=1, so expect results on the CR output port # 5 + 2 = 7 # 7 > 0 => CR = 0b100