From ca218a65dc9af73965a5c4f105a780ed04b588e0 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 15 Mar 2019 00:31:30 +0000 Subject: [PATCH] add use of FPState, not being used yet --- src/add/nmigen_div_experiment.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/add/nmigen_div_experiment.py b/src/add/nmigen_div_experiment.py index ff4c9668..eb0c9351 100644 --- a/src/add/nmigen_div_experiment.py +++ b/src/add/nmigen_div_experiment.py @@ -6,6 +6,7 @@ from nmigen import Module, Signal, Const, Cat from nmigen.cli import main, verilog from fpbase import FPNumIn, FPNumOut, FPOp, Overflow, FPBase +from nmigen_add_experiment import FPState class Div: def __init__(self, width): @@ -36,6 +37,12 @@ class FPDIV(FPBase): self.in_b = FPOp(width) self.out_z = FPOp(width) + self.states = [] + + def add_state(self, state): + self.states.append(state) + return state + def get_fragment(self, platform=None): """ creates the HDL code-fragment for FPDiv """ -- 2.30.2