Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > counting number of reports in the message window within Modelsim

Reply
Thread Tools

counting number of reports in the message window within Modelsim

 
 
G buf thing
Guest
Posts: n/a
 
      07-03-2013
Hi,

I am running a simulation in Modelsim and want to know have to read the number of "report severity warning messages" reported within the simulation. The following format is used within the RTL code: report "CRC fail" severity warning; . The number of these warnings can be viewed in the messagewindow, I wish to be able to read this value within the simulation script to ensure that the value does not change.
The version of Modelsim being used is 5.0c.

Thanks

Jon
 
Reply With Quote
 
 
 
 
Jim Lewis
Guest
Posts: n/a
 
      07-03-2013
I use UNIX utilities such as cygwin or mingw to post process the transcript window.

The following will get you all occurrences of your text:
grep -i "CRC fail"

To get a count pass it to wc:
grep -i "CRC fail" | wc

This will give you three count values, such as 21 168 917
They are lines, words, and characters.
 
Reply With Quote
 
 
 
 
Jim Lewis
Guest
Posts: n/a
 
      07-03-2013
I use UNIX utilities such as cygwin or mingw to post process the transcript file.

The following will get you all occurrences of your text:
grep -i "CRC fail"

To get a count pass it to wc:
grep -i "CRC fail" | wc

This will give you three count values, such as 21 168 917
They are lines, words, and characters.
 
Reply With Quote
 
HT-Lab
Guest
Posts: n/a
 
      07-04-2013
On 03/07/2013 21:02, G buf thing wrote:
> Hi,
>
> I am running a simulation in Modelsim and want to know have to read the number of "report severity warning messages" reported within the simulation. The following format is used within the RTL code: report "CRC fail" severity warning; . The number of these warnings can be viewed in the message window, I wish to be able to read this value within the simulation script to ensure that the value does not change.


Look up the "assertion count" command in the reference manual.

> The version of Modelsim being used is 5.0c.


5.0c?

Hans
www.ht-lab.com


>
> Thanks
>
> Jon
>


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
The node.js Community is Quietly Changing the Face of Open Source Rodrick Brown Python 2 04-17-2013 04:47 PM
Re: The node.js Community is Quietly Changing the Face of Open Source Sven Python 0 04-16-2013 04:41 PM
Re: The node.js Community is Quietly Changing the Face of Open Source Ned Batchelder Python 0 04-16-2013 04:25 PM
Is there a difference between the use of the word montage vscollage Danny D. Digital Photography 8 04-15-2013 02:24 PM
Windows 8 - so bad it's hastening the death of the PC? ~misfit~ NZ Computing 18 04-15-2013 04:15 AM



Advertisments