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 643ceed432 Adding manual test feature to testbench
-This is as far as I go with fufu testing (random next)
-Add basic test for cleaning up reads/writes
-104 bit packet format for driving transactions, very useful
2015-04-18 16:14:53 -04:00

15 lines
323 B
Bash
Executable File

#!/bin/bash
#Linting in Verilator
#verilator --lint-only -F elink.cmd -DTARGET_VERILATOR
#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
#iverilog -f elink.cmd -DAUTO
#Running sim
./a.out