From 6e7ea1516de614429e3002b5863f04883530dea7 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 24 Nov 2018 01:37:16 +0000 Subject: [PATCH] tidyup --- cpu_decoder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu_decoder.py b/cpu_decoder.py index 3cb0701..c92fb88 100644 --- a/cpu_decoder.py +++ b/cpu_decoder.py @@ -210,7 +210,7 @@ class CPUDecoder(Module): regz = Constant(0, 5) # ebreak c[F3.ecall_ebreak] = \ - If((self.immediate == ~b1) ^ (self.rs1 == regz) & \ + If((self.immediate == ~b1) & (self.rs1 == regz) & \ (self.rd == regz), self.decode_action.eq(DA.trap_ecall_ebreak) ).Else( -- 2.30.2