From: Luke Kenneth Casson Leighton Date: Tue, 5 Mar 2019 11:21:19 +0000 (+0000) Subject: use binary-invert rather than == 0 comparison X-Git-Tag: div_pipeline~2348 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b2644badaabc8c6799290966651269fd1db758d3;p=soc.git use binary-invert rather than == 0 comparison --- diff --git a/TLB/src/Cam.py b/TLB/src/Cam.py index 16a7814b..ac0ec273 100644 --- a/TLB/src/Cam.py +++ b/TLB/src/Cam.py @@ -71,7 +71,7 @@ class Cam(): with m.If(self.enable): # Read Operation - with m.If(self.write_enable == 0): + with m.If(~self.write_enable): m.d.comb += entry_array[index].command.eq(1) # Write Operation