rename load_i and stor_i to ld_pend_i / st_pend_i, match names in MemFUDepMatrix
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 5 Jun 2019 07:58:26 +0000 (08:58 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 5 Jun 2019 07:58:26 +0000 (08:58 +0100)
src/scoreboard/ldst_matrix.py

index 1597f36497e5fffebfe55a37755d75951c670c85..30a946e0c56c05b83af8f3638526ee66953bbe28 100644 (file)
@@ -47,8 +47,8 @@ class LDSTDepMatrix(Elaboratable):
     """
     def __init__(self, n_ldst):
         self.n_ldst = n_ldst                  # X and Y (FUs)
     """
     def __init__(self, n_ldst):
         self.n_ldst = n_ldst                  # X and Y (FUs)
-        self.load_i = Signal(n_ldst, reset_less=True)  # load pending in
-        self.stor_i = Signal(n_ldst, reset_less=True)  # store pending in
+        self.ld_pend_i = Signal(n_ldst, reset_less=True)  # load pending in
+        self.st_pend_i = Signal(n_ldst, reset_less=True)  # store pending in
         self.issue_i = Signal(n_ldst, reset_less=True) # Issue in
 
         self.load_hit_i = Signal(n_ldst, reset_less=True) # load hit in
         self.issue_i = Signal(n_ldst, reset_less=True) # Issue in
 
         self.load_hit_i = Signal(n_ldst, reset_less=True) # load hit in
@@ -94,8 +94,8 @@ class LDSTDepMatrix(Elaboratable):
                         ]
 
         # connect cell inputs using Cat(*list_of_stuff)
                         ]
 
         # connect cell inputs using Cat(*list_of_stuff)
-        m.d.comb += [Cat(*load_l).eq(self.load_i),
-                     Cat(*stor_l).eq(self.stor_i),
+        m.d.comb += [Cat(*load_l).eq(self.ld_pend_i),
+                     Cat(*stor_l).eq(self.st_pend_i),
                      Cat(*issue_l).eq(self.issue_i),
                     ]
         # connect the load-hold-store / store-hold-load OR-accumulated outputs
                      Cat(*issue_l).eq(self.issue_i),
                     ]
         # connect the load-hold-store / store-hold-load OR-accumulated outputs
@@ -110,15 +110,15 @@ class LDSTDepMatrix(Elaboratable):
                 dc = dm[fux]
                 load_v_l.append(dc.load_v_i[fu])
                 stor_v_l.append(dc.stor_v_i[fu])
                 dc = dm[fux]
                 load_v_l.append(dc.load_v_i[fu])
                 stor_v_l.append(dc.stor_v_i[fu])
-            m.d.comb += [Cat(*load_v_l).eq(self.load_i),
-                         Cat(*stor_v_l).eq(self.stor_i),
+            m.d.comb += [Cat(*load_v_l).eq(self.ld_pend_i),
+                         Cat(*stor_v_l).eq(self.st_pend_i),
                         ]
 
         return m
 
     def __iter__(self):
                         ]
 
         return m
 
     def __iter__(self):
-        yield self.load_i
-        yield self.stor_i
+        yield self.ld_pend_i
+        yield self.st_pend_i
         yield self.issue_i
         yield self.load_hit_i
         yield self.stwd_hit_i
         yield self.issue_i
         yield self.load_hit_i
         yield self.stwd_hit_i