michg / riscv32_lcc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

###A 32-bit RISCV compiler toolchain (c-compiler, assembler and linker) based on lcc (https://github.com/drh/lcc) and binutils from eco32 (https://github.com/hgeisse/eco32) with testcases for iverilog (https://github.com/steveicarus/iverilog) running on picorv32 (https://github.com/cliffordwolf/picorv32).

#####Compilation of lcc with libraries and binutils:

./mkbinaries.sh

#####Running the testcases:
for binutils testcase:

cd testcases/binutils
./run.sh

A summary of the results will be in ./results/summary.log.

For picorv32 testcase (python3 and iverilog installation required):

cd testcases/picorv32
First build the simulation:
./buildsim.sh

Then either run a single test:

./runtest.sh sort

The result will be in ./sort/result/sort.log.
The simulation output will be in ./sort/result/result.log.
Or run all tests:

./runalltests.sh

A summary of the results will be in ./results.log.

About


Languages

Language:C 59.8%Language:SystemVerilog 12.9%Language:C++ 10.6%Language:Coq 5.8%Language:Verilog 3.5%Language:HTML 2.9%Language:Roff 1.9%Language:Makefile 1.0%Language:Python 0.7%Language:Assembly 0.4%Language:Shell 0.2%Language:Scala 0.2%Language:Objective-C 0.1%Language:Yacc 0.1%Language:Batchfile 0.1%Language:Forth 0.0%