mirror of
https://github.com/YosysHQ/yosys
synced 2025-11-01 03:57:52 +00:00
Added vivado support to xsthammer
This commit is contained in:
parent
101491132f
commit
a5fe2565b7
5 changed files with 69 additions and 7 deletions
26
tests/xsthammer/run-vivado.sh
Normal file
26
tests/xsthammer/run-vivado.sh
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ $# -eq 0 ]; then
|
||||
echo "Usage: $0 <job_id>" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
job="$1"
|
||||
set --
|
||||
|
||||
set -e
|
||||
mkdir -p vivado vivado_temp/$job
|
||||
cd vivado_temp/$job
|
||||
|
||||
cat > $job.tcl <<- EOT
|
||||
read_verilog ../../rtl/$job.v
|
||||
synth_design -part xc7k70t -top $job
|
||||
write_verilog ../../vivado/$job.v
|
||||
EOT
|
||||
|
||||
. /opt/Xilinx/14.5/ISE_DS/settings64.sh
|
||||
|
||||
vivado -mode batch -source $job.tcl
|
||||
|
||||
exit 0
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue