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
bde4f13c
Commit
bde4f13c
authored
May 03, 2019
by
Eddie Hung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More tests
parent
71f76b51
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
18 deletions
+8
-18
architecture/synth_xilinx_srl/run-test.sh
+6
-1
architecture/synth_xilinx_srl/test21.ys
+2
-8
architecture/synth_xilinx_srl/test22.ys
+0
-9
No files found.
architecture/synth_xilinx_srl/run-test.sh
View file @
bde4f13c
...
...
@@ -20,4 +20,9 @@ fi
wget https://raw.githubusercontent.com/YosysHQ/yosys-bench/master/verilog/benchmarks_small/lfsr/generate.py
-O
generate_lfsr.py
-o
/dev/null
python3 generate_lfsr.py
python3 generate.py
${
MAKE
:-
make
}
-f
../../../tools/autotest.mk
$seed
*
.v
EXTRA_FLAGS
=
"-f 'verilog -noblackbox -icells' -p 'synth_xilinx' -l ../../../../techlibs/xilinx/cells_sim.v"
${
MAKE
:-
make
}
-f
../../../tools/autotest.mk
$seed
!(
test21
*
)
.v
EXTRA_FLAGS
=
"-f 'verilog -noblackbox -icells' -p 'synth_xilinx' -l ../../../../techlibs/xilinx/cells_sim.v"
${
MAKE
:-
make
}
-f
../../../tools/autotest.mk
$seed
test21
*
.v
EXTRA_FLAGS
=
"-f 'verilog -noblackbox -icells' -p 'synth_xilinx -retime' -l ../../../../techlibs/xilinx/cells_sim.v"
for
ys
in
*
.ys
;
do
yosys
-q
$ys
done
architecture/synth_xilinx_srl/test21.ys
View file @
bde4f13c
read_verilog -icells -DTEST21 ../top.v
synth_xilinx -retime -flatten
rename -top synth
clean -purge
write_verilog synth21.v
# Check that retiming does not infer shift registers
select t:SRL* -assert-count
0
select t:FD* -assert-min 20
design -reset; read_verilog test21a.out/test21a_syn0.v; select t:SRL* -assert-count 0; select t:FD* -assert-min 2
0
design -reset; read_verilog test21b.out/test21b_syn0.v; select t:SRL* -assert-count 0;
select t:FD* -assert-min 20
architecture/synth_xilinx_srl/test22.ys
deleted
100644 → 0
View file @
71f76b51
read_verilog -icells -DTEST22 ../top.v
synth_xilinx -retime -flatten
rename -top synth
clean -purge
write_verilog synth22.v
# Check that retiming can still infer shift registers
select t:SRL* -assert-min 1
select t:FD* -assert-min 16
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