I want to save a string let "I am testing serial" on a memory address and then read each character one by one from that memory address.
So please tell me how can i define a memory address ,and can save this string on that address.
thank you.
I'm not sure if I understand the requirement correctly ...
if you mean:
"i want to store 4/8/16/? bytes in a memory as a
parallel word and then read them out byte by byte"
you can:
- create a mux at the output of the memory;
- push byte by byte of your test word to a fifo using a mux
at the input;
---
Re: want to save a string in memory and then transmit on ser
But firstly how can i save this sentence (I am testing serial) in the memory . Means how can i write it in vhdl code. I have spartan-3a starter kit on which i have to do this work.
Thank you.
Re: want to save a string in memory and then transmit on ser
You will have to save a binary code corresponding to each character in your sentence in a memory. Then use VHDL model to read the memory and transmitt it. For strings using 'ascii' codes as binary codes is a good idea.
kr,
Avi
Re: want to save a string in memory and then transmit on ser
Ok.
Now can u tell me how can i define an array , and how can i access byte by byte from that arry.
If i want to define an array having values[1,2,3,4,5] etc ,and want to access each values one by one then how can i write it in vhdl code?