A 6502 SBC in a Gowin GW1NR-9 FPGA on a Sipeed Tang Nano 9k.
Ported ricktw project 6502_HDMI to a Tang Nano 9k
Further description of the original project over here using sources from display_controller and vt52
Features
A green blinking cursor will apear.
Cold[C] or warm [W] start ?
Answer by a 'c' keypress
MEMORY SIZE?
Answer by typing 4095
TERMINAL WIDTH?
Answer by typing 80
System shall response with BASIC xy and OK promt
Prototype circuit with Keyboard can be powered by Tang USB-C connector from PC or a Power Supply Adapter.
Source code can be synthesized, fitted and programmed with GOWIN IDE Windows or Linux.
see pin configuration in .cst configuration file
Pinmap PS2 Interface
PS2 pin | Tang Nano pin | FPGA pin | PS2 Function |
---|---|---|---|
1 | J6 10 | 77 | DATA |
2 | n.c. | - | n.c. |
3 | J6 23 | - | GND |
4 | J6 18 | - | +5V |
5 | J6 11 | 76 | CLK |
6 | n.c. | - | n.c |
Sipeed Tang Nano 9k
PS/2 Keyboard
PS/2 Socket Adapter Module
2 pcs SN74LVC1G17DBVR level shifter
Prototype Board