code comments for core
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 1 Nov 2021 09:53:13 +0000 (09:53 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 1 Nov 2021 09:53:13 +0000 (09:53 +0000)
src/soc/simple/core.py

index 65643115173926ed7a7499c0c75ad60e45116275..a381059c703b2835c61743f231e8412d411ca49c 100644 (file)
@@ -163,6 +163,9 @@ class NonProductionCore(Elaboratable):
 
         # connect decoders
         for k, v in self.decoders.items():
+            # connect each satellite decoder and give it the instruction.
+            # as subset decoders this massively reduces wire fanout given
+            # the large number of ALUs
             setattr(m.submodules, "dec_%s" % v.fn_name, v)
             comb += v.dec.raw_opcode_in.eq(self.raw_insn_i)
             comb += v.dec.bigendian.eq(self.bigendian_i)