Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > Dumping the contents of an Integer Array....

Reply
Thread Tools

Dumping the contents of an Integer Array....

 
 
kwaj
Guest
Posts: n/a
 
      02-26-2004
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


 
Reply With Quote
 
 
 
 
Mike Treseler
Guest
Posts: n/a
 
      02-26-2004
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
 
Reply With Quote
 
 
 
 
kwaj
Guest
Posts: n/a
 
      02-26-2004
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



 
Reply With Quote
 
 
 
Reply

Thread Tools

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding contents on yaml file without overwriting actual contents Kamarulnizam Rahim Ruby 4 01-28-2011 09:10 AM
if innerHTML used twice then it replaces the contents i want it to display all the contents virendra.amritkar@gmail.com Javascript 0 06-29-2007 08:13 AM
How to display binary file contents if it is stored in an integer array? loudking C Programming 9 05-01-2007 05:26 PM
CType(x,Integer) vs. Integer.Parse(x) =?Utf-8?B?Sm9l?= ASP .Net 7 02-07-2006 02:30 AM
Can I restrict both attribute contents and element contents in schema Don Adams XML 1 03-05-2004 12:48 PM



Advertisments
 



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 47 48 49 50 51 52 53 54 55 56 57