From: Tobias Platen Date: Mon, 18 Jan 2021 17:25:13 +0000 (+0100) Subject: fu/mmu/fsm.py: connect valid and load signals X-Git-Tag: 24jan2021_ls180~21 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eeb13d7f35c1418a574efd5f0ff65ad2934c6452;p=soc.git fu/mmu/fsm.py: connect valid and load signals --- diff --git a/src/soc/fu/mmu/fsm.py b/src/soc/fu/mmu/fsm.py index a8986889..512843c2 100644 --- a/src/soc/fu/mmu/fsm.py +++ b/src/soc/fu/mmu/fsm.py @@ -34,17 +34,26 @@ class LoadStore1(PortInterfaceBase): self.debug2 = Signal() def set_wr_addr(self, m, addr, mask): + #m.d.comb += self.d_in.valid.eq(1) + #m.d.comb += self.l_in.valid.eq(1) + #m.d.comb += self.d_in.load.eq(0) + #m.d.comb += self.l_in.load.eq(0) m.d.comb += self.d_in.addr.eq(addr) m.d.comb += self.l_in.addr.eq(addr) # TODO set mask return None def set_rd_addr(self, m, addr, mask): + m.d.comb += self.d_in.valid.eq(1) + m.d.comb += self.l_in.valid.eq(1) + m.d.comb += self.d_in.load.eq(1) + m.d.comb += self.l_in.load.eq(1) m.d.comb += self.d_in.addr.eq(addr) m.d.comb += self.l_in.addr.eq(addr) m.d.comb += self.debug1.eq(1) - # TODO set mask - return None + # m.d.comb += self.debug2.eq(1) + # connect testmem first + return None #FIXME return value def set_wr_data(self, m, data, wen): m.d.comb += self.d_in.data.eq(data) @@ -54,7 +63,6 @@ class LoadStore1(PortInterfaceBase): def get_rd_data(self, m): ld_ok = Const(1, 1) - m.d.comb += self.debug2.eq(1) #const high data = self.d_out.data return data, ld_ok