Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yosys-tests
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
yosys-tests
Commits
c42bb714
Commit
c42bb714
authored
Sep 06, 2019
by
Eddie Hung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update assert_area.py for muladd
parent
e38afac4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
architecture/synth_xilinx_dsp/assert_area.py
+9
-6
No files found.
architecture/synth_xilinx_dsp/assert_area.py
View file @
c42bb714
...
...
@@ -4,7 +4,7 @@ import glob
import
re
import
os
re_mux
=
re
.
compile
(
r'(mul|m
acc)_(\d+)(s?)_(\d+)(s?)_(A?B?M?P?)_A?B
?M?P?\.v'
)
re_mux
=
re
.
compile
(
r'(mul|m
uladd|macc)_(\d+)(s?)_(\d+)(s?)(_(\d+)(s?))?_(A?B?C?M?P?)_A?B?C
?M?P?\.v'
)
for
fn
in
glob
.
glob
(
'*.v'
):
m
=
re_mux
.
match
(
fn
)
...
...
@@ -12,11 +12,14 @@ for fn in glob.glob('*.v'):
macc
=
m
.
group
(
1
)
==
'macc'
A
,
B
=
map
(
int
,
m
.
group
(
2
,
4
))
Asigned
,
Bsigned
=
m
.
group
(
3
,
5
)
Areg
=
'A'
in
m
.
group
(
6
)
Breg
=
'B'
in
m
.
group
(
6
)
Mreg
=
'M'
in
m
.
group
(
6
)
Preg
=
'P'
in
m
.
group
(
6
)
or
macc
Asigned
,
Bsigned
=
m
.
group
(
3
,
5
)
if
m
.
group
(
6
):
C
=
map
(
int
,
m
.
group
(
7
))
Csigned
=
m
.
group
(
8
)
Areg
=
'A'
in
m
.
group
(
9
)
Breg
=
'B'
in
m
.
group
(
9
)
Mreg
=
'M'
in
m
.
group
(
9
)
Preg
=
'P'
in
m
.
group
(
9
)
or
macc
if
A
<
B
:
A
,
B
=
B
,
A
Asigned
,
Bsigned
=
Bsigned
,
Asigned
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment