michg / cparserlibfirm_riscv32

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

###Using cparser and libfirm to compile the floating math-library from https://github.com/f32c/f32c/tree/master/src/lib/src for rv32im and rv32imf and run it (rv32im) on picorv32 (https://github.com/cliffordwolf/picorv32) with iverilog (https://github.com/steveicarus/iverilog) and and rv32imf on pulpino (https://github.com/pulp-platform/riscv) verilator (https://www.veripool.org/wiki/verilator) .

#####Compilation of binutils, cparser, libfirm:

make

To try rv32im:

cd samples/es

make -r -f makerv32im

For running it on picorv32(python3 and iverilog installation required): first build the simulation:

./buildsim.sh

then run it:

./simv

To try rv32imf:

cd samples/es

make -r -f makerv32imf

For running it on pulpino(verilator installation required): first build the simulation:

cd samples/es/verilator-model

make

then run it:

./testbench ../result_rv32imf/firmware.bin

About


Languages

Language:C 84.6%Language:Python 11.1%Language:C++ 1.4%Language:Perl 6 1.2%Language:Perl 1.0%Language:Makefile 0.2%Language:CMake 0.2%Language:Roff 0.2%Language:Shell 0.0%Language:Objective-C 0.0%