1
0
mirror of https://github.com/aolofsson/oh.git synced 2025-01-17 20:02:53 +08:00
oh/elink/dv/run.sh
Andreas Olofsson 4f487d498e Making simulation more "real"
-Working with timescale (for viewer mostly)
-Now using TARGET_XILINX as default in sim
2015-05-06 12:21:39 -04:00

15 lines
350 B
Bash
Executable File

#!/bin/bash
#Linting in Verilator
#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
iverilog -f elink.cmd -DMANUAL -DTRANS=$TRANS -DTESTNAME=test.memh -DTARGET_XILINX
#iverilog -f elink.cmd -DAUTO
#Running sim
./a.out