Skip to content

Versions of RISC-V that only execute the fib() function.

License

Notifications You must be signed in to change notification settings

swm11/riscv-lite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

riscv-lite

Versions of RISC-V that only execute the fib() function.

Directory structure:

  • fib: contains the fibonacci code
  • csim: simulator written in C
  • jsim: simulator written in Java
  • vsim: simulator written in SystemVerilog (currently does not support memory operations).
  • ecad-labs: simulator built on SystemVerilog with a more sophisticated core.

Build instructions:

For the java simulator, execute the following commands:

$ cd jsim
$ make
$ make run

For the C simulator, execute the following commands:

$ cd csim
$ make
$ ./csim

The vsim simulator does not currently support memory operations, which causes runtime errors. To build it, execute the following commands:

$ cd vsim
$ ./runsim.sh

For the ecad-labs simulator, execute the following commands:

$ cd ecad-labs/clarvi
$ vsim -c -do fib_test.do > run.log
$ grep "f0000000" run.log #This will find the magic output store.

About

Versions of RISC-V that only execute the fib() function.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •