display message in vhdl

Joined
Nov 22, 2007
Messages
5
Reaction score
0
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
 
Joined
May 4, 2007
Messages
49
Reaction score
0
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
 
Joined
Nov 22, 2007
Messages
5
Reaction score
0
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top