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
@@ -245,6 +245,13 @@ so scrolling adds no arithmetic to the pixel pipeline.
|
||||
held-down bits, and 89h any key by scan code (`rtl/ps2_keyboard.v`,
|
||||
`ps2_keystate`), so games don't depend on typematic repeat.
|
||||
|
||||
**Sound:** a Digilent PmodAMP2 on the top row of Pmod JA plays a small
|
||||
sound chip in the FPGA (`rtl/sound.v`): three square-wave voices and a noise
|
||||
source, a mixer, 16 log-scale volumes and an attack/decay envelope per voice,
|
||||
on ports 90h-9Dh, mixed into one bit by a sigma-delta modulator for the
|
||||
PmodAMP2's filter and amplifier. `CLS` silences it. `scripts/sim-sound.sh`
|
||||
tests it; `basic/examples/sound.bas` plays it from BASIC.
|
||||
|
||||
**The Iron Keep** (`games/keep/`) is a top-down escape game in C for the Z-80
|
||||
using all of this: twelve rooms, guards that patrol, see along rows and
|
||||
columns and shoot, keys and locked doors, gold, ammunition and a crown to
|
||||
@@ -596,6 +603,7 @@ which Vivado needs on newer distros.
|
||||
| `rtl/text_display.v` | VGA timing, colour palette, character RAM, font lookup |
|
||||
| `rtl/ps2_keyboard.v` | PS/2 receiver and scan code set 2 to ASCII / VT220 keys |
|
||||
| `rtl/uart.v` | UART receiver and transmitter |
|
||||
| `rtl/sound.v` | Sound chip: three voices, noise, envelopes, sigma-delta output for a PmodAMP2 |
|
||||
| `rtl/fifo.v`, `rtl/sevenseg.v` | Helpers |
|
||||
| `font/font.mem` | 256x16 font ROM, made by `tools/psf2mem.py` from the Linux console fonts |
|
||||
| `terminfo/basys3.ti` | terminfo entries: `basys3` (VT220, 16 colours, 80x32) and `basys3-w` (132x64) |
|
||||
|
||||
Reference in new issue
Block a user