1
0
mirror of https://github.com/aolofsson/oh.git synced 2025-01-17 20:02:53 +08:00
oh/elink/dv/run.sh

15 lines
386 B
Bash
Raw Normal View History

#!/bin/bash
#Linting in Verilator
2015-04-23 20:04:03 -04:00
#verilator --lint-only -F elink.cmd -DTARGET_VERILATOR dv_elink.v
#a sorry hack, too tired to get it right, please fix...
TRANS=$(wc -l test.memh)
TRANS=${TRANS:0:3}
#RANDOM TEST
2015-09-30 13:00:14 -04:00
iverilog -I../hdl -I../../emailbox/hdl -f elink.cmd -DMANUAL -DTRANS=$TRANS -DTESTNAME=test.memh -DTARGET_XILINX -DSIM
#iverilog -f elink.cmd -DAUTO
#Running sim
./a.out