NETLISTS = $(shell cat nets2.txt)
+ VST_FLAGS = --vst-use-concat
include ./mk/design-flow.mk
NETLISTS = $(shell cat nets3.txt)
+ VST_FLAGS = --vst-use-concat
include ./mk/design-flow.mk
from nmigen.cli import rtlil
-from ieee754.part.test.test_partsig import TestAddMod
+from ieee754.part.test.test_partsig import TestAddMod2
import subprocess
import os
from nmigen import Signal
def test():
width = 16
pmask = Signal(4) # divide into 4-bits
- module = TestAddMod(width, pmask)
+ module = TestAddMod2(width, pmask)
sim = create_ilang(module,
[pmask,
module.a.sig,
module.b.sig,
module.add_output,
- module.eq_output,
module.ls_output,
module.sub_output,
module.eq_output,
sync += self.add_carry_out.eq(add_carry)
return m
+
if __name__ == '__main__':
width = 16
pmask = Signal(3) # divide into 4-bits
module.add_carry_out,
],
"test_part_add")
+ print (dir(module))
+ add_1 = module.a.m.submodules.add_1
+ print (dir(add_1.part_pts))
+ create_ilang(add_1,
+ [pmask,
+ add_1.a,
+ add_1.b,
+ add_1.output,
+ add_1.carry_in,
+ add_1.carry_out,
+ ],
+ "test_add")
-test_part_add
-ripple
-add1
+test_part_add add_1 ripple