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 :
IF (CLOCK'event AND CLOCK = '0' ) THEN
count <= count +1;
stopwatch <= stopwatch+20;
end process P1;
and the display is
if (count < RST_COUNT) and ((count mod 20) = 0) then
report " SIMULATION RESET ACTIVE STATE ... AT CLOCK EDGE : "
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 ?
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.
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.
|All times are GMT. The time now is 08:33 AM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.