Basys 3 RISC-V computer and VT220 terminal - release 5 (git 2e668c7)
https://barant.com/opensource/basys3
Source: https://git.barant.com/barant/Basys3RiscV

For a Digilent Basys 3 (Artix-7 XC7A35T). Our own RV32IMF RISC-V processor
(with single-precision floating point in hardware) in Verilog at 100 MHz,
with the VT220 terminal, 320x240 and 640x480 graphics, hardware sprites and
scrolling, the sound chip, BASIC, the machine-code monitor with a RISC-V
assembler and disassembler, and five games.

New in release 5: a BASIC compiler. tools/basc.py in the source download
compiles a BASIC program on the PC into machine code that loads and runs like
the games; loops, arithmetic, arrays and graphics run 7 to 26 times faster.
BASIC's ROM has a fixed table of entry points for compiled programs, so this
bitstream is needed to run them. Also fixed: variables X1 to Z9 shared
storage with A to B9 (A7 and Y were the same variable).
Release 4 added GNU assembler syntax and UCASE$/LCASE$; release 3 the
scientific functions; release 2 hardware floating point at 100 MHz.

basys3_terminal.bit  Load into the FPGA over USB (lost at power-off).
basys3_terminal.mcs  Write to the board's QSPI flash, so it starts at power-on
                     (set jumper JP1 to QSPI).

With Vivado's Hardware Manager: open the target, then Program Device with the
.bit, or Add Configuration Memory Device (s25fl032p-spi-x1_x2_x4, or
mx25l3273f-spi-x1_x2_x4 on newer boards) and program the .mcs.

With openFPGALoader:
  openFPGALoader -b basys3 basys3_terminal.bit        (into the FPGA)
  openFPGALoader -b basys3 -f basys3_terminal.bit     (into flash)

Plug a USB keyboard into the USB host port and a monitor into VGA. Flip SW15
up for BASIC; down, the board is a serial terminal on the PROG/UART port.
For sound, plug a PmodAMP2 into the top row of JA and headphones or a speaker
into its jack.
The BASIC manual explains everything else.

The games (The Iron Keep, Bastion Raid, Star Warden, Star Swarm, Crystal
Cavern) aren't in the bitstream: they are memory files in the board's flash.
To put them there from the source download, see the games in README.md
(tools/send-hex.py with each game's .ihx, then its .bas loader).
