Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minimal RISC-V Microcontroller

Simple microcontroller based on the Ibex core

MCU Block Diagram


Features

  • RV32IM instruction set
  • 8 kB SRAM instruction memory (IMEM)
  • 4 kB SRAM data memory (DMEM)
  • I2C bootloader
  • Peripherals:
    • I2C master
    • UART master
    • Programmable timer
    • 10 GPIOs
  • All peripherals suport interrupts

Peripherals

Peripheral Base Address
PIT 0x20000000
I2C 0x30000000
GPIO 0x40000000
UART 0x50000000
IMEM 0x80000000
DMEM 0x90000000

Directory structure

doc/

Contains documentation for peripheral IPs, the boot EEPROM and the SRAM memories.

pnr/

Contains scripts for Place and Route, MMMC configuration file.

rtl/

SystemVerilog RTL for the MCU, where ibex_simple_system.sv contains the top module.

script/

Contains scripts for simulating the design at different stages, scripts for launching synthesis and P&R tools.

sim/

Simulations are performed in this directory. Here you will find the xrun logs and waveform restore files for the three stages of simulation (RTL, post synthesis and post P&R).

sw/

Directory for the MCU software. This directory contains C code for the MCU and all the files necessary for compilation (linker, startup, make).

syn/

Contains script for synthesis and the SDC constraint file.

tb/

Contains testbenches for the RTL.


RTL Simulation

Before simulation the processor software has to be compiled (see sw/README.md).

Cadence Xcelium

Lab PC

Start simulation by executing xrun_sim_run.sh script in the terminal:

./script/xrun_sim_run.sh -gui -t gpio_simple

Restore waveform configuration with File -> Source Command Script -> Select restore.tcl.svcf.

If any RTL source files changed or processor software is recompiled – reload simulator (Simulation -> Reinvoke Simulator).

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages