Skip to content

retasquid/CPU5.9

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 

Repository files navigation

CPU5.9

Implementation of a basic 16-bit CPU with UART, SPI, Interruptions(work in progress).

It has been develloped for a tang nano 9k FPGA and use between 2500 and 3500 LUTs.

It has been tested on a zynq 7020 FPGA and use between 1000 and 1500 LUTs.

Specs

The CPU5.9 is slower than others µcontrollers because of the SPI flash communication, an instruction commande is : Commande(1 byte) + Address(3 bytes) + data(4 bytes), the max speed of READ commande is 50MHz so the theoretical max speed is ~700 kHz. Other technologies (QSPI, parallel) can achieve better frequency. QSPI or 2READ is not yet implemented on the flash controller

Core CLOCK(MHz) RAM(Bits) ROM(Bits) Inst Per Cycle(IPC) PROTOCOL Registers
CPU5.9 0.6 16x24k 32x65k 1 1 UART / 1 SPI 16
ATmega328p 20 8x2k 16x32k 1 - 0.25 1 UART / 1 SPI / 1 I2C 32

Here is the instruction set (ISA) : https://docs.google.com/spreadsheets/d/1vhOGe5fxQasLqWsNROVNf7gBmljAszf1FUEZTxNj6Uk/edit?usp=sharing

About

a simple CPU for tang nano 9k with SPI UART and GPIOs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published