endif
# Hello world
-MEMORY_SIZE=8192
-RAM_INIT_FILE=hello_world/hello_world.hex
-SIM_MAIN_BRAM=true
+#MEMORY_SIZE=8192
+#RAM_INIT_FILE=hello_world/hello_world.hex
+#SIM_MAIN_BRAM=false
# Micropython
#MEMORY_SIZE=393216
#RAM_INIT_FILE=micropython/firmware.hex
# Linux
-#MEMORY_SIZE=536870912
-#RAM_INIT_FILE=dtbImage.microwatt.hex
-#SIM_MAIN_BRAM=false
+MEMORY_SIZE=536870912
+RAM_INIT_FILE=dtbImage.microwatt.hex
+SIM_MAIN_BRAM=false
#SIM_BRAM_CHAINBOOT=5242880 # 0x500000
-#SIM_BRAM_CHAINBOOT=6291456 # 0x600000
+SIM_BRAM_CHAINBOOT=6291456 # 0x600000
FPGA_TARGET ?= ORANGE-CRAB
# Need to investigate why yosys is hitting verilator warnings, and eventually turn on -Wall
# --top-module toplevel
microwatt-verilator: microwatt.v verilator/microwatt-verilator.cpp verilator/uart-verilator.c
- verilator -O3 -CFLAGS "-DCLK_FREQUENCY=$(CLK_FREQUENCY)" --assert --cc microwatt.v --exe verilator/microwatt-verilator.cpp verilator/uart-verilator.c -o $@ -Iuart16550 -Wno-fatal -Wno-CASEOVERLAP -Wno-UNOPTFLAT # --trace
+ verilator -O3 -CFLAGS "-DCLK_FREQUENCY=$(CLK_FREQUENCY)" --assert --cc microwatt.v --exe verilator/microwatt-verilator.cpp verilator/uart-verilator.c -o $@ -Iuart16550 \
+ -Wno-fatal -Wno-CASEOVERLAP -Wno-UNOPTFLAT \
+ -Wno-BLKANDNBLK \
+ -Wno-COMBDLY \
+ -Wno-CASEINCOMPLETE \
+ -Wno-WIDTH \
+ # --trace
+ # --unroll-count 256 \
+ # --output-split 5000 \
+ # --output-split-cfuncs 500 \
+ # --output-split-ctrace 500 \
make -C obj_dir -f Vmicrowatt.mk
@cp -f obj_dir/microwatt-verilator microwatt-verilator