Scripts make build-docker
and make run-docker
are given for easiness of use.
Use make all
to build and ./bin/scl filename
to compile. You can run make test
to run some test scripts.
Compile with ./bin/sclc input.csl output
. This will generate the binary output
. If you also want the assembly code, run ./bin/sclc input.csl output --asm
that will generate both output
and output.asm
.
An util to load in the processor memory is provided. Run ./bin/bin2vhdl output output.txt
and it will convert the binary output
to VHDL code that loads the binary into the memory.
--asm
outputs the assembly file--asm_comments
adds comments to the assebly file--print_ast
outputs the symbolic tree--dialect=raw
or--dialect=ABI
change the register naming. Raw (default) uses only x0-x31. ABI uses names such as ra, zero, sp, etc.. The RISC-V Simulator used only accepts Assembly in ABI naming.
The experiments from the report are reproducible with ./test/run-experiments.sh
.