The design is an 8-bit processor that supports communication with a single external device through the Serial Periferal Interface or SPI protocol, and has the capability to animate the seven segment display. To use the processor an additional external driver is needed. In this project we use an Digilent Nexys A7 FPGA. The FPGA is programmed w/ the driver.sv module. The driver's internal storages (imem, dmem) are initialized w/ .mem files. The driver then sends this data to the processor and signals it to begin execution. Once execution is finished the user can view the contents of the GPRs or watch an animation on the 7-segment display.
Note: Unless the processor has stopped executing (is in its IDLE
state), the contents of its memories will not be clearly visible on the display.
FPGA, a device that supports SPI (optional)
# | Input | Output | Bidirectional |
---|---|---|---|
0 | Display on/off | segment a | Driver_ctrl[0] (I) |
1 | Most Significant Bits | segment b | Driver_ctrl[1] (I) |
2 | RS_addr[0] | segment c | Done executing (O) |
3 | RS_addr[1] | segment d | Serial clock (O) |
4 | RS_addr[2] | segment e | MISO (I) |
5 | RS_addr[3] | segment f | MOSI (O) |
6 | View select | segment g | Chip select (O) |
7 | Animation on/off | dot | Sync (O) |