Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

VHDL - How to save line in VHDL?

 
Thread Tools Search this Thread
Old 06-26-2005, 02:06 PM   #1
Default How to save line in VHDL?


Another problem:

I have one part of the data inside my procedure and those data I want to
save into one line in OUTFILE .
The other part is in main process (where this procedure is calling).
How can I save both parts in one line?
VHDL doesn't have pointers to strings ect...

Is it possible to put data from procedure into a string and add to line in
the main process?

Paul




magik
  Reply With Quote
Old 06-26-2005, 02:31 PM   #2
Ajeetha
 
Posts: n/a
Default Re: How to save line in VHDL?
Hi Paul,
Don't clearly understand your exact issue, but it looks like
with concatenation you should be able to do this. Can you show a sample
piece of code? Idea would be, to pass the part of data inside your
procedure to the calling process and then concatenate that with the
main data and print.

HTH
Aji
http://www.noveldv.com



Ajeetha
  Reply With Quote
Old 06-26-2005, 02:47 PM   #3
magik
 
Posts: n/a
Default Re: How to save line in VHDL?
The procedure reads data from 8-bit vector (in real it is more complicated
and takes about 200lines of code so it will be not very nice if I paste 2
times the same code into main process - that's why I decided for procedure)

In the main process I have 2 inputs A and B and depending from them I want
to save data from procedure in one of two places is my out file:


---------------------------------
| A | B | data A | data B |
| 1 | | a2 12 32 | | <-- when A is pressed
| | 1 | | 34 aa 45 | <-- when B is pressed
(data in columns "dataA/B" is from procedure)

If I will not find any good solution, I will have to decide what is better:

1 copy procedure into 2 places in main process
or
2. copy logic from main process into the procedure...

(the second will take less lines)


Paul







magik
  Reply With Quote
Old 06-26-2005, 09:58 PM   #4
info_
 
Posts: n/a
Default Re: How to save line in VHDL?
magik wrote:
> Another problem:
>
> I have one part of the data inside my procedure and those data I want to
> save into one line in OUTFILE .
> The other part is in main process (where this procedure is calling).
> How can I save both parts in one line?


You're unclear.
Maybe you didn't realize that you can write to a shared buffer (line)
and that no Cr is appended until you writeline ?

> VHDL doesn't have pointers to strings ect...


Yes ! VHDL does. (what do you think type "line" is ?)

I think it's a good idea you dig a bit more in the language.
Good investment if I may suggest
Hint : you could start with the line type.


Bert Cuzeau.


info_
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to execute an external software from VHDL? And how to interface VHDL with JAVA? becool_nikks Software 0 03-06-2009 07:08 PM
SONY DVD RW DW-G120A SOMETIMES FAILS...... atlantic965 DVD Video 0 06-18-2006 10:36 PM
problems backing up dvds Lawrence Traub DVD Video 11 09-27-2005 07:34 PM
Burn process failed - help! Log file posted for help troubleshooting Michael Mason DVD Video 1 08-16-2004 09:24 PM
Pioneer A05 Problems Bill Stock DVD Video 8 11-28-2003 05:03 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46