Skip to content

6-stage in-order dual-issue superscalar risc-v cpu with floating point unit

License

Notifications You must be signed in to change notification settings

taneroksuz/cpu-medium

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CPU-MEDIUM

This cpu is 6-stage in-order dual issue superscalar processor with floating point unit.

SPECIFICATIONS

Architecture

  • RV32-IMFDCB
  • Fast multiplication unit
  • Slow division unit
  • FPU with single and double precision
  • Fast and slow option for FDIV and FSQRT instruction
  • Branch target cache with bimodal branch predictor

Memory

  • Harvard bus architecture
  • Instruction and Data Tightly Integrated Memory

Peripheral

  • UART
  • Baudrate 115200
  • Start Bit
  • Stop Bit
  • 8 Data Bits
  • No Parity Bit

TOOLS

The installation scripts of necessary tools are located in directory tools. These scripts need root permission in order to install packages and tools for simulation and testcase generation.

USAGE

  1. Clone the repository:
git clone --recurse-submodules https://github.com/taneroksuz/cpu-medium.git
  1. Install necessary tools for compilation and simulation:
make tool
  1. Compile some benchmarks:
make compile
  1. Compiled executable files are located in riscv and dumped files are located in dump. Select an executable and run simulation:
make verilator PROGRAM=coremark
  1. Run simulation with debug feature:
make verilator DUMP=1
  1. Run simulation with short period of time (e.g 1us, default 10ms):
make verilator MAXTIME=1000
  1. The simulation results together with debug informations are located in sim/verilator/output.

BENCHMARKS

Coremark Benchmark

Cycles Iteration/s/MHz Iteration
192443 5.20 10