From: Luke Kenneth Casson Leighton Date: Sun, 1 Mar 2020 20:21:54 +0000 (+0000) Subject: idea for sub-decoder X-Git-Tag: div_pipeline~1795 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=beab31e91737b988015d08b58bc961eed28fd609;p=soc.git idea for sub-decoder --- diff --git a/src/decoder/power_decoder.py b/src/decoder/power_decoder.py index 66618866..d95facb6 100644 --- 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)