Commit 7c883418 by Eddie Hung

Extend assert_area.py support for macc

parent 559c633e
...@@ -4,18 +4,18 @@ import glob ...@@ -4,18 +4,18 @@ import glob
import re import re
import os import os
re_mux = re.compile(r'mul_(\d+)(s?)_(\d+)(s?)_(A?B?M?P?)_A?B?M?P?\.v') re_mux = re.compile(r'(mul|macc)_(\d+)(s?)_(\d+)(s?)_(A?B?M?P?)_A?B?M?P?\.v')
for fn in glob.glob('*.v'): for fn in glob.glob('*.v'):
m = re_mux.match(fn) m = re_mux.match(fn)
if not m: continue if not m: continue
A,B = map(int, m.group(1,3)) A,B = map(int, m.group(2,4))
Asigned, Bsigned = m.group(2,4) Asigned, Bsigned = m.group(3,5)
Areg = 'A' in m.group(5) Areg = 'A' in m.group(6)
Breg = 'B' in m.group(5) Breg = 'B' in m.group(6)
Mreg = 'M' in m.group(5) Mreg = 'M' in m.group(6)
Preg = 'P' in m.group(5) Preg = 'P' in m.group(6)
if A < B: if A < B:
A,B = B,A A,B = B,A
Asigned,Bsigned = Bsigned,Asigned Asigned,Bsigned = Bsigned,Asigned
......
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