Skip to content

shivrm/riscv-sim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RISC-V Cache Simulator

A simulator for the RISC-V instruction set architecture, along with a cache simulator, developed as part of CS2323.

Usage

The project includes a Makefile which can be used to build the project and test it. To build, run:

$ make

This produces an executable called riscv_sim in the project directory. The simulator can be run using the following command:

$ ./riscv_sim

Project File Structure

+-- Makefile
+-- report.pdf
| \-- main.tex // Source file for the report
+-- src
| +-- asm // Source code for the assembler
| | +-- emitter.c
| | +-- emitter.h
| | +-- lexer.c
| | +-- lexer.h
| | +-- parser.c
| | +-- parser.h
| | +-- tables.c
| | \-- tables.h
| +-- main.c
| +-- simulator.c // Source code for the simulator
| +-- simulator.h
| +-- cache.c // Source code for the cache simulator
| +-- cache.h
+-- test // Testcases
\-- test.sh // Automatic testing script

About

RISC-V simulator for CS2323

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published