write to sdram from sd card through sopc builder and nios2

Status
Not open for further replies.

yupina-chan

Member level 2
Joined
Nov 27, 2013
Messages
51
Helped
1
Reputation
2
Reaction score
1
Trophy points
8
Visit site
Activity points
397
hi. i want to write to sdram of the fpga from my sdcard. i have done the tutorial on writing a text file to sdcard provided by altera and i was able to do it. now, i have a .bmp image in my sdcard and i want to write the data to sdram. my questions are:
1. what memory should i use for my instruction? the on-chip memory or sram?
2. about the timing, i can't seem to meet the timing requirements when a pll is added. what input and output delays should i input? and what are my basis for choosing?
3. can i ask for the source code or sample codes on the part on writing the data to sdram? my data is .bmp

i would greatly appreciate any response from you. thanks in advance.
 

see the example at
EMBEDDED SOPC DESIGN
WITH NIOS II PROCESSOR
AND VHDL EXAMPLES
chapter 17 (2011 ed)
 

thanks for this reference. this is indeed a great help. but one more question. i already have some purpose for my sdram. so can i use the sram to save the .bmp file and use the on-chip memory to save my code? my bitmap file is about 20kb.
 

why not. if it is memory mapped, and if your ocm can contain your entire code.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…