# Hello world
MEMORY_SIZE=8192
-#RAM_INIT_FILE=hello_world/hello_world.bin
-RAM_INIT_FILE=coldboot/coldboot.bin
+RAM_INIT_FILE=hello_world/hello_world.bin
+#RAM_INIT_FILE=coldboot/coldboot.bin
SIM_MAIN_BRAM=false
# Micropython
verilator/microwatt-verilator.cpp \
verilator/uart-verilator.c
verilator -O3 -CFLAGS "-DCLK_FREQUENCY=$(CLK_FREQUENCY) -I../verilator" \
+ -DDATA_BUS_WIDTH_8 \
--assert \
--top-module top \
--cc ls2.v \
endif
endif
-BOOT_INIT_BASE ?= 0xf0000000 # at QSPI address
-# BOOT_INIT_BASE ?= 0xff000000 # at ROM hi address (with coldboot firmware)
+#BOOT_INIT_BASE ?= 0xf0000000 # at QSPI address
+ BOOT_INIT_BASE ?= 0xff000000 # at ROM hi address (with coldboot firmware)
# BOOT_INIT_BASE ?= 0x0 # start at zero (usual)
CC = $(CROSS_COMPILE)gcc
hello_world.elf: hello_world.o head.o console.o powerpc.lds
$(LD) $(LDFLAGS) -o $@ hello_world.o head.o console.o
+ powerpc64le-linux-gnu-objdump -D hello_world.elf > hello_world.as
hello_world.bin: hello_world.elf
$(OBJCOPY) -O binary $^ $@
../scripts/bin2hex.py $^ > $@
clean:
- @rm -f *.o hello_world.elf hello_world.bin hello_world.hex
+ @rm -f *.o hello_world.elf hello_world.bin hello_world.hex powerpc.lds
distclean: clean
rm -f *~
"""
# DRAM Module
- if ddr_pins is not None or fpga == 'sim':
+ if ddr_pins is not None: # or fpga == 'sim':
ddrmodule = dram_cls(clk_freq, "1:2") # match DDR3 ASIC P/N
#drs = lambda x: x