A hardware implementation of a CHIP-8 virtual machine, written in VHDL and built with Xilinx Vivado. It targets the Digilent Basys 3 board (Xilinx Artix-7 FPGA).
Status: work in progress.
CHIP-8 is a small virtual machine from the 1970s, originally used to run simple games. Instead of emulating it in software, this project describes the machine directly in hardware, so the whole design runs on the FPGA itself.
- CHIP-8 CPU core built as an FSM, with opcode support that has grown over the project, including
RND(with its own random number entity),RET, BCD conversion (LD_BCD_REG),ADD_I_REG, the register load/store opcodes (LD_I_REGS,LD_REGS_I) and the key-skip opcodes (SKP_KEY) - VGA output with a configurable
SCALE_FACTORand a graphics unit that draws the CHIP-8 display - Keypad input through a PMOD keypad on the Basys 3
- Several ROMs stored in RAM, selectable with the switches on the board
- Real-time register monitoring on the seven-segment display
- Opcode testbench with a saved waveform setup (
tb_opcodes_behav.wcfg)
- A Digilent Basys 3 board
- A VGA monitor
- A PMOD keypad
- Xilinx Vivado
- Clone the repository:
git clone https://github.com/rydof/Chip8-VHDL.git
- Open
Chip8.xprin Vivado. - Run a behavioral simulation to check the opcodes.
- Synthesize, implement and generate the bitstream, then program the Basys 3 board.
- Use the switches to pick a ROM and the keypad to play.
Chip8.srcs/- Vivado project sourcesChip8.xpr- Vivado project filetb_opcodes_behav.wcfg- waveform configuration for the opcode testbench simulation
MIT, see LICENSE.