- ControlBase.__init__(self, self)
-
- def ispec(self):
- return Signal(self.width, name="a")
-
- def ospec(self):
- return Signal(self.width, name="z")
-
- def setup(self, m, i):
- m.d.comb += self.fpdiv.in_a.v.eq(i) # connect input
-
- def process(self, i):
- return self.fpdiv.out_z.v # return z output