OpenCores
URL https://opencores.org/ocsvn/uart2bus/uart2bus/trunk

Subversion Repositories uart2bus

[/] [uart2bus/] [trunk/] [vhdl/] [sim/] [ghdl/] [uart2bus_txt_build.sh] - Blame information for rev 13

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 13 smuller
# !/bin/bash
2
source ./shell_tools.sh
3
 
4
TEST_BENCH=uart2BusTop_txt_tb
5
SIM_TIME=50ms
6
 
7
TEMP_DIR=/dev/shm
8
VCD=${TEMP_DIR}/${TEST_BENCH}.vcd
9
FST=${TEMP_DIR}/${TEST_BENCH}.fst
10
SAV=${TEST_BENCH}.sav
11
 
12
run ghdl -a --workdir="${TEMP_DIR}" "../../rtl/uart2BusTop_pkg.vhd"
13
run ghdl -a --workdir="${TEMP_DIR}" "../../rtl/baudGen.vhd"
14
run ghdl -a --workdir="${TEMP_DIR}" "../../rtl/uart2BusTop.vhd"
15
run ghdl -a --workdir="${TEMP_DIR}" "../../rtl/uartParser.vhd"
16
run ghdl -a --workdir="${TEMP_DIR}" "../../rtl/uartRx.vhd"
17
run ghdl -a --workdir="${TEMP_DIR}" "../../rtl/uartTop.vhd"
18
run ghdl -a --workdir="${TEMP_DIR}" "../../rtl/uartTx.vhd"
19
 
20
run ghdl -a --workdir="${TEMP_DIR}" "../../bench/helpers/helpers_pkg.vhd"
21
run ghdl -a --workdir="${TEMP_DIR}" "../../bench/helpers/regFileModel.vhd"
22
run ghdl -a --workdir="${TEMP_DIR}" "../../bench/uart2BusTop_txt_tb.vhd"
23
 
24
run ghdl -e --workdir=${TEMP_DIR} ${TEST_BENCH}
25
run ghdl -r --workdir=${TEMP_DIR} ${TEST_BENCH} --vcd=${VCD} --stop-time=${SIM_TIME}
26
 
27
(cd ${TEMP_DIR} ; run ghdl --clean)
28
 
29
run vcd2fst ${VCD} ${FST}
30
rm ${VCD}
31
 
32
gtkwave -a ${SAV} ${FST}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.