![]() |
|
|
|||||||
![]() |
VHDL - Dumping the contents of an Integer Array.... |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
Hi all,
I trying to debug a piece of code which I have written and I would like to find out the contents of an array. The array is an integer array and I can view the contents of individual individual elements but would like to view the entire contents. I use the ASSERT command to view individual elements but if possible, I would like to be able to dump the entire contents of an array to a file and view it accordingly. Is there away to do this? cheers - Kwaj kwaj |
|
|
|
|
#2 |
|
Posts: n/a
|
kwaj wrote:
> I use the ASSERT command to view individual elements but if possible, I > would like to be able to dump the entire contents of an array to a file > and view it accordingly. > > Is there away to do this? Yes. If you have modelsim, just leaving the mouse arrow over the array waveform will pop up a box with all values in it. If you don't, just add something like this to your testbench: report "array of ints"; dump : for i in these_ints'range loop report integer'image(these_ints(i)); end loop dump; -- Mike Treseler Mike Treseler |
|
|
|
#3 |
|
Posts: n/a
|
I've got model sim...but I am using variables of upto 3000 bits in size. So
might try the other method "Mike Treseler" <> wrote in message news:... > kwaj wrote: > > > I use the ASSERT command to view individual elements but if possible, I > > would like to be able to dump the entire contents of an array to a file > > and view it accordingly. > > > > Is there away to do this? > > Yes. > > If you have modelsim, just leaving the > mouse arrow over the array waveform will > pop up a box with all values in it. > > If you don't, just add something like this > to your testbench: > > report "array of ints"; > dump : for i in these_ints'range loop > report integer'image(these_ints(i)); > end loop dump; > > -- Mike Treseler kwaj |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| constants as of array of integers, for loops | octavsly | Hardware | 0 | 04-25-2009 11:53 AM |
| Array Programme | rits | Software | 2 | 03-04-2009 05:18 PM |
| print all the contents of the iframe | lebohang | The Lounge | 0 | 03-04-2009 07:50 AM |
| How to convert string contain Hex data into integer | asifjavaid | Software | 0 | 09-09-2008 08:50 AM |