# Hello world
MEMORY_SIZE=8192
RAM_INIT_FILE=hello_world/hello_world.bin
+RAM_INIT_FILE=coldboot/coldboot.bin
SIM_MAIN_BRAM=false
# Micropython
#include <stdbool.h>
#include "console.h"
+#include "microwatt_soc.h"
#include <stdlib.h>
#include <stdint.h>
.rdly_p1 = 2,
};
struct gramProfile profile2;
- gram_init(&ctx, &profile, (void*)0x10000000,
- (void*)0x00009000,
- (void*)0x00008000);
+ gram_init(&ctx, &profile, (void*)DRAM_BASE, //0x10000000,
+ (void*)DRAM_CTRL_BASE, //0x00009000,
+ (void*)DRAM_INIT_BASE); //0x00008000);
puts("done\n");
puts("Rdly\np0: ");
# set up the SOC
soc = DDR3SoC(dram_cls=dram_cls,
- ddrphy_addr=0xff000000, # DRAM firmware init base
- dramcore_addr=0x80000000,
- ddr_addr=0x10000000,
+ # check microwatt_soc.h for these
+ ddrphy_addr=0xff000000, # DRAM_INIT_BASE firmware base
+ dramcore_addr=0xc8000000, # DRAM_CTRL_BASE
+ ddr_addr=0x40000000, # DRAM_BASE
fw_addr=fw_addr,
#fw_addr=None,
ddr_pins=ddr_pins,