self.a = PartitionedSignal(partpoints, width)
self.b = PartitionedSignal(partpoints, width)
self.add_output = Signal(width)
- self.le_output = Signal(len(partpoints)+1)
- self.mux_sel = Signal(len(partpoints)+1)
- self.mux_out = Signal(width)
self.carry_in = Signal(len(partpoints)+1)
self.add_carry_out = Signal(len(partpoints)+1)
- self.sub_carry_out = Signal(len(partpoints)+1)
- self.neg_output = Signal(width)
def elaborate(self, platform):
m = Module()
return m
if __name__ == '__main__':
width = 16
- pmask = Signal(4) # divide into 4-bits
+ pmask = Signal(3) # divide into 4-bits
module = TestAddMod(width, pmask)
create_ilang(module,