From: Tobias Platen Date: Mon, 24 Aug 2020 16:50:47 +0000 (+0200) Subject: TestCachedMemoryPortInterface cleanup X-Git-Tag: semi_working_ecp5~264 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=497a722a987780ed7a74b362cfc13d89dea1f73d;p=soc.git TestCachedMemoryPortInterface cleanup --- diff --git a/src/soc/experiment/test/test_l0_cache_buffer2.py b/src/soc/experiment/test/test_l0_cache_buffer2.py index f23536e9..11fa645d 100644 --- a/src/soc/experiment/test/test_l0_cache_buffer2.py +++ b/src/soc/experiment/test/test_l0_cache_buffer2.py @@ -27,21 +27,20 @@ class TestCachedMemoryPortInterface(PortInterfaceBase): def set_wr_addr(self, m, addr, mask): m.d.comb += self.ldst.addr_i.eq(addr) - #lsbaddr, msbaddr = self.splitaddr(addr) def set_rd_addr(self, m, addr, mask): m.d.comb += self.ldst.addr_i.eq(addr) - #lsbaddr, msbaddr = self.splitaddr(addr) - #m.d.comb += self..eq(msbaddr) def set_wr_data(self, m, data, wen): m.d.comb += self.ldst.st_data_i.data.eq(data) # write st to mem m.d.comb += self.ldst.is_st_i.eq(wen) # enable writes - return Const(1, 1) #fixme -- write may be longer than one cycle + st_ok = Const(1, 1) + return st_ok def get_rd_data(self, m): # this path is still untested - return self.ldst.ld_data_o.data, Const(1, 1) + ld_ok = Const(1, 1) + return self.ldst.ld_data_o.data, ld_ok def elaborate(self, platform): m = super().elaborate(platform)