Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

want to save a string in memory and then transmit on serial

Status
Not open for further replies.

j hemangini

Member level 1
Joined
Jul 21, 2008
Messages
35
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
1,573
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.
 

j_andr

Full Member level 4
Joined
Mar 30, 2008
Messages
208
Helped
59
Reputation
118
Reaction score
37
Trophy points
1,308
Location
europe
Activity points
2,491
Re: want to save a string in memory and then transmit on ser

j hemangini said:
I want to save a string/.../
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;
---
 

j hemangini

Member level 1
Joined
Jul 21, 2008
Messages
35
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
1,573
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.
 

avimit

Banned
Joined
Nov 16, 2005
Messages
413
Helped
91
Reputation
182
Reaction score
23
Trophy points
1,298
Location
Fleet, UK
Activity points
0
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
 

j hemangini

Member level 1
Joined
Jul 21, 2008
Messages
35
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
1,573
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?
 

zape

Full Member level 2
Joined
Jul 10, 2003
Messages
120
Helped
14
Reputation
28
Reaction score
5
Trophy points
1,298
Location
Spain
Activity points
1,043
Reading your questions it looks like if youwer not familiar with FPGAs. FPGAs are hardware not SW.

What type of serial comunicaton do you want to implement? Synchronous, asynchronous?
 

ihearme

Newbie level 4
Joined
Jul 28, 2008
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,312

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top