![]() |
|
|
|
#1 |
|
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 |
|
|
|
|
#2 |
|
Posts: n/a
|
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 |
|
|
|
#3 |
|
Posts: n/a
|
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 |
|
|
|
#4 |
|
Posts: n/a
|
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_ |
|
![]() |
| Thread Tools | Search this Thread |
|
|
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 |