Forum Discussion
Altera_Forum
Honored Contributor
9 years agoDisplay Mif / Hex file in dual port ram on Nios II stdout
I'm trying to fill a dual port ram (framebuffer) with a Mif File and then print it out with NIOS II and its C-Code programming. The Mif File (converted to Hex) and loaded into the dual port ram...
Altera_Forum
Honored Contributor
9 years agoif the RAM is connected as 8Bit addressable memory:
printf("%x", 0xff & mem_fb[i]); if the RAM is connected on a 32Bit bus teh upper bits may filled up with 0: printf("%x", 0xff & mem_fb[4*i]);