Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > using event attribute

Thread Tools

using event attribute

eliascm eliascm is offline
Join Date: Jan 2009
Posts: 42
I have the following code in a testbench

while not end_sim loop
if seconds_tp'event then
report integer'image(TO_INTEGER(unsigned(seconds_tp)));
end if;
wait for 100 ns;
end loop;

end_sim is false until the end of the simulation.

seconds_tp is a std_logic_vector that starts at 0 and increments by 1 every simulated second.

The idea is to display the value of simulated seconds elapsed while the simulation is running.

When the simulation is running no value for seconds_tp is displayed.
However, seconds_tp does display correctly on the waveform viewer when the simulation is stopped.

What am I missing here?
Reply With Quote

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
Validation (XHTML 1.0 Transitional): Attribute 'leftmargin' is not a valid attribute of element 'body'. anonymous ASP .Net 1 08-02-2006 08:05 AM
picking value of one attribute based on a child elements attribute? XPath? XML 2 03-06-2006 05:19 AM
Implied instance attribute creation when referencing a class attribute Russell Warren Python 5 01-17-2006 05:07 AM
XSLT: Making attribute to parent attribute Bostonasian XML 1 09-18-2005 07:30 AM
class attribute to instance attribute Donnal Walter Python 4 07-06-2005 04:35 AM