Files
Basys3Terminal/scripts/sim-sound.sh
T
brad ArantandClaude Opus 5.5 2d1be15786 Add a three-voice sound chip for the PmodAMP2 on JA
Ports 90h-9Dh: three square-wave voices and a noise source, a mixer,
16 log volumes with attack/decay envelopes, summed and played through a
sigma-delta output on JA[0]. CLS and reset hush it. Includes a
testbench (scripts/sim-sound.sh), a BASIC example and manual section.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 11:13:37 -08:00

12 lines
307 B
Bash
Executable File

#!/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