projects
/
soc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4240ee
)
Fix logical loop in DecodeA
author
Michael Nolan
<mtnolan2640@gmail.com>
Mon, 9 Mar 2020 15:00:55 +0000
(11:00 -0400)
committer
Michael Nolan
<mtnolan2640@gmail.com>
Mon, 9 Mar 2020 15:00:55 +0000
(11:00 -0400)
src/soc/decoder/power_decoder2.py
patch
|
blob
|
history
diff --git
a/src/soc/decoder/power_decoder2.py
b/src/soc/decoder/power_decoder2.py
index 81805a7355d582a506981b2d49879d7fbf1843c4..436005c6960e910613170b45691cc9715e2fc4f9 100644
(file)
--- a/
src/soc/decoder/power_decoder2.py
+++ b/
src/soc/decoder/power_decoder2.py
@@
-34,13
+34,13
@@
class DecodeA(Elaboratable):
# select Register A field
with m.If((self.sel_in == In1Sel.RA) |
((self.sel_in == In1Sel.RA_OR_ZERO) &
- (self.
reg_out.data
!= Const(0, 5)))):
+ (self.
dec.RA[0:-1]
!= Const(0, 5)))):
comb += self.reg_out.data.eq(self.dec.RA[0:-1])
comb += self.reg_out.ok.eq(1)
# zero immediate requested
with m.If((self.sel_in == In1Sel.RA_OR_ZERO) &
-
(self.reg_out.data == Const(0, 5))):
+ (self.reg_out.data == Const(0, 5))):
comb += self.immz_out.eq(1)
# decode SPR1 based on instruction type