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
c7ac97de
Commit
c7ac97de
authored
Apr 11, 2019
by
Eddie Hung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add synth_xilinx_mux tests
parent
6dee6125
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
2 deletions
+30
-2
architecture/Makefile
+1
-0
architecture/run.sh
+7
-2
architecture/synth_xilinx_mux/run-test.sh
+22
-0
No files found.
architecture/Makefile
View file @
c7ac97de
...
...
@@ -61,6 +61,7 @@ $(eval $(call template,synth_sf2,synth_sf2 synth_sf2_top synth_sf2_edif synth_sf
#xilinx
$(eval
$(call
template,synth_xilinx,synth_xilinx
synth_xilinx_top
synth_xilinx_blif
synth_xilinx_edif
synth_xilinx_run
synth_xilinx_flatten
synth_xilinx_retime
synth_xilinx_vpr))
$(eval
$(call
template,synth_xilinx_mux,synth_xilinx_mux))
#greenpak4
$(eval
$(call
template,synth_greenpak4,synth_greenpak4
synth_greenpak4_top
synth_greenpak4_json
synth_greenpak4_run
synth_greenpak4_noflatten
synth_greenpak4_retime
synth_greenpak4_part621
synth_greenpak4_part620
synth_greenpak4_part140))
...
...
architecture/run.sh
View file @
c7ac97de
...
...
@@ -2,13 +2,18 @@
set
-ex
test
-d
$1
test
-f
scripts/
$2
.ys
rm
-rf
$1
/work_
$2
mkdir
$1
/work_
$2
cd
$1
/work_
$2
yosys
-ql
yosys.log ../../scripts/
$2
.ys
if
[
-f
../run-test.sh
]
;
then
../run-test.sh
touch .stamp
else
test
-f
scripts/
$2
.ys
yosys
-ql
yosys.log ../../scripts/
$2
.ys
fi
if
[
"
$1
"
=
"synth_ecp5"
]
;
then
iverilog
-o
testbench ../testbench.v synth.v ../../common.v ../../../../../techlibs/common/simcells.v ../../../../../techlibs/ecp5/cells_sim.v
elif
[
"
$1
"
=
"synth_ecp5_wide_ffs"
]
;
then
...
...
architecture/synth_xilinx_mux/run-test.sh
0 → 100755
View file @
c7ac97de
#!/bin/bash
OPTIND
=
1
seed
=
""
# default to no seed specified
while
getopts
"S:"
opt
do
case
"
$opt
"
in
S
)
arg
=
"
${
OPTARG
#
"
${
OPTARG
%%[![
:space:]]
*
}
"
}
"
# remove leading space
seed
=
"SEED=
$arg
"
;;
esac
done
shift
"
$((
OPTIND-1
))
"
# check for Icarus Verilog
if
!
which iverilog
>
/dev/null
;
then
echo
"
$0
: Error: Icarus Verilog 'iverilog' not found."
exit
1
fi
wget https://raw.githubusercontent.com/YosysHQ/yosys-bench/master/verilog/benchmarks_small/mux/generate.py
python3 generate.py
exec
${
MAKE
:-
make
}
-f
../../../../tools/autotest.mk
$seed
*
.v
EXTRA_FLAGS
=
"-p 'synth_xilinx -abc9' -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