Find an instance path from within a moduleing

J

John Eaton

Guest
I have some modules that monitor their states and will print out
error messages if something illegal happens. How can I also have
the mesage print out its instance path? IE:


23456780 ps Lock up error in chip.chip_core.foo.sm1



John Eaton



the reply address is a spam sink use first.last@hp.com instead
 
John Eaton <johne@hpvcljte.vcd.hp.com> writes:

I have some modules that monitor their states and will print out
error messages if something illegal happens. How can I also have
the mesage print out its instance path? IE:


23456780 ps Lock up error in chip.chip_core.foo.sm1
$display("%t Lock up error in %m",$time);

Petter
--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
 
John,
Try using %m within your $display, it does exactly what you have asked for.

HTH,
Ajeetha
http://www.noveldv.com
Co-Author: Using PSL/SUGAR for Formal and Dynamic Verification 2nd Edition.

John Eaton <johne@hpvcljte.vcd.hp.com> wrote in message news:<c5elga$h41$1@news.vcd.hp.com>...
I have some modules that monitor their states and will print out
error messages if something illegal happens. How can I also have
the mesage print out its instance path? IE:


23456780 ps Lock up error in chip.chip_core.foo.sm1



John Eaton



the reply address is a spam sink use first.last@hp.com instead
 
Petter Gustad <newsmailcomp6@gustad.com> wrote:
: John Eaton <johne@hpvcljte.vcd.hp.com> writes:

:> I have some modules that monitor their states and will print out
:> error messages if something illegal happens. How can I also have
:> the mesage print out its instance path? IE:
:>
:>
:> 23456780 ps Lock up error in chip.chip_core.foo.sm1

: $display("%t Lock up error in %m",$time);

: Petter
: --
: A: Because it messes up the order in which people normally read text.
: Q: Why is top-posting such a bad thing?
: A: Top-posting.
: Q: What is the most annoying thing on usenet and in e-mail?


Thanks !!
 

Welcome to EDABoard.com

Sponsor

Back
Top