Remove the sound chip; Ctrl-Alt-Del opens the monitor
The sound chip (rtl/sound.v, ports 90h-9Dh, the PmodAMP2 on JA) is removed: its ports now read FFh like any unused port, the JA pins are free, and the manual, README, example and tests no longer mention it. No game used it. Ctrl-Alt-Del raises the monitor's NMI (STOPPED BY CTRL-ALT-DEL) instead of resetting; pressed in the monitor, again within 2 s, or while an NMI is still pending it restarts the computer. The monitor gains RESET (port 62), and BASIC returns to the main screen at start-up. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
addf0157fc
commit
305c608bb5
19 files changed
+1707
-2021
No files matched your search
@@ -10,11 +10,10 @@ RISC-V processor written from scratch in Verilog:
|
||||
in a double-size font.
|
||||
- **Graphics** over the text: 320 × 240 in 16 colours with hardware scrolling,
|
||||
or 640 × 480 in two colours, plus 32 hardware sprites.
|
||||
- **Sound**: a three-voice chip with noise and envelopes (PmodAMP2 on JA).
|
||||
- **USB keyboard** on the board's USB host port, with a keys-held port for
|
||||
games.
|
||||
- **Files** saved in the board's configuration flash.
|
||||
- **Software**: Dartmouth-style BASIC with graphics, sound and files,
|
||||
- **Software**: Dartmouth-style BASIC with graphics and files,
|
||||
`DO … LOOP`, block `IF … ELSE … END IF` and `SELECT CASE`, and scientific
|
||||
functions (inverse and hyperbolic trigonometry in radians or degrees,
|
||||
`LOG10`, `ROUND`, `MOD`, `FACT` …), and `UCASE$`/`LCASE$`; a
|
||||
@@ -25,7 +24,7 @@ RISC-V processor written from scratch in Verilog:
|
||||
arithmetic.
|
||||
|
||||
The [BASIC manual](docs/basic-manual.md) ([PDF](docs/basic-manual.pdf))
|
||||
describes the computer from the user's side: BASIC, graphics, sprites, sound,
|
||||
describes the computer from the user's side: BASIC, graphics, sprites,
|
||||
files, the monitor and the games.
|
||||
|
||||
## Getting started
|
||||
@@ -34,7 +33,7 @@ Download `basys3_terminal.bit` (or `basys3_terminal.mcs` to keep it in the
|
||||
flash) from the [latest release](https://git.barant.com/barant/Basys3RiscV/releases),
|
||||
or build it yourself (below).
|
||||
|
||||
1. Plug a VGA monitor, a USB keyboard, and optionally a PmodAMP2 into JA.
|
||||
1. Plug in a VGA monitor and a USB keyboard.
|
||||
2. Load the bitstream with Vivado's Hardware Manager, or `scripts/build.sh
|
||||
program` / `flash` from a checkout.
|
||||
3. Flip **SW15 up**. The screen shows BASIC's banner and `READY`.
|
||||
@@ -73,8 +72,8 @@ then `SAVE "KEEP"` in BASIC, and `RUN "KEEP"` from then on.
|
||||
| SW15 | Computer mode: the terminal is the computer's console |
|
||||
| BTNC | Reset everything |
|
||||
| BTNU | Clear the screen |
|
||||
| BTND | Restart the computer only (or Ctrl-Alt-Del in computer mode) |
|
||||
| Pause key | Stop the program in the machine-code monitor |
|
||||
| BTND | Restart the computer only |
|
||||
| Pause key, or Ctrl-Alt-Del | Stop the program in the machine-code monitor, with its registers (Ctrl-Alt-Del again within 2 s, or while the monitor shows, restarts the computer; so does the monitor's `RESET`) |
|
||||
| LED7:0 | Last byte received |
|
||||
| LED11:8 | VT220 keyboard LEDs L4..L1 (`ESC[n q`) |
|
||||
| LED12–15 | Bell, Caps Lock, serial activity, keyboard activity |
|
||||
@@ -141,9 +140,9 @@ LUTs (3,000 of them the FPU), 1,900 flip-flops and 6 DSP slices.
|
||||
|
||||
The ports (listed at the top of `rv32_system.v` and in the manual) cover the
|
||||
console, the millisecond counter, the 7-segment display, graphics, sprites,
|
||||
sound, the keys held down and the flash. The peripherals are `term_ctrl.v`
|
||||
(the VT220), `text_display.v` (video), `sprites.v`, `sound.v`,
|
||||
`flash_spi.v`, `uart.v`, `ps2_keyboard.v` and `sevenseg.v`.
|
||||
the keys held down and the flash. The peripherals are `term_ctrl.v`
|
||||
(the VT220), `text_display.v` (video), `sprites.v`, `flash_spi.v`,
|
||||
`uart.v`, `ps2_keyboard.v` and `sevenseg.v`.
|
||||
|
||||
The graphics memory is 76,800 four-bit entries: 320 × 240 pixels in 16
|
||||
colours, or, with port 38 set, 640 × 480 pixels at one bit each (four to an
|
||||
|
||||
Reference in new issue
Block a user