From 77dfbe92a551ba108fe04cb3a33d2d5308174596 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sun, 14 Jul 2019 09:55:04 +0100 Subject: [PATCH] fix test_fpmul_pipe_32.py after new PipelineSpec class added --- src/ieee754/fpcommon/getop.py | 6 +++--- src/ieee754/pipeline.py | 9 +++++---- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/ieee754/fpcommon/getop.py b/src/ieee754/fpcommon/getop.py index 27f677c7..fb7f3b26 100644 --- a/src/ieee754/fpcommon/getop.py +++ b/src/ieee754/fpcommon/getop.py @@ -91,10 +91,10 @@ class FPPipeContext: "operator". instance must have an "eq" function. """ - self.id_wid = pspec.id_width - self.op_wid = pspec.get('op_wid', 0) + self.id_wid = pspec.id_wid + self.op_wid = pspec.op_wid self.muxid = Signal(self.id_wid, reset_less=True) # RS multiplex ID - opkls = pspec.get('opkls', None) + opkls = pspec.opkls if opkls is None: self.op = Signal(self.op_wid, reset_less=True) else: diff --git a/src/ieee754/pipeline.py b/src/ieee754/pipeline.py index f2ec6933..c7446337 100644 --- a/src/ieee754/pipeline.py +++ b/src/ieee754/pipeline.py @@ -6,12 +6,13 @@ class PipelineSpec: """ Pipeline Specification base class. :attribute width: FIXME: document - :attribute id_width: FIXME: document - :attribute opcode_width: FIXME: document + :attribute id_wid: FIXME: document + :attribute op_wid: FIXME: document """ def __init__(self, width, id_width, opcode_width): """ Create a PipelineSpec. """ self.width = width - self.id_width = id_width - self.opcode_width = opcode_width + self.id_wid = id_width + self.op_wid = opcode_width + self.opkls = None -- 2.30.2