From 4dee9c288d4319286725bf9e327f0c2e1a102c5c Mon Sep 17 00:00:00 2001 From: Michael Nolan Date: Sun, 29 Mar 2020 13:50:51 -0400 Subject: [PATCH] Fix issue 271, remove unneeded fields in power_fieldsn.py --- src/soc/decoder/power_fieldsn.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/soc/decoder/power_fieldsn.py b/src/soc/decoder/power_fieldsn.py index 1a639a3d..74fcd007 100644 --- a/src/soc/decoder/power_fieldsn.py +++ b/src/soc/decoder/power_fieldsn.py @@ -48,20 +48,14 @@ class SigDecode(Elaboratable): self.opcode_in = Signal(width, reset_less=False) self.df = DecodeFields(SignalBitRange, [self.opcode_in]) self.df.create_specs() - self.x_s = Signal(len(self.df.FormX.S), reset_less=True) - self.x_sh = Signal(len(self.df.FormX.SH), reset_less=True) - self.dq_xs_s = Signal(len(self.df.FormDQ.SX_S), reset_less=True) def elaborate(self, platform): m = Module() comb = m.d.comb - comb += self.x_s.eq(self.df.FormX.S[0]) - comb += self.x_sh.eq(self.df.FormX.SH[0:-1]) - comb += self.dq_xs_s.eq(self.df.FormDQ.SX_S[0:-1]) return m def ports(self): - return [self.opcode_in, self.x_s, self.x_sh] + return [self.opcode_in] def create_sigdecode(): s = SigDecode(32) -- 2.30.2