From: Luke Kenneth Casson Leighton Date: Sat, 9 Mar 2019 22:23:14 +0000 (+0000) Subject: put inversion of write-enable into its own signal X-Git-Tag: div_pipeline~2323 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cc6e56cfe38e4d9a2434275d19bea17dbb70d15a;p=soc.git put inversion of write-enable into its own signal --- diff --git a/TLB/src/Cam.py b/TLB/src/Cam.py index e4340fcd..937811fb 100644 --- a/TLB/src/Cam.py +++ b/TLB/src/Cam.py @@ -70,12 +70,16 @@ class Cam(): self.decoder.n.eq(0) ] + # XXX change name of write_enable interface to write_enable_n ? + wen = Signal(reset_less=True) + m.d.comb += wen.eq(~self.write_enable) + with m.If(self.enable): # Set the key value for every CamEntry for index in range(self.cam_size): # Read Operation - with m.If(~self.write_enable): + with m.If(wen): m.d.comb += entry_array[index].command.eq(1) # Write Operation