Commit f3f90a5c by Eddie Hung

Tighten area bounds

parent d6f9941d
...@@ -25,9 +25,9 @@ for fn in glob.glob('*.v'): ...@@ -25,9 +25,9 @@ for fn in glob.glob('*.v'):
count_DFF += A%16 + B%16 count_DFF += A%16 + B%16
else: else:
# TODO: Tighter bounds on count_DFF # TODO: Tighter bounds on count_DFF
if Areg or Breg and (A % 16 == 1 or B % 16 == 1): if (Areg or Breg) and (A % 16 == 1 or B % 16 == 1):
count_DFF += A + B count_DFF += A + B
if Preg: if Preg and (A > 16 or B > 16):
count_DFF += A + B count_DFF += A + B
# TODO: Assert on number of SB_CARRY and SB_LUT too # TODO: Assert on number of SB_CARRY and SB_LUT too
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment