Skip to content

Latest commit

 

History

History
66 lines (51 loc) · 1.44 KB

README.md

File metadata and controls

66 lines (51 loc) · 1.44 KB

CPU-SMALL

This cpu is 2-stage scalar processor.

SPECIFICATIONS

Architecture

  • RV32-IMC
  • Fast and slow option for multiplication unit
  • Slow division unit
  • Physical Memory Protection

Memory

  • Neumann bus architecture
  • Unified 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-small.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 xsim PROGRAM=coremark
  1. Run simulation with debug feature:
make xsim DUMP=1
  1. Run simulation with short period of time (e.g 1us, default 10ms):
make xsim MAXTIME=1000
  1. The simulation results together with debug informations are located in sim/xsim/output.

BENCHMARKS

Coremark Benchmark

Cycles Iteration/s/MHz Iteration
339800 2.94 10