Skip to content

Commit 043aa75

Browse files
committed
cleaned up repo and updated .gitignore
1 parent 3ba42a7 commit 043aa75

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

119 files changed

+111
-37441
lines changed

.gitignore

100644100755
+62
Original file line numberDiff line numberDiff line change
@@ -127,3 +127,65 @@ dmypy.json
127127

128128
# Pyre type checker
129129
.pyre/
130+
131+
#c
132+
# Prerequisites
133+
*.d
134+
135+
# Object files
136+
*.o
137+
*.ko
138+
*.obj
139+
*.elf
140+
*.s
141+
*.S
142+
143+
# Linker output
144+
*.ilk
145+
*.map
146+
*.exp
147+
148+
# Precompiled Headers
149+
*.gch
150+
*.pch
151+
152+
# Libraries
153+
*.lib
154+
*.a
155+
*.la
156+
*.lo
157+
158+
# Shared objects (inc. Windows DLLs)
159+
*.dll
160+
*.so
161+
*.so.*
162+
*.dylib
163+
164+
# Executables
165+
*.exe
166+
*.out
167+
*.app
168+
*.i*86
169+
*.x86_64
170+
*.hex
171+
*.bin
172+
*.elf
173+
*.map
174+
*.srec
175+
176+
# Debug files
177+
*.dSYM/
178+
*.su
179+
*.idb
180+
*.pdb
181+
182+
# Kernel Module Compile Results
183+
*.mod*
184+
*.cmd
185+
.tmp_versions/
186+
modules.order
187+
Module.symvers
188+
Mkfile.old
189+
dkms.conf
190+
#vscode
191+
.vscode/

.vscode/settings.json

-3
This file was deleted.

README.md

100644100755
+4-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,7 @@ an riscv rv32i simulator in python inspired from https://github.com/johnwinans/r
2222
3. make
2323

2424
6. Help
25-
1. Within the simulator enter h|help to get the help menu.
25+
1. Within the simulator enter h|help to get the help menu.
26+
27+
7. References
28+
1.

bus.py

100644100755
File mode changed.

cli.py

100644100755
File mode changed.

config.py

100644100755
File mode changed.

cpu.py

100644100755
File mode changed.

isa.py

100644100755
File mode changed.

log.txt

-868
This file was deleted.

main.py

100644100755
File mode changed.

map.py

100644100755
File mode changed.

memory.py

100644100755
File mode changed.

soc.py

100644100755
File mode changed.

sw/app/bootloader/Makefile

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
TOOLCHAIN_PREFIX=riscv-none-embed-
1+
2+
RISCV_GNU_TOOLCHAIN_INSTALL_PREFIX = /opt/tools/compilers/riscV/rv32i
3+
TOOLCHAIN_PREFIX=$(RISCV_GNU_TOOLCHAIN_INSTALL_PREFIX)/bin/riscv32-unknown-elf-
24

35
FIRMWARE_OBJS=start.o
46

@@ -18,6 +20,6 @@ start.o: start.S
1820
$(TOOLCHAIN_PREFIX)gcc -c -mabi=ilp32 -march=rv32i -ffreestanding -nostdlib -nostartfiles -o $@ $<
1921

2022
disass: firmware.elf
21-
riscv-none-embed-objdump -d -M no-aliases -M numeric firmware.elf
23+
$(TOOLCHAIN_PREFIX)objdump -d -M no-aliases -M numeric firmware.elf
2224
clean:
2325
rm -f firmware.bin firmware.elf start.o firmware.map

sw/app/bootloader/firmware.bin

-144 Bytes
Binary file not shown.

sw/app/bootloader/firmware.elf

-4.49 KB
Binary file not shown.

sw/app/bootloader/firmware.map

-23
This file was deleted.

sw/app/bootloader/sections.lds

100644100755
File mode changed.

sw/app/bootloader/start.S

-56
This file was deleted.

sw/app/bootloader/start.o

-760 Bytes
Binary file not shown.

sw/app/main_app/Makefile

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11

2+
RISCV_GNU_TOOLCHAIN_INSTALL_PREFIX = /opt/tools/compilers/riscV/rv32i
23
FIRMWARE_OBJS = src/main.o src/ttyuart.o
3-
TOOLCHAIN_PREFIX = riscv-none-embed-
4+
TOOLCHAIN_PREFIX = $(RISCV_GNU_TOOLCHAIN_INSTALL_PREFIX)/bin/riscv32-unknown-elf-
45

56
all: firmware/firmware.bin firmware/firmware.srec
67

@@ -18,6 +19,9 @@ firmware/firmware.elf: $(FIRMWARE_OBJS) riscv.lds
1819
src/%.o: src/%.c
1920
$(TOOLCHAIN_PREFIX)gcc -c -I./include -mabi=ilp32 -march=rv32i -Os --std=c99 -o $@ $<
2021

22+
disass: firmware/firmware.elf
23+
$(TOOLCHAIN_PREFIX)objdump -d -M no-aliases -M numeric firmware/firmware.elf
24+
2125
clean:
2226
rm -vrf $(FIRMWARE_OBJS) firmware/* src/*.o
2327

sw/app/main_app/firmware/firmware.bin

-6.38 KB
Binary file not shown.

sw/app/main_app/firmware/firmware.elf

-8.64 KB
Binary file not shown.

0 commit comments

Comments
 (0)