projects
/
soc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63f09d1
)
whoops, operation supposed to be tested, not counter
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Sat, 25 May 2019 22:16:49 +0000
(23:16 +0100)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Sat, 25 May 2019 22:16:49 +0000
(23:16 +0100)
src/experiment/compalu.py
patch
|
blob
|
history
diff --git
a/src/experiment/compalu.py
b/src/experiment/compalu.py
index 12e519f0631b3b498240497a530441d51240c49c..1f3b90512e1d8940f9be7d096c2390c2ac12bd63 100644
(file)
--- a/
src/experiment/compalu.py
+++ b/
src/experiment/compalu.py
@@
-105,7
+105,7
@@
class ComputationUnitNoDelay(Elaboratable):
m.d.sync += self.counter.eq(5)
with m.Elif(self.oper_i == 3): # SHIFT to take 7
m.d.sync += self.counter.eq(7)
- with m.Elif(self.
counter
>= 4): # Branches take 6 (to test shadow)
+ with m.Elif(self.
oper_i
>= 4): # Branches take 6 (to test shadow)
m.d.sync += self.counter.eq(6)
with m.Else(): # ADD/SUB to take 2
m.d.sync += self.counter.eq(2)