#!/bin/bash # Run the sound chip's testbench (sim/tb_sound.v) in Vivado's simulator. set -e cd "$(dirname "$0")/.." ROOT=$(pwd) source scripts/vivado_env.sh mkdir -p sim/work-sound cd sim/work-sound xvlog "$ROOT"/rtl/sound.v "$ROOT"/sim/tb_sound.v xelab -debug typical tb_sound -s tb_sound xsim tb_sound -R