idea for sub-decoder
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 1 Mar 2020 20:21:54 +0000 (20:21 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 1 Mar 2020 20:21:54 +0000 (20:21 +0000)
src/decoder/power_decoder.py

index 666188663c9309627c147a028786f94140c47daa..d95facb60e34cc1983072500ee19e7442e62e911 100644 (file)
@@ -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)