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>
This commit is contained in:
1 parent
b629cbec00
commit
2d1be15786
11 files changed
+428
-3
No files matched your search
Executable
+11
@@ -0,0 +1,11 @@
|
||||
#!/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
|
||||
Reference in new issue
Block a user