Skip to content

vhdlf/cpu_basic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Design of a pentium-like 32-bit CPU.

Written while studying the course Advanced Computer architecture at IIIT Hyderabad, by professor R. Govindarajulu. This is a turing-complete 32-bit CPU with data movement, branch, arithmetic, and logical instructions. It follows the instruction format of Intel x86 processors, where each instruction takes 2 register operands and an optional immediate value. Like x86, this has 16 32-bit registers, a flag register, and an instruction pointer. The memory address is made to be 16-bit for simulation purposes.

Wrote this after following:
gardintrapp/cpu_4004 by Oddbjorn Norstrand
Thank you.

synthesis

design-file

compile-design

rtl

technology-map

resource-properties

pin-plan

chip-plan

assignment-settings

simulation-library-compiler

design

design-pkg-bits

design-pkg-mem

design-pkg-cpu

design-pkg-cpu-opcodes

design-pkg-cpu-output

design-top-entity

design-top-reset

design-top-run

design-top-run-drive

design-top-st-halted

design-top-st-fetch

design-top-st-load-store

design-top-op-p1

design-top-op-p2

design-top-op-p3

design-top-op-p4

testbench

testbench-signals

testbench-clk-mem

testbench-test-square

testbench-test-factorial

testbench-test-prime

testbench-test-prime2

simulation

simulation

simulation01-memory-init

simulation02-cpu-reset

simulation03-execute-not-started

simulation04-memory-output

simulation05-memory-input

simulation06-test-factorial

simulation07-test-prime

report

ghdl-square

ghdl-factorial

ghdl-prime

ghdl-prime2