style-wise: use ~self.instr_fault not self.instr_fault==0
authorTobias Platen <tplaten@posteo.de>
Mon, 10 May 2021 17:41:58 +0000 (19:41 +0200)
committerTobias Platen <tplaten@posteo.de>
Mon, 10 May 2021 17:41:58 +0000 (19:41 +0200)
src/soc/fu/ldst/loadstore.py

index 9857c60fce6fe615abd8b15b05eb073369e436a1..be7670e6aea546c36b21b9004a3087b92aa68b3f 100644 (file)
@@ -202,7 +202,7 @@ class LoadStore1(PortInterfaceBase):
 
             with m.Case(State.MMU_LOOKUP):
                 with m.If(l_out.done):
-                    with m.If(self.instr_fault==0):
+                    with m.If(~self.instr_fault):
                         # retry the request now that the MMU has
                         # installed a TLB entry
                         sync += self.state.eq(State.ACK_WAIT)