Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
16597 Discussions

Vhdl code to read/ write from sram

Altera_Forum
Honored Contributor II
2,364 Views

please Iam new on Altera platform, I have an image and I need to save it to Sram and read it via Vhdl. Any help?

0 Kudos
17 Replies
Altera_Forum
Honored Contributor II
1,114 Views

how do you have your image? Camera input, already on file or in some other way?

0 Kudos
Altera_Forum
Honored Contributor II
1,115 Views

Have you attempted this yourself? 

What type of ram - internal or external?
0 Kudos
Altera_Forum
Honored Contributor II
1,115 Views

It is bmp image ( offline) or on text no problem with that just how to save it. many thanks for reply.

0 Kudos
Altera_Forum
Honored Contributor II
1,114 Views

Tricky I tried but I found the NIOS II is the only way, however I tried to apply it but another problems appeared when I applied some examples i saw, example they with eclipse and the execution didn't extract elf files and they use c/ c++ , ..etc , it became more complicated. All I done right now is to show the array image in vhdl code.

0 Kudos
Altera_Forum
Honored Contributor II
1,115 Views

You still dont really explain what the problem is. 

Where do you want to image? 

Cant you just load it via an RS232 link? 

Why do you need Nios? 

what examples are you talking about? 

What VHDL have you got? 

Whats the purpose of the project?
0 Kudos
Altera_Forum
Honored Contributor II
1,115 Views

Ok ok, sorry for not explaining that, 

 

Where do you want to image? Whats the purpose of the project? 

I have image on my PC and I want to show it on the VGA ( since my project is to add a watermark and show the image, however now I just want to show the original Image) 

 

Cant you just load it via an RS232 link? 

I need to save the image on SDRAM to read it and modify it in future. furthermore I didn't use RS232 before 

 

Why do you need Nios? 

I think I need the NIOS for using the SDRAM , that's what I read. 

 

what examples are you talking about? 

Examples are the templates like hello words no one worked with me in Eclipse 

 

What VHDL have you got? I didn't understand but I am using VHDL editor in Quartus II 13. 

 

Hopefully I answered now :(
0 Kudos
Altera_Forum
Honored Contributor II
1,115 Views

You can use SDRAM and do all the things you want without NIOS. But if you're from a software background - you may want to stick with what you know (ie. use Qsys to create a system for you that you can create C code for). 

 

It all depends what you want to do.
Altera_Forum
Honored Contributor II
1,114 Views

Thank you I wasn't know that, fore sure I don't want to stick , am searching for my requirements. Do you have any tutorials that explain how to use SDRAM without NIOS?. Regards.

0 Kudos
Altera_Forum
Honored Contributor II
1,115 Views

I dont know the locations of the tutorials, but I think you can find them on the internet wit yoir favorite search engine. Maybe you can also read the documentation from the Altera memory controller (it think it is called) IP.

Altera_Forum
Honored Contributor II
1,115 Views

I am searching and getting some online courses on altera, till now I didn't find that , hopefully I will get it soon. Thank you very much PietervanderStar

0 Kudos
Altera_Forum
Honored Contributor II
1,114 Views

did u get the code for accessing image ??

0 Kudos
Altera_Forum
Honored Contributor II
1,115 Views

 

--- Quote Start ---  

did u get the code for accessing image ?? 

--- Quote End ---  

 

 

 

I left that for a while , I just know how to access the SRAM which is 512 KB
0 Kudos
Altera_Forum
Honored Contributor II
1,115 Views

can u please tell me how to extract any text file bit by bit from SRAM ...thanks in advance

0 Kudos
Altera_Forum
Honored Contributor II
1,115 Views

 

--- Quote Start ---  

can u please tell me how to extract any text file bit by bit from SRAM ...thanks in advance 

--- Quote End ---  

 

 

I followed this video on you tube , it write/reads the data bit by bit . hope it is will be useful for you...  

 

https://www.youtube.com/watch?v=ubsreeqe8hw
0 Kudos
Altera_Forum
Honored Contributor II
1,115 Views

 

--- Quote Start ---  

I followed this video on you tube , it write/reads the data bit by bit . hope it is will be useful for you...  

 

https://www.youtube.com/watch?v=ubsreeqe8hw 

--- Quote End ---  

 

 

 

it didn't help me...can u tell me using coregenerator of Xilinx...
0 Kudos
Altera_Forum
Honored Contributor II
1,115 Views

For help with Xilinx products you need to head to the Xilinx forums

0 Kudos
Altera_Forum
Honored Contributor II
1,115 Views

 

--- Quote Start ---  

it didn't help me...can u tell me using coregenerator of Xilinx... 

--- Quote End ---  

 

 

I am working with Altera devices , you may see the comments of that video, some mentioned resources worked for both devices
0 Kudos
Reply