Commit 00fb6906 by Eddie Hung

Extend assert_area to cope with unsigned

parent 13127962
......@@ -4,13 +4,15 @@ import glob
import re
import os
re_mux = re.compile(r'mul_(\d+)_(\d+)_A?B?P?_A?B?P?\.v')
re_mux = re.compile(r'mul_(\d+)(s?)_(\d+)(s?)_A?B?P?_A?B?P?\.v')
for fn in glob.glob('*.v'):
m = re_mux.match(fn)
if not m: continue
A,B = map(int, m.group(1,2))
A,B = map(int, m.group(1,3))
if not m.group(2): A += 1
if not m.group(4): B += 1
bn,_ = os.path.splitext(fn)
......
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