Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Valued Contributor III
1,252 Views

Vhdl code to read/ write from sram

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
Highlighted
Valued Contributor III
2 Views

Re: Vhdl code to read/ write from sram

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

0 Kudos
Highlighted
Valued Contributor III
2 Views

Re: Vhdl code to read/ write from sram

Have you attempted this yourself? 

What type of ram - internal or external?
0 Kudos
Highlighted
Valued Contributor III
2 Views

Re: Vhdl code to read/ write from sram

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

0 Kudos
Highlighted
Valued Contributor III
2 Views

Re: Vhdl code to read/ write from sram

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
Highlighted
Valued Contributor III
2 Views

Re: Vhdl code to read/ write from sram

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
Highlighted
Valued Contributor III
2 Views

Re: Vhdl code to read/ write from sram

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
Highlighted
Valued Contributor III
2 Views

Re: Vhdl code to read/ write from sram

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.
Highlighted
Valued Contributor III
2 Views

Re: Vhdl code to read/ write from sram

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
Highlighted
Valued Contributor III
2 Views

Re: Vhdl code to read/ write from sram

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.

Highlighted
Valued Contributor III
2 Views

Re: Vhdl code to read/ write from sram

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
Highlighted
Valued Contributor III
2 Views

Re: Vhdl code to read/ write from sram

did u get the code for accessing image ??

0 Kudos
Highlighted
Valued Contributor III
2 Views

Re: Vhdl code to read/ write from sram

 

--- 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
Highlighted
Valued Contributor III
2 Views

Re: Vhdl code to read/ write from sram

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

0 Kudos
Highlighted
Valued Contributor III
2 Views

Re: Vhdl code to read/ write from sram

 

--- 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
Highlighted
Valued Contributor III
2 Views

Re: Vhdl code to read/ write from sram

 

--- 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
Highlighted
Valued Contributor III
2 Views

Re: Vhdl code to read/ write from sram

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

0 Kudos
Highlighted
Valued Contributor III
2 Views

Re: Vhdl code to read/ write from sram

 

--- 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