From: Luke Kenneth Casson Leighton Date: Mon, 10 Jun 2019 12:07:05 +0000 (+0100) Subject: start connecting memory function unit X-Git-Tag: div_pipeline~1853 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=774528a19381898e49a791900d366671aa9045d6;p=soc.git start connecting memory function unit --- diff --git a/src/experiment/score6600.py b/src/experiment/score6600.py index ccb26c1c..2c254837 100644 --- a/src/experiment/score6600.py +++ b/src/experiment/score6600.py @@ -215,12 +215,12 @@ class CompUnitLDSTs(CompUnitsBase): self.imm_i = Signal(rwid, reset_less=True) # Int ALUs - alus = [] + self.alus = [] for i in range(n_ldsts): - alus.append(ALU(rwid)) + self.alus.append(ALU(rwid)) units = [] - for alu in alus: + for alu in self.alus: aluopwid = 4 # see compldst.py for "internal" opcode units.append(LDSTCompUnit(rwid, aluopwid, alu, mem)) @@ -533,6 +533,16 @@ class Scoreboard(Elaboratable): comb += issueunit.busy_i.eq(cu.busy_o) comb += self.busy_o.eq(cu.busy_o.bool()) + #--------- + # Memory Function Unit + #--------- + comb += memfus.fn_issue_i.eq(cul.issue_i) # Comp Unit Issue -> Mem FUs + comb += memfus.addr_we_i.eq(cul.adr_rel_o) # Match enable on adr rel + + #comb += cu.go_rd_i[0:n_intfus].eq(go_rd_o[0:n_intfus]) + #comb += cu.go_wr_i[0:n_intfus].eq(go_wr_o[0:n_intfus]) + #comb += cu.issue_i[0:n_intfus].eq(fn_issue_o[0:n_intfus]) + #--------- # merge shadow matrices outputs #---------