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
52ced6de
Commit
52ced6de
authored
Jul 08, 2019
by
Eddie Hung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update area calc
parent
03961e2a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
26 deletions
+23
-26
architecture/synth_xilinx_mux/assert_area.py
+23
-26
No files found.
architecture/synth_xilinx_mux/assert_area.py
View file @
52ced6de
...
...
@@ -7,32 +7,29 @@ import os
re_mux
=
re
.
compile
(
r'mux_(index|case|if_bal|if_unbal)_(\d+)_(\d+)\.v'
)
area
=
{}
# 1 2 3 4 5 6 F7 F8
area
[
2
]
=
([
0
,
0
,
1
,
0
,
0
,
0
,
0
,
0
],)
area
[
3
]
=
([
0
,
0
,
0
,
0
,
1
,
0
,
0
,
0
],)
area
[
4
]
=
([
0
,
0
,
0
,
0
,
0
,
1
,
0
,
0
],)
area
[
5
]
=
([
0
,
0
,
0
,
0
,
0
,
0
,
1
,
0
],
*
area
[
4
])
area
[
7
]
=
([
0
,
0
,
0
,
0
,
0
,
0
,
1
,
0
],
*
area
[
4
],
*
area
[
3
])
area
[
8
]
=
([
0
,
0
,
0
,
0
,
0
,
0
,
1
,
0
],
*
area
[
4
],
*
area
[
4
])
area
[
9
]
=
([
0
,
0
,
0
,
0
,
0
,
0
,
0
,
1
],
*
area
[
8
])
area
[
15
]
=
([
0
,
0
,
0
,
0
,
0
,
0
,
0
,
1
],
*
area
[
8
],
*
area
[
7
])
area
[
16
]
=
([
0
,
0
,
0
,
0
,
0
,
0
,
0
,
1
],
*
area
[
8
],
*
area
[
8
])
area
[
17
]
=
(
*
area
[
16
],
*
area
[
2
])
area
[
31
]
=
(
*
area
[
16
],
*
area
[
15
],
*
area
[
2
])
area
[
32
]
=
(
*
area
[
16
],
*
area
[
16
],
*
area
[
2
])
area
[
33
]
=
(
*
area
[
16
],
*
area
[
16
],
*
area
[
3
])
area
[
63
]
=
(
*
area
[
15
],
*
(
area
[
16
]
*
3
),
*
area
[
4
])
area
[
64
]
=
(
*
(
area
[
16
]
*
4
),
*
area
[
4
])
area
[
65
]
=
(
*
(
area
[
16
]
*
4
),
*
area
[
5
])
area
[
127
]
=
([
0
,
0
,
0
,
0
,
0
,
0
,
1
,
0
],
*
area
[
63
],
*
area
[
64
])
area
[
128
]
=
([
0
,
0
,
0
,
0
,
0
,
0
,
1
,
0
],
*
area
[
64
],
*
area
[
64
])
area
[
129
]
=
([
0
,
0
,
0
,
0
,
0
,
0
,
0
,
1
],
*
area
[
64
],
*
area
[
65
])
area
[
255
]
=
(
*
area
[
15
],
*
(
area
[
16
]
*
15
),
*
area
[
16
])
area
[
256
]
=
(
*
(
area
[
16
]
*
16
),
*
area
[
16
])
area
[
257
]
=
([
0
,
0
,
1
,
0
,
0
,
68
,
34
,
17
],)
for
N
in
area
:
area
[
N
]
=
[
sum
(
i
)
for
i
in
zip
(
*
area
[
N
])]
# 1 2 3 4 5 6 F7 F8
area
[
2
]
=
[
0
,
0
,
1
,
0
,
0
,
0
,
0
,
0
]
area
[
3
]
=
[
0
,
0
,
0
,
0
,
1
,
0
,
0
,
0
]
area
[
4
]
=
[
0
,
0
,
0
,
0
,
0
,
1
,
0
,
0
]
area
[
5
]
=
[
0
,
0
,
2
,
0
,
0
,
0
,
1
,
1
]
area
[
7
]
=
[
0
,
0
,
3
,
0
,
0
,
0
,
2
,
1
]
area
[
8
]
=
[
0
,
0
,
4
,
0
,
0
,
0
,
2
,
1
]
area
[
9
]
=
[
0
,
0
,
0
,
0
,
0
,
2
,
1
,
1
]
area
[
15
]
=
[
0
,
0
,
0
,
0
,
1
,
3
,
2
,
1
]
area
[
16
]
=
[
0
,
0
,
0
,
0
,
0
,
4
,
2
,
1
]
area
[
17
]
=
[
0
,
0
,
1
,
0
,
0
,
4
,
2
,
1
]
area
[
31
]
=
[
0
,
0
,
1
,
0
,
1
,
7
,
4
,
2
]
area
[
32
]
=
[
0
,
0
,
1
,
0
,
0
,
8
,
4
,
2
]
area
[
33
]
=
[
0
,
0
,
0
,
0
,
1
,
8
,
4
,
2
]
area
[
63
]
=
[
0
,
0
,
0
,
0
,
1
,
16
,
8
,
4
]
area
[
64
]
=
[
0
,
0
,
0
,
0
,
0
,
17
,
8
,
4
]
area
[
65
]
=
[
0
,
0
,
2
,
0
,
0
,
16
,
9
,
5
]
area
[
127
]
=
[
0
,
0
,
4
,
0
,
1
,
31
,
18
,
9
]
area
[
128
]
=
[
0
,
0
,
4
,
0
,
0
,
32
,
18
,
9
]
area
[
129
]
=
[
0
,
0
,
0
,
0
,
0
,
34
,
17
,
9
]
area
[
255
]
=
[
0
,
0
,
0
,
0
,
1
,
67
,
34
,
17
]
area
[
256
]
=
[
0
,
0
,
0
,
0
,
0
,
68
,
34
,
17
]
area
[
257
]
=
[
0
,
0
,
1
,
0
,
0
,
68
,
34
,
17
]
for
fn
in
glob
.
glob
(
'*.v'
):
m
=
re_mux
.
match
(
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