Skip to content

Commit

Permalink
Added compiler folder
Browse files Browse the repository at this point in the history
  • Loading branch information
xtarke committed Jul 1, 2022
1 parent 3895591 commit 35be593
Show file tree
Hide file tree
Showing 6 changed files with 880 additions and 1,020 deletions.
11 changes: 11 additions & 0 deletions compiler/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Instalação do compilador

1. Baixar [GNU RISC-C GCC](https://github.com/xpack-dev-tools/riscv-none-embed-gcc-xpack/releases) de acordo com SO do seu PC. Win32-x64 para Windows ou Linux-x64 para Linux.
2. Extrair o pacote.
3. Renomear o diretório "xpack-riscv-..." para gcc criando a seguinte árvore de aquivos:

```C
./compiler/gcc/bin/+
|- riscv-none-embed-gcc
|- (...)
```
157 changes: 0 additions & 157 deletions peripherals/lcd_hd44780/risc/sim.s

This file was deleted.

Binary file removed peripherals/lcd_hd44780/risc/vsim.wlf
Binary file not shown.
13 changes: 1 addition & 12 deletions software/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
ifndef RISCV_TOOLS_PREFIX
#RISCV_TOOLS_PREFIX=riscv-none-embed-
# Para usar no LSC
RISCV_TOOLS_PREFIX = ~/.local/xPacks/@xpack-dev-tools/riscv-none-embed-gcc/10.1.0-1.1.1/.content/bin/riscv-none-embed-
endif
RISCV_TOOLS_PREFIX = ../compiler/gcc/bin/riscv-none-embed-

QUARTUS_DIR=~/Data/Apps/intelFPGA/20.1/quartus/bin/
CXX = $(RISCV_TOOLS_PREFIX)g++ -march=rv32im
Expand All @@ -15,13 +11,6 @@ LDFLAGS = -Wl
LDLIBS =
MAIN = blink

#test: testbench.vvp $(MAIN)32.hex
# # vvp -l testbench.log -N testbench.vvp

#testbench.vvp: testbench.v ../../picorv32.v $(MAIN)_dbg.v
# #iverilog -o testbench.vvp testbench.v ../../picorv32.v
# #chmod -x testbench.vvp

quartus_$(MAIN).hex: $(MAIN)32.hex
python3 hex8tointel.py $(MAIN).tmp > quartus_$(MAIN).hex
rm $(MAIN)32.hex
Expand Down
Loading

0 comments on commit 35be593

Please sign in to comment.