make insn_i a signal of length n_insns instead of Array
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 13 May 2019 06:30:10 +0000 (07:30 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 13 May 2019 06:30:10 +0000 (07:30 +0100)
src/scoreboard/issue_unit.py

index 187804a269f12430e8c490aef52928d4ab163958..2ebb695ed6a92e2227e2db7fccd1bd9cacc48766 100644 (file)
@@ -74,8 +74,7 @@ class IssueUnit(Elaboratable):
 
         self.g_wr_pend_i = Signal(wid, reset_less=True) # write pending vector
 
-        self.insn_i = Array(Signal(reset_less=True, name="insn_i") \
-                               for i in range(n_insns))
+        self.insn_i = Signal(n_insns, reset_less=True, name="insn_i")
         self.busy_i = Array(Signal(reset_less=True, name="busy_i") \
                                for i in range(n_insns))