projects
/
soc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84e550d
)
use binary-invert rather than == 0 comparison
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Tue, 5 Mar 2019 11:21:19 +0000
(11:21 +0000)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Tue, 5 Mar 2019 11:21:19 +0000
(11:21 +0000)
TLB/src/Cam.py
patch
|
blob
|
history
diff --git
a/TLB/src/Cam.py
b/TLB/src/Cam.py
index 16a7814b4ca8bb1de870b31ba8e3ce807ea0c290..ac0ec273828a827a20e696fb16cb577ae4363b25 100644
(file)
--- 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