Forum Discussion
Altera_Forum
Honored Contributor
21 years agoROM initialisation
Hello, I created a SOPC-builder module with an on-chip ROM component. This ROM should be instantiated with the content of on_chip_rom.hex, that is in the Quartus directory and contains just 0...
Altera_Forum
Honored Contributor
21 years agoHi damc,
my design uses intern ROM to store a 'parking code' while system RAM is overwritten. I also set up an array with __attribute__((.section)). But if you never use this code or data in another module, it is optimized away and preset with zeros. Make a dummy call in any module to this section or anything else that signals the compiler: this data is used. After your hex-file is created, you must compile your cpu with SOPC builder to implement this data in your design. Mike edit: (... same tip at same time)