Sign In

Don't have a Xilinx account yet?

  • Choose to receive important news and product information
  • Gain access to special content
  • Personalize your web experience on Xilinx.com

Create Account

Username

Password

Forgot your password?
XClose Panel
Xilinx Home
Reply
Regular Contributor
tusu
Posts: 77
Registered: ‎10-29-2010
0

Store image in Spartan 3e

Dear all

 

I have spartan 3e starter board and edk 11.1.Now i want to store an image in the BRAM of the board,then I need to make some processing,Can anyone suggest me how could I do that.In fact if I get the pixel value from Matlab from that can I fetch that value into the board??

 

any idea plz share how to load a image in spartan 3e

 

regards

Tusu

Super Contributor
heedaf
Posts: 173
Registered: ‎06-25-2008
0

Re: Store image in Spartan 3e

Why specifically the BRAM?  Why not in memory?  Just have Matlab put the pixels into an array and then just store in the FPGA that way. 

Regular Contributor
tusu
Posts: 77
Registered: ‎10-29-2010
0

Re: Store image in Spartan 3e

thanks for reply

 

now if I have the pixel value from matlab and stored in an array then hoe can i dump that in the board,I have to use Rs232 port some recvbyte function...is it that way???

Super Contributor
heedaf
Posts: 173
Registered: ‎06-25-2008
0

Re: Store image in Spartan 3e

You would just transfer the array out to the RS232 port.  You just need to know how the image is stored in the array so you recreate it in the same way on the other end.

Regular Contributor
tusu
Posts: 77
Registered: ‎10-29-2010
0

Re: Store image in Spartan 3e

hello

 

as you told me,i have matlab where i used imread function and stores the works[ace result in a .mat file?now  how could i send this via edk?

 

Is there any alternative way to store the image in an array??

Super Contributor
heedaf
Posts: 173
Registered: ‎06-25-2008
0

Re: Store image in Spartan 3e

What do you want to do with the FPGA?  How do you plan on getting the data to from matlab to the FPGA?

Regular Contributor
tusu
Posts: 77
Registered: ‎10-29-2010
0

Re: Store image in Spartan 3e

I want to store the image on any memory  of FPGA, and after some processing I want to again retrieve the image data form FPGA

 

but for now I just want to store it in FPGA using Microblaze and EDK,How could I do that?How to binarize the image and store it in FPGA?

Super Contributor
heedaf
Posts: 173
Registered: ‎06-25-2008
0

Re: Store image in Spartan 3e

Do you want to use rs232, USB, Ethernet, etc.?  How big is the picture, if it is small just send it out a byte at a time.

Regular Contributor
tusu
Posts: 77
Registered: ‎10-29-2010
0

Re: Store image in Spartan 3e

yes I want to use RS232,I have EDK platform where I could get data via RS232 using Xuartlite_RecvByte,,,,Now how to take the image and store it in Spartan 3e,The size of image is 73 KB,

 

Guide me how to store it in FPGA

 

regards

Super Contributor
heedaf
Posts: 173
Registered: ‎06-25-2008
0

Re: Store image in Spartan 3e

Just store the vairable in the array and SDK will keep track of it for you.  There is a way of storing pages/files but I've never done it.  I've just used 2-dimensional arrays to store the x,y coordinates with the data.