aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/examples/test-ecp5_versa/testsuite.sh
blob: 8574b947c6b09fc22f45b2f982290fcf297354b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

topdir=../..
. $topdir/testenv.sh

top=../../..
src=$top/examples/ecp5_versa

VHDL_SYN_FILES="$src/versa_ecp5_top.vhdl \
 $src/pll_mac.vhd \
 $src/soc_iomap_pkg.vhdl \
 $src/uart.vhdl \
 $src/uart_tx.vhdl \
 $src/uart_rx.vhdl \
 $src/fifobuf.vhdl"

VERILOG_FILES="\
 $top/library/wrapper/primitives.v \
 $top/library/wrapper/bram.v
"

FREQ=25000000

run_yosys -p "ghdl -gCLK_FREQUENCY=$FREQ --work=ecp5um $top/library/ecp5u/components.vhdl --work=work $VHDL_SYN_FILES -e; read_verilog $VERILOG_FILES; synth_ecp5 -top versa_ecp5_top -json top_ecp5_top.json" -l report.txt -q