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>
12 lines
307 B
Bash
Executable File
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
|