Assertion Violation Report Strings inc. Signal Values

Status
Not open for further replies.

daveob

Newbie level 2
Joined
Feb 5, 2010
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
UK
Activity points
1,290
I'd like to include values in the Report strings of my testbench assertion violation checks. Something like this:

Code:
	signal min_acq_time : TIME := 500 ns;

	assert (cnv'last_event >= min_acq_time)
		report "Aquisition time (" & cnv'last_event & ") is less than minimum acquisition time (" & min_acq_time & ")."
		severity warning;

Is it possible to convert STD_LOGIC signal values or TIME into a string to append to the Report string?

Thanks all.
 


    daveob

    Points: 2
    Helpful Answer Positive Rating
Thanks mate, thats perfect.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…