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
00fb6906
Commit
00fb6906
authored
Jul 17, 2019
by
Eddie Hung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extend assert_area to cope with unsigned
parent
13127962
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
architecture/synth_xilinx_dsp/assert_area.py
+4
-2
No files found.
architecture/synth_xilinx_dsp/assert_area.py
View file @
00fb6906
...
@@ -4,13 +4,15 @@ import glob
...
@@ -4,13 +4,15 @@ import glob
import
re
import
re
import
os
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'
):
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
,
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
)
bn
,
_
=
os
.
path
.
splitext
(
fn
)
...
...
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