From 2dc4be2d07a25cf0615334d6bc36599285b3880c Mon Sep 17 00:00:00 2001 From: Michael Nolan Date: Mon, 9 Mar 2020 11:00:55 -0400 Subject: [PATCH] Fix logical loop in DecodeA --- src/soc/decoder/power_decoder2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/soc/decoder/power_decoder2.py b/src/soc/decoder/power_decoder2.py index 81805a73..436005c6 100644 --- a/src/soc/decoder/power_decoder2.py +++ b/src/soc/decoder/power_decoder2.py @@ -34,13 +34,13 @@ class DecodeA(Elaboratable): # select Register A field with m.If((self.sel_in == In1Sel.RA) | ((self.sel_in == In1Sel.RA_OR_ZERO) & - (self.reg_out.data != Const(0, 5)))): + (self.dec.RA[0:-1] != Const(0, 5)))): comb += self.reg_out.data.eq(self.dec.RA[0:-1]) comb += self.reg_out.ok.eq(1) # zero immediate requested with m.If((self.sel_in == In1Sel.RA_OR_ZERO) & - (self.reg_out.data == Const(0, 5))): + (self.reg_out.data == Const(0, 5))): comb += self.immz_out.eq(1) # decode SPR1 based on instruction type -- 2.30.2