Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17268 Discussions

memory width modification in NIOS II Eclipse

Altera_Forum
Honored Contributor II
1,556 Views

I am using Qaurtus 13.0 and want to make a modification in the build. the memory initialization file that is generated by NIOS II eclipse is 64 bits per row and when I want to integrate this with my RTL build, I see some warnings in Quartus. my NIOS memory is 32 bits. I don't think these warnings cause any problem but I am kind of cleaning up the project and I want to fix this.  

As I mentioned, I use NIOS II eclipse for compiling FW. I see there is a script called "create_this_app" that generates a "Makefile". "Makefile" calls a "mem_init.mk" script. as you see here, "mem_init.mk" has some commands for converting elf to hex: 

 

$(HEX_FILES): %.hex: $(ELF) 

$(post-process-info) 

@$(MKDIR) $(@D) 

bash -c '$(ELF2HEX) $< $(mem_start_address) $(mem_end_address) --width=$(mem_width)  

$(mem_endianness) --create-lanes=$(mem_create_lanes) $(elf2hex_extra_args) $@' 

 

the mem_width has a default value which is 64 bits. How can I pass a parameter to the "create_this_app" script for changing mem_width to 32 bits automatically? of course one way is changing this manually in "mem_init.mk" but I don't want to do that and ask people to modify their script every time they run their FW. the only place that I want to change and commit into SVN is "create_this_app" script which is top level script. 

Any idea?
0 Kudos
0 Replies
Reply