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

Reply

VHDL - display message in vhdl

 
Thread Tools Search this Thread
Old 11-28-2007, 01:34 PM   #1
Default display message in vhdl


I have a testbench, in wich i have to send values to inputs of a DUT and recuperate its output and display it wich a process.
my question is that there is a process wich counts the numbers of clock cycles and I have to display a signal value with the exact clock cycle.
the process is :

P1: process(CLOCK)
begin
IF (CLOCK'event AND CLOCK = '0' ) THEN
count <= count +1;
stopwatch <= stopwatch+20;
END IF;
end process P1;
and the display is

Pr: process(count)
begin
if (count < RST_COUNT) and ((count mod 20) = 0) then
report " SIMULATION RESET ACTIVE STATE ... AT CLOCK EDGE : "
& count
severity note;
end if;

end process Pr;
when i compile this, it shows me the error :
ncvhdl_p: *E,OPTYMM (/vobs/MPU_RTLIP/t1xp_z160/generic/bist_ctrl.vhd,121|65): operator argument type mismatch
it means the line : report " SIMULATION RESET ACTIVE STATE ... AT CLOCK EDGE : " & count
the error is about &count.
Do you know how to help me in this ?
thnx


bedrr
bedrr is offline   Reply With Quote
Old 11-28-2007, 05:41 PM   #2
scottcarl
Member
 
Join Date: May 2007
Location: USA
Posts: 51
Send a message via Yahoo to scottcarl
Default
bedrr,

The -& count- statement must be turned into a string before it can be reported. Such as EDGE:" & to_string(count) . This also implies that you have the correct library called out that contains the to_string library.

Scott


scottcarl
scottcarl is offline   Reply With Quote
Old 11-28-2007, 06:25 PM   #3
bedrr
Junior Member
 
Join Date: Nov 2007
Location: morocco
Posts: 5
Default
thanks scott,
during my research with my colleagues i found the solution :
it is to put an image like :
& integer'image(count) this implies a display of the current value inside the message to display.
bedr


bedrr
bedrr is offline   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
How to turn $6 to $16000 in few days of web crawling please@dontreply.net DVD Video 0 02-02-2007 07:25 AM
Sending a message into a newsgroup ninjaboy Software 0 10-26-2006 07:07 PM
Turn $6 into $60000 GARANTEED!!! Zachary Keller DVD Video 2 10-08-2003 09:58 PM
Postal Lottery: Turn $6 into $60,000 in 90 days, GUARANTEED Louis DVD Video 0 09-30-2003 07:26 PM
Re: Panasonic & Pioneer DVD players - time remaining display and black level settings? SloPoke DVD Video 0 08-18-2003 02:40 PM




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