From b2644badaabc8c6799290966651269fd1db758d3 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 5 Mar 2019 11:21:19 +0000 Subject: [PATCH] use binary-invert rather than == 0 comparison --- TLB/src/Cam.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2