projects
/
soc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
277eb07
)
idea for sub-decoder
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Sun, 1 Mar 2020 20:21:54 +0000
(20:21 +0000)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Sun, 1 Mar 2020 20:21:54 +0000
(20:21 +0000)
src/decoder/power_decoder.py
patch
|
blob
|
history
diff --git
a/src/decoder/power_decoder.py
b/src/decoder/power_decoder.py
index 666188663c9309627c147a028786f94140c47daa..d95facb60e34cc1983072500ee19e7442e62e911 100644
(file)
--- a/
src/decoder/power_decoder.py
+++ b/
src/decoder/power_decoder.py
@@
-89,3
+89,13
@@
class PowerDecoder(Elaboratable):
def ports(self):
return [self.opcode_in] + self.op.ports()
+# how about this?
+if False:
+ pminor = (0, 6, [(19, "minor_19", (1,11)), # pass to 'splitter' function
+ (30, "minor_30", (1,4)),
+ (31, "minor_31", (1,11)), # pass to 'splitter' function
+ (58, "minor_58", (0,1)),
+ (62, "minor_62", (0,1)),
+ ]
+
+ pdecode = PowerDecoder(6, "major", subcoders = pminor)