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
639715e9
Commit
639715e9
authored
Jun 28, 2019
by
Eddie Hung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use 'script -select' to check area as we go along, not all at end
parent
3c5df7dd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
9 deletions
+13
-9
architecture/synth_xilinx_mux/assert_area.py
+9
-5
architecture/synth_xilinx_mux/run-test.sh
+4
-4
No files found.
architecture/synth_xilinx_mux/assert_area.py
View file @
639715e9
...
@@ -43,8 +43,12 @@ for fn in glob.glob('*.v'):
...
@@ -43,8 +43,12 @@ for fn in glob.glob('*.v'):
bn
,
_
=
os
.
path
.
splitext
(
fn
)
bn
,
_
=
os
.
path
.
splitext
(
fn
)
print
(
'design -reset'
)
with
open
(
fn
,
'a'
)
as
f
:
print
(
'read_verilog {0}.out/{0}_syn0.v'
.
format
(
bn
))
assert_area
=
[
'select t:{0} -assert-count {1}'
.
format
(
r
,
v
*
W
)
for
r
,
v
in
zip
([
'LUT1'
,
'LUT2'
,
'LUT3'
,
'LUT4'
,
'LUT5'
,
'LUT6'
,
'MUXF7'
,
'MUXF8'
],
area
[
N
])]
for
r
,
v
in
zip
([
'LUT1'
,
'LUT2'
,
'LUT3'
,
'LUT4'
,
'LUT5'
,
'LUT6'
,
'MUXF7'
,
'MUXF8'
],
area
[
N
]):
print
(
'''
print
(
'select t:{0} -assert-count {1}'
.
format
(
r
,
v
*
W
))
`ifndef _AUTOTB
module
\
$__test ;
wire [4095:0] assert_area = "
%
s";
endmodule
`endif
'''
%
'; '
.
join
(
assert_area
),
file
=
f
)
architecture/synth_xilinx_mux/run-test.sh
View file @
639715e9
...
@@ -22,7 +22,7 @@ wget https://raw.githubusercontent.com/YosysHQ/yosys-bench/master/verilog/benchm
...
@@ -22,7 +22,7 @@ wget https://raw.githubusercontent.com/YosysHQ/yosys-bench/master/verilog/benchm
wget https://raw.githubusercontent.com/YosysHQ/yosys-bench/master/verilog/benchmarks_large/mux/generate.py
-O
generate_large.py
-o
/dev/null
wget https://raw.githubusercontent.com/YosysHQ/yosys-bench/master/verilog/benchmarks_large/mux/generate.py
-O
generate_large.py
-o
/dev/null
python3 generate_small.py
python3 generate_small.py
python3 generate_large.py
python3 generate_large.py
${
MAKE
:-
make
}
-f
../../../../tools/autotest.mk
$seed
*
.v
EXTRA_FLAGS
=
"-p 'synth_xilinx -abc9 -widemux 5' -l ../../../../../techlibs/xilinx/cells_sim.v"
python3 ../assert_area.py
${
MAKE
:-
make
}
-f
../../../../tools/autotest.mk
$seed
*
.v
EXTRA_FLAGS
=
"
\
python3 ../assert_area.py
>
assert_area.ys
-p 'synth_xilinx -abc9 -widemux 5; script -select
\$
__test/w:assert_area'
\
yosys
-q
assert_area.ys
-l ../../../../../techlibs/xilinx/cells_sim.v"
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