From 511543b793aeaa2d75016d9cd9aac4c50f3fc9f7 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 13 May 2019 20:01:29 +0100 Subject: [PATCH] split out readable/writable setup --- src/scoreboard/fu_fu_matrix.py | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/src/scoreboard/fu_fu_matrix.py b/src/scoreboard/fu_fu_matrix.py index a73cde9c..5ee7d702 100644 --- a/src/scoreboard/fu_fu_matrix.py +++ b/src/scoreboard/fu_fu_matrix.py @@ -54,6 +54,19 @@ class FUFUDepMatrix(Elaboratable): # --- readable = [] writable = [] + for x in range(self.n_fu_col): + fu = fur[x] + # accumulate Readable/Writable Vector outputs + readable.append(fu.readable_o) + writable.append(fu.writable_o) + + # ... and output them from this module (horizontal, width=REGs) + m.d.comb += self.readable_o.eq(Cat(*readable)) + m.d.comb += self.writable_o.eq(Cat(*writable)) + + # --- + # connect FU Pending + # --- for x in range(self.n_fu_col): fu = fur[x] rd_pend_o = [] @@ -67,14 +80,6 @@ class FUFUDepMatrix(Elaboratable): m.d.comb += [fu.rd_pend_i.eq(Cat(*rd_pend_o)), fu.wr_pend_i.eq(Cat(*wr_pend_o)), ] - # accumulate Readable/Writable Vector outputs - readable.append(fu.readable_o) - writable.append(fu.writable_o) - - # ... and output them from this module (horizontal, width=REGs) - m.d.comb += self.readable_o.eq(Cat(*readable)) - m.d.comb += self.writable_o.eq(Cat(*writable)) - # --- # connect Dependency Matrix dest/src1/src2/issue to module d/s/s/i # --- -- 2.30.2