![]() |
|
|
|
#1 |
|
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 |
|
|
|
|
|
|
#2 |
|
Member
|
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 |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Nov 2007
Location: morocco
Posts: 5
|
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 |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
|
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 |