From: Luke Kenneth Casson Leighton Date: Mon, 22 Apr 2019 02:40:39 +0000 (+0100) Subject: same trick with encoder, remove switch, use encoder.o X-Git-Tag: div_pipeline~2192 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e2ef59c86b9dd4940bcc8c28d5b2d4ec61e726d6;p=soc.git same trick with encoder, remove switch, use encoder.o --- diff --git a/TLB/src/SetAssociativeCache.py b/TLB/src/SetAssociativeCache.py index 1bc1e97d..819bc4ac 100644 --- a/TLB/src/SetAssociativeCache.py +++ b/TLB/src/SetAssociativeCache.py @@ -102,11 +102,8 @@ class SetAssociativeCache(): m.next = "FINISHED_READ" # Pull out data from the read port data = 0 - with m.Switch(self.encoder.o): - for i in range(self.way_count): - with m.Case(i): - read_port = self.read_array[i] - data = read_port.data[self.data_start:self.data_end] + read_port = self.read_array[self.encoder.o] + data = read_port.data[self.data_start:self.data_end] m.d.comb += [ self.hit.eq(1),