add name to Term output
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 17 Aug 2019 12:56:19 +0000 (13:56 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 17 Aug 2019 12:56:19 +0000 (13:56 +0100)
src/ieee754/part_mul_add/multiply.py

index 8ffd3ae7f198836cc15faa3c415b15fb327c043b..d048065ffb5852b2df430250aa9b90590269fed0 100644 (file)
@@ -415,6 +415,7 @@ class ProductTerm(Elaboratable):
             term_enabled = None
 
         Term.__init__(self, width*2, twidth, shift, term_enabled)
+        self.term.name = "term_%d_%d" % (a_index, b_index) # rename
 
     def elaborate(self, platform):
 
@@ -432,6 +433,7 @@ class ProductTerm(Elaboratable):
 
         return m
 
+
 class Part(Elaboratable):
     def __init__(self, width, n_parts, n_levels, pbwid):