Commit 7664abcf by Eddie Hung

Try again

parent 5dbed420
......@@ -22,12 +22,14 @@ for fn in glob.glob('*.v'):
if A < B:
A,B = B,A
Asigned,Bsigned = Bsigned,Asigned
if A == 25:
X = 1 # No headroom needed on single multiplier
else:
X = (A + 23) // 24
if X > 1 and A % 24 == 1:
X -= 1 # No headroom needed on last multiplier
if B == 18:
Y = 1 # No headroom needed on single multiplier
else:
Y = (B+16) // 17
if Y > 1 and B % 17 == 1:
Y -= 1 # No headroom needed on last multiplier
count_MAC = X * Y
count_DFF = 0
if Preg:
......
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