From 79600f954a3a58f11f11b207df172de7820b8d96 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 10 Oct 2023 14:55:26 +0200 Subject: [PATCH] mac/sram: Minor cleanup by directly using port instead of ports[n] in the loop. --- liteeth/mac/sram.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/liteeth/mac/sram.py b/liteeth/mac/sram.py index ecd1326..9951674 100644 --- a/liteeth/mac/sram.py +++ b/liteeth/mac/sram.py @@ -289,8 +289,8 @@ class LiteEthMACSRAMReader(Module, AutoCSR): # Connect Memory ports. cases = {} for n, port in enumerate(ports): - self.comb += ports[n].re.eq(read) - self.comb += ports[n].adr.eq(length[int(math.log2(dw//8)):]) + self.comb += port.re.eq(read) + self.comb += port.adr.eq(length[int(math.log2(dw//8)):]) cases[n] = [rd_data.eq(port.dat_r)] self.comb += Case(rd_slot, cases)