Building the GHRD for the Arrow
SoCKit (Quartus 13.0sp1)
Below are the key steps.
- Generate the QSYS system in QII 13.0 sp1. Using a QSYS system generated prior to sp1 will not work.
- Add the .qip file to the project prior to compile in QII 13.0 sp1
- Add the sdram sdc file to the project to pass timequest
- Do the analysis and synthesis in Quartus
- Run the pin placement TCL script – as per the SoCKit workshop
- Full Quartus compile in QII 13.0 sp1
- Generate the preloader source files using bsp-editor run in the embedded command shell in the QII 13.0 sp1 install directory tree
- Make the preloader from the embedded command shell in the QII 13.0 sp1 install directory tree
- Rebuild u-boot. Modify the source to account for half the DDR3 memory
a. Open /include/configs/socfpga_cyclone5.h
b. Change the following
#ifdef CONFIG_SOCFPGA_VIRTUAL_TARGET
#define PHYS_SDRAM_1_SIZE 0x80000000
#else
#define PHYS_SDRAM_1_SIZE
0x40000000 #endif
to be
#ifdef CONFIG_SOCFPGA_VIRTUAL_TARGET
#define PHYS_SDRAM_1_SIZE 0x80000000
#else
#define PHYS_SDRAM_1_SIZE
0x20000000 #endif
c. rebuild u-boot