projects
/
soc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
079c3a0
)
Add test_isel
author
Michael Nolan
<mtnolan2640@gmail.com>
Sat, 23 May 2020 13:16:23 +0000
(09:16 -0400)
committer
Michael Nolan
<mtnolan2640@gmail.com>
Sat, 23 May 2020 13:16:23 +0000
(09:16 -0400)
src/soc/fu/cr/test/test_pipe_caller.py
patch
|
blob
|
history
diff --git
a/src/soc/fu/cr/test/test_pipe_caller.py
b/src/soc/fu/cr/test/test_pipe_caller.py
index 1f2a183e4ba22e487fb04e619e76fee6e95c5af8..949238b7372d44e2e806fa9a8e7b31b5aa07b388 100644
(file)
--- a/
src/soc/fu/cr/test/test_pipe_caller.py
+++ b/
src/soc/fu/cr/test/test_pipe_caller.py
@@
-125,6
+125,18
@@
class CRTestCase(FHDLTestCase):
cr = random.randint(0, (1<<32)-1)
self.run_tst_program(Program(lst), initial_cr=cr)
+ def test_isel(self):
+ for i in range(20):
+ bc = random.randint(0, 31)
+ lst = [f"isel 1, 2, 3, {bc}"]
+ cr = random.randint(0, (1<<32)-1)
+ initial_regs = [0] * 32
+ initial_regs[2] = random.randint(0, (1<<64)-1)
+ initial_regs[3] = random.randint(0, (1<<64)-1)
+ self.run_tst_program(Program(lst), initial_cr=cr)
+
+
+
def test_ilang(self):
pspec = CRPipeSpec(id_wid=2)
alu = CRBasePipe(pspec)