projects
/
soc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2227dae
)
Add a few test cases with zero_a set, in combination with imm_ok
author
Cesar Strauss
<cestrauss@gmail.com>
Sat, 23 May 2020 22:52:08 +0000
(19:52 -0300)
committer
Cesar Strauss
<cestrauss@gmail.com>
Sat, 23 May 2020 22:55:45 +0000
(19:55 -0300)
src/soc/experiment/compalu_multi.py
patch
|
blob
|
history
diff --git
a/src/soc/experiment/compalu_multi.py
b/src/soc/experiment/compalu_multi.py
index 23652c4538f21a71e2cdefa3d15410b319a23fb3..d2952acc472c6e9ff6eece14353b887e9eec2efb 100644
(file)
--- a/
src/soc/experiment/compalu_multi.py
+++ b/
src/soc/experiment/compalu_multi.py
@@
-389,6
+389,13
@@
def scoreboard_sim(dut):
result = yield from op_sim(dut, 5, 2, InternalOp.OP_ADD, inv_a=1)
assert result == 65532
+ result = yield from op_sim(dut, 5, 2, InternalOp.OP_ADD, zero_a=1,
+ imm=8, imm_ok=1)
+ assert result == 8
+
+ result = yield from op_sim(dut, 5, 2, InternalOp.OP_ADD, zero_a=1)
+ assert result == 2
+
def test_compunit():
from alu_hier import ALU