projects
/
soc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c978e1e
)
whitespace
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Thu, 5 Mar 2020 03:55:48 +0000
(
03:55
+0000)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Thu, 5 Mar 2020 03:55:48 +0000
(
03:55
+0000)
src/decoder/power_decoder.py
patch
|
blob
|
history
diff --git
a/src/decoder/power_decoder.py
b/src/decoder/power_decoder.py
index 0c65872af9aa459db922d221d9f281ed46f7fe57..ea8e50218045fa7ff3d3ff2016a54aba61cb20d9 100644
(file)
--- a/
src/decoder/power_decoder.py
+++ b/
src/decoder/power_decoder.py
@@
-161,6
+161,7
@@
class PowerDecoder(Elaboratable):
def ports(self):
return [self.opcode_in] + self.op.ports()
+
def create_pdecode():
# minor 19 has extra patterns
@@
-194,9
+195,9
@@
def create_pdecode():
return PowerDecoder(32, dec)
+
if __name__ == '__main__':
pdecode = create_pdecode()
vl = rtlil.convert(pdecode, ports=pdecode.ports())
with open("decoder.il", "w") as f:
f.write(vl)
-