FPGACode-ide -> IceSugar-riscv -> IceSugar-tv80 -> IceSugar-6502
Here you will find a project for IceSugar implementing 6502. As well as full automation of assembly and testing. More detailed documentation on usage in the FPGACode-ide.
This project is based on the developments of up5k_6502 and uart_ice40 and iceZ0mb1e
What is done:
- RAM: SPRAM or BRAM
- ROM: BRAM (TODO: or SPI FLASH)
- UART: Minimal size uart
- SPI: Classic spi
The commands can be executed manually in the terminal as well as through the Task menu
in Code
make all #Project assembly
make synthesis #Synthesis RTL
make flash #Flash ROM
make prog #Flash SRAM
make sim #Perform Testbench
make formatter #Perform code formatting
make build_fw #Build firmware
make clean #Cleaning the assembly of the project
make toolchain #Install assembly tools
Info: Device utilisation:
Info: ICESTORM_LC: 984/ 5280 18%
Info: ICESTORM_RAM: 8/ 30 26%
Info: SB_IO: 14/ 96 14%
Info: SB_GB: 6/ 8 75%
Info: ICESTORM_PLL: 0/ 1 0%
Info: SB_WARMBOOT: 0/ 1 0%
Info: ICESTORM_DSP: 0/ 8 0%
Info: ICESTORM_HFOSC: 1/ 1 100%
Info: ICESTORM_LFOSC: 0/ 1 0%
Info: SB_I2C: 0/ 2 0%
Info: SB_SPI: 0/ 2 0%
Info: IO_I3C: 0/ 2 0%
Info: SB_LEDDA_IP: 0/ 1 0%
Info: SB_RGBA_DRV: 1/ 1 100%
Info: ICESTORM_SPRAM: 1/ 4 25%