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

Reply

VHDL - Dumping the contents of an Integer Array....

 
Thread Tools Search this Thread
Old 02-26-2004, 12:01 AM   #1
Default Dumping the contents of an Integer Array....


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
  Reply With Quote
Old 02-26-2004, 06:47 PM   #2
Mike Treseler
 
Posts: n/a
Default Re: Dumping the contents of an Integer Array....
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
  Reply With Quote
Old 02-26-2004, 09:53 PM   #3
kwaj
 
Posts: n/a
Default Re: Dumping the contents of an Integer Array....
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
  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
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




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