Code Monkey home page Code Monkey logo

simplecpu's Introduction

SimpleCPU

A simple, fully synthesizable VHDL-93 implementation of a general purpose 12 bit RISC CPU. This is not a highly complex FPGA project and should not be viewed as such - it is more of an educational attempt to practice and learn.

Scope

As the name implies, the goal of this project was to come up with a processor architecture that is as simple as possible while still beeing useful. This was achieved by the following design choices:

  • a reduced instruction set that only uses 27 different instructions. This simplifies the instruction decoder architecture by a lot.
  • Load-store data access. There is only one central memory for storing data, the RAM. This means only a few instructions need to be implemented for manipulating memory and fewer bus lines and registers are needed. To access the ALU, the RAM addresses that are mapped to the ALU need to be written to/read from. This also means, that adding peripherals or I/O is just a matter of mapping them to memory without the need of new instructions.
  • a simple control state machine that has no pipelining capabilities.
  • simple addressing modes.

Specifications overview:

Type Specification
ISA type self-defined RISC
Pipelining strategy no pipelining
Data access type Load-store
Endianness Little endian
Word size 12 bit
Address size 12 bit
In-System RAM size 6 kB
In-System program memory 6 kB
Addressing modes direct, indirect, PC-relative
ALU operations logical and signed integer arithmetic

HDL Synthesis results

2 4096x12-bit single-port RAMs
3 12-bit adder
1 12-bit subtractor
1 13-bit addsub
1 12-bit up counter
185 Registers
141 Multiplexers
2 Comparators
2 XORs

Place and Route results on the Spartan 6 xc6slx9 FPGA

Maximum frequency: 180 MHz
Number of Slice Registers: 212
Number of Slice LUTs: 498
Number of RAMB16BWERs: 6

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.