vmm_log Class Reference

Collaboration diagram for vmm_log:

Collaboration graph
[legend]

List of all members.

Public Types

enum  symbols_e { DEFAULT = -1, UNCHANGED = -2 }
enum  types_e {
  FAILURE_TYP = 0x0001, NOTE_TYP = 0x0002, DEBUG_TYP = 0x0004, REPORT_TYP = 0x0008,
  NOTIFY_TYP = 0x0010, TIMING_TYP = 0x0020, XHANDLING_TYP = 0x0040, PROTOCOL_TYP = 0x0080,
  TRANSACTION_TYP = 0x0100, COMMAND_TYP = 0x0200, CYCLE_TYP = 0x0400, USER_TYP_0 = 0x0800,
  USER_TYP_1 = 0x1000, USER_TYP_2 = 0x2000, INTERNAL_TYP = 0x4000, DEFAULT_TYP = -1,
  ALL_TYPS = 0xFFFF
}
enum  severities_e {
  FATAL_SEV = 0x0001, ERROR_SEV = 0x0002, WARNING_SEV = 0x0004, NORMAL_SEV = 0x0008,
  TRACE_SEV = 0x0010, DEBUG_SEV = 0x0020, VERBOSE_SEV = 0x0040, HIDDEN_SEV = 0x0080,
  IGNORE_SEV = 0x0100, DEFAULT_SEV = -1, ALL_SEVS = 0xFFFF
}
enum  handling_e {
  CONTINUE = 0x0001, COUNT_ERROR = 0x0002, DEBUGGER = 0x0004, DUMP_STACK = 0x0008,
  STOP_PROMPT = 0x0010, ABORT_SIM = 0x0020, IGNORE = 0x0040, DEFAULT_HANDLING = -1
}
enum  stdout_e { STDOUT = 0x8000_0001 }

Public Member Functions

 new (string name, string inst, vmm_log under=null)
virtual void is_above (vmm_log log)
virtual vmm_log copy (vmm_log to=null)
virtual void set_name (string name)
virtual string get_name ()
virtual void set_instance (string inst)
virtual string get_instance ()
void reset (string name="/./", string inst="/./", bit recurse=0)
vmm_log for_each ()
virtual void list (string name="/./", string inst="/./", bit recurse=0)
virtual void display (string prefix=" ")
virtual string psdisplay (string prefix=" ")
virtual void kill ()
virtual vmm_log_format set_format (vmm_log_format fmt)
virtual string set_typ_image (int typ, string image)
virtual string set_sev_image (int severity, string image)
string typ_image (int typ)
string sev_image (int severity)
string handling_image (int handling)
virtual void report (string name="/./", string inst="/./", bit recurse=0)
virtual bit start_msg (int typ, int severity=DEFAULT_SEV)
virtual bit text (string msg=" ")
virtual void end_msg ()
virtual void enable_types (int typs, string name=" ", string inst=" ", bit recursive=0)
virtual void disable_types (int typs, string name=" ", string inst=" ", bit recursive=0)
virtual int modify (string name=" ", string inst=" ", bit recursive=0, int typ=ALL_TYPS, int severity=ALL_SEVS, string text=" ", int new_typ=UNCHANGED, int new_severity=UNCHANGED, int handling=UNCHANGED)
virtual void unmodify (int modification_id=-1, string name=" ", string inst=" ", bit recursive=0)
virtual void set_verbosity (int severity, string name=" ", string inst=" ", bit recursive=0)
int get_verbosity ()
virtual void log_start (int file, string name=" ", string inst=" ", bit recurse=0)
virtual void log_stop (int file, string name=" ", string inst=" ", bit recurse=0)
virtual void stop_after_n_errors (int n)
virtual int get_message_count (int severity=ALL_SEVS, string name=" ", string inst=" ", bit recurse=0)
virtual void wait_for_msg (string name=" ", string inst=" ", bit recurse=0, int typs=ALL_TYPS, int severity=ALL_SEVS, string text=" ", logic issued=0bx, ref vmm_log_msg msg)
virtual int create_watchpoint (int typs=ALL_TYPS, int severity=ALL_SEVS, string text=" ", logic issued=0bx)
virtual void add_watchpoint (int watchpoint_id, string name=" ", string inst=" ", bit recurse=0)
virtual void remove_watchpoint (int watchpoint_id=-1, string name=" ", string inst=" ", bit recurse=0)
virtual void wait_for_watchpoint (int watchpoint_id, ref vmm_log_msg msg)
virtual void prepend_callback (vmm_log_callbacks cb)
virtual void append_callback (vmm_log_callbacks cb)
virtual void unregister_callback (vmm_log_callbacks cb)

Public Attributes

vmm_log below [$]

Private Member Functions

int default_handling (int severity)
void flush_msg ()
void promote ()
void filter ()
void notify ()

Private Attributes

string name
string inst
int n_msg [*]
int n_demoted [*]
vmm_log_msg msg
string msg_txt [$]
int modifier_ids [$]
int has_text_modifiers
int watchpoint_ids [$]
int enabled_typs
int log_lvl
int fp [$]
int is_self
bit is_all
int visited = 0

Static Private Attributes

static int error_count = 0
static int error_limit = 10
static string msg_format [$]
static string prefix
static int dflt_lvl = NORMAL_SEV
static int force_lvl = DEFAULT_SEV
static bit plus_debug
static int type_list [$]
static string type_images [*]
static int sev_list [$]
static string sev_images [*]
static vmm_log_modifier modifier_cache [*]
static vmm_log_watchpoint watchpoint_cache [*]
static vmm_log_format fmt = new
static int in_callbacks = 0
static vmm_log_callbacks callbacks [$]
static vmm_log known [$]
static int recurse_id = 0
static string pattern [2]
static bit is_pattern [2]
static int known_idx = 0
static int recurse
static vmm_log_below_iter recurse_stack [$]


Detailed Description

Definition at line 638 of file std_lib/vmm.sv.


Member Enumeration Documentation

Enumerator:
DEFAULT 
UNCHANGED 

Definition at line 647 of file std_lib/vmm.sv.

Enumerator:
FAILURE_TYP 
NOTE_TYP 
DEBUG_TYP 
REPORT_TYP 
NOTIFY_TYP 
TIMING_TYP 
XHANDLING_TYP 
PROTOCOL_TYP 
TRANSACTION_TYP 
COMMAND_TYP 
CYCLE_TYP 
USER_TYP_0 
USER_TYP_1 
USER_TYP_2 
INTERNAL_TYP 
DEFAULT_TYP 
ALL_TYPS 

Definition at line 656 of file std_lib/vmm.sv.

Enumerator:
FATAL_SEV 
ERROR_SEV 
WARNING_SEV 
NORMAL_SEV 
TRACE_SEV 
DEBUG_SEV 
VERBOSE_SEV 
HIDDEN_SEV 
IGNORE_SEV 
DEFAULT_SEV 
ALL_SEVS 

Definition at line 678 of file std_lib/vmm.sv.

Enumerator:
CONTINUE 
COUNT_ERROR 
DEBUGGER 
DUMP_STACK 
STOP_PROMPT 
ABORT_SIM 
IGNORE 
DEFAULT_HANDLING 

Definition at line 694 of file std_lib/vmm.sv.

Enumerator:
STDOUT 

Definition at line 707 of file std_lib/vmm.sv.


Member Function Documentation

vmm_log::new ( string  name,
string  inst,
vmm_log  under = null 
)

Definition at line 311 of file vmm_log.sv.

void vmm_log::is_above ( vmm_log  log  )  [virtual]

Definition at line 505 of file vmm_log.sv.

vmm_log vmm_log::copy ( vmm_log  to = null  )  [virtual]

Definition at line 513 of file vmm_log.sv.

void vmm_log::set_name ( string  name  )  [virtual]

Definition at line 528 of file vmm_log.sv.

string vmm_log::get_name (  )  [virtual]

Definition at line 533 of file vmm_log.sv.

void vmm_log::set_instance ( string  inst  )  [virtual]

Definition at line 538 of file vmm_log.sv.

string vmm_log::get_instance (  )  [virtual]

Definition at line 543 of file vmm_log.sv.

void vmm_log::reset ( string  name = "/./",
string  inst = "/./",
bit  recurse = 0 
)

Definition at line 171 of file vmm_log.sv.

vmm_log vmm_log::for_each (  ) 

Definition at line 246 of file vmm_log.sv.

void vmm_log::list ( string  name = "/./",
string  inst = "/./",
bit  recurse = 0 
) [virtual]

Definition at line 548 of file vmm_log.sv.

void vmm_log::display ( string  prefix = " "  )  [virtual]

Definition at line 561 of file vmm_log.sv.

string vmm_log::psdisplay ( string  prefix = " "  )  [virtual]

Definition at line 566 of file vmm_log.sv.

void vmm_log::kill (  )  [virtual]

Definition at line 579 of file vmm_log.sv.

vmm_log_format vmm_log::set_format ( vmm_log_format  fmt  )  [virtual]

Definition at line 586 of file vmm_log.sv.

string vmm_log::set_typ_image ( int  typ,
string  image 
) [virtual]

Definition at line 597 of file vmm_log.sv.

string vmm_log::set_sev_image ( int  severity,
string  image 
) [virtual]

Definition at line 639 of file vmm_log.sv.

string vmm_log::typ_image ( int  typ  ) 

Definition at line 612 of file vmm_log.sv.

string vmm_log::sev_image ( int  severity  ) 

Definition at line 654 of file vmm_log.sv.

string vmm_log::handling_image ( int  handling  ) 

Definition at line 684 of file vmm_log.sv.

int vmm_log::default_handling ( int  severity  )  [private]

Definition at line 700 of file vmm_log.sv.

void vmm_log::report ( string  name = "/./",
string  inst = "/./",
bit  recurse = 0 
) [virtual]

Definition at line 709 of file vmm_log.sv.

bit vmm_log::start_msg ( int  typ,
int  severity = DEFAULT_SEV 
) [virtual]

Definition at line 737 of file vmm_log.sv.

bit vmm_log::text ( string  msg = " "  )  [virtual]

Definition at line 817 of file vmm_log.sv.

void vmm_log::end_msg (  )  [virtual]

Definition at line 837 of file vmm_log.sv.

void vmm_log::flush_msg (  )  [private]

Definition at line 904 of file vmm_log.sv.

void vmm_log::enable_types ( int  typs,
string  name = " ",
string  inst = " ",
bit  recursive = 0 
) [virtual]

Definition at line 983 of file vmm_log.sv.

void vmm_log::disable_types ( int  typs,
string  name = " ",
string  inst = " ",
bit  recursive = 0 
) [virtual]

Definition at line 1003 of file vmm_log.sv.

int vmm_log::modify ( string  name = " ",
string  inst = " ",
bit  recursive = 0,
int  typ = ALL_TYPS,
int  severity = ALL_SEVS,
string  text = " ",
int  new_typ = UNCHANGED,
int  new_severity = UNCHANGED,
int  handling = UNCHANGED 
) [virtual]

Definition at line 1027 of file vmm_log.sv.

void vmm_log::unmodify ( int  modification_id = -1,
string  name = " ",
string  inst = " ",
bit  recursive = 0 
) [virtual]

Definition at line 1083 of file vmm_log.sv.

void vmm_log::promote (  )  [private]

Definition at line 1138 of file vmm_log.sv.

void vmm_log::filter (  )  [private]

Definition at line 1200 of file vmm_log.sv.

void vmm_log::notify (  )  [private]

Definition at line 1218 of file vmm_log.sv.

void vmm_log::set_verbosity ( int  severity,
string  name = " ",
string  inst = " ",
bit  recursive = 0 
) [virtual]

Definition at line 1258 of file vmm_log.sv.

int vmm_log::get_verbosity (  ) 

Definition at line 1276 of file vmm_log.sv.

void vmm_log::log_start ( int  file,
string  name = " ",
string  inst = " ",
bit  recurse = 0 
) [virtual]

Definition at line 1281 of file vmm_log.sv.

void vmm_log::log_stop ( int  file,
string  name = " ",
string  inst = " ",
bit  recurse = 0 
) [virtual]

Definition at line 1302 of file vmm_log.sv.

void vmm_log::stop_after_n_errors ( int  n  )  [virtual]

Definition at line 1321 of file vmm_log.sv.

int vmm_log::get_message_count ( int  severity = ALL_SEVS,
string  name = " ",
string  inst = " ",
bit  recurse = 0 
) [virtual]

Definition at line 1326 of file vmm_log.sv.

void vmm_log::wait_for_msg ( string  name = " ",
string  inst = " ",
bit  recurse = 0,
int  typs = ALL_TYPS,
int  severity = ALL_SEVS,
string  text = " ",
logic  issued = 0bx,
ref vmm_log_msg  msg 
) [virtual]

Definition at line 1348 of file vmm_log.sv.

int vmm_log::create_watchpoint ( int  typs = ALL_TYPS,
int  severity = ALL_SEVS,
string  text = " ",
logic  issued = 0bx 
) [virtual]

Definition at line 1365 of file vmm_log.sv.

void vmm_log::add_watchpoint ( int  watchpoint_id,
string  name = " ",
string  inst = " ",
bit  recurse = 0 
) [virtual]

Definition at line 1392 of file vmm_log.sv.

void vmm_log::remove_watchpoint ( int  watchpoint_id = -1,
string  name = " ",
string  inst = " ",
bit  recurse = 0 
) [virtual]

Definition at line 1416 of file vmm_log.sv.

void vmm_log::wait_for_watchpoint ( int  watchpoint_id,
ref vmm_log_msg  msg 
) [virtual]

Definition at line 1446 of file vmm_log.sv.

void vmm_log::prepend_callback ( vmm_log_callbacks  cb  )  [virtual]

Definition at line 1464 of file vmm_log.sv.

void vmm_log::append_callback ( vmm_log_callbacks  cb  )  [virtual]

Definition at line 1481 of file vmm_log.sv.

void vmm_log::unregister_callback ( vmm_log_callbacks  cb  )  [virtual]

Definition at line 1498 of file vmm_log.sv.


Member Data Documentation

int vmm_log::error_count = 0 [static, private]

Definition at line 712 of file std_lib/vmm.sv.

int vmm_log::error_limit = 10 [static, private]

Definition at line 713 of file std_lib/vmm.sv.

string vmm_log::msg_format[$] [static, private]

Definition at line 714 of file std_lib/vmm.sv.

string vmm_log::prefix [static, private]

Definition at line 715 of file std_lib/vmm.sv.

int vmm_log::dflt_lvl = NORMAL_SEV [static, private]

Definition at line 720 of file std_lib/vmm.sv.

int vmm_log::force_lvl = DEFAULT_SEV [static, private]

Definition at line 721 of file std_lib/vmm.sv.

bit vmm_log::plus_debug [static, private]

Definition at line 722 of file std_lib/vmm.sv.

string vmm_log::name [private]

Definition at line 724 of file std_lib/vmm.sv.

string vmm_log::inst [private]

Definition at line 725 of file std_lib/vmm.sv.

int vmm_log::n_msg[*] [private]

Definition at line 727 of file std_lib/vmm.sv.

int vmm_log::n_demoted[*] [private]

Definition at line 728 of file std_lib/vmm.sv.

Definition at line 733 of file std_lib/vmm.sv.

string vmm_log::msg_txt[$] [private]

Definition at line 734 of file std_lib/vmm.sv.

int vmm_log::type_list[$] [static, private]

Definition at line 736 of file std_lib/vmm.sv.

string vmm_log::type_images[*] [static, private]

Definition at line 737 of file std_lib/vmm.sv.

int vmm_log::sev_list[$] [static, private]

Definition at line 739 of file std_lib/vmm.sv.

string vmm_log::sev_images[*] [static, private]

Definition at line 740 of file std_lib/vmm.sv.

Definition at line 742 of file std_lib/vmm.sv.

int vmm_log::modifier_ids[$] [private]

Definition at line 743 of file std_lib/vmm.sv.

Definition at line 744 of file std_lib/vmm.sv.

Definition at line 746 of file std_lib/vmm.sv.

int vmm_log::watchpoint_ids[$] [private]

Definition at line 747 of file std_lib/vmm.sv.

int vmm_log::enabled_typs [private]

Definition at line 749 of file std_lib/vmm.sv.

int vmm_log::log_lvl [private]

Definition at line 750 of file std_lib/vmm.sv.

vmm_log_format vmm_log::fmt = new [static, private]

Definition at line 755 of file std_lib/vmm.sv.

int vmm_log::in_callbacks = 0 [static, private]

Definition at line 756 of file std_lib/vmm.sv.

vmm_log_callbacks vmm_log::callbacks[$] [static, private]

Definition at line 757 of file std_lib/vmm.sv.

int vmm_log::fp[$] [private]

Definition at line 762 of file std_lib/vmm.sv.

int vmm_log::is_self [private]

Definition at line 767 of file std_lib/vmm.sv.

bit vmm_log::is_all [private]

Definition at line 768 of file std_lib/vmm.sv.

vmm_log vmm_log::known[$] [static, private]

Definition at line 769 of file std_lib/vmm.sv.

Definition at line 771 of file std_lib/vmm.sv.

int vmm_log::recurse_id = 0 [static, private]

Definition at line 772 of file std_lib/vmm.sv.

int vmm_log::visited = 0 [private]

Definition at line 773 of file std_lib/vmm.sv.

string vmm_log::pattern[2] [static, private]

Definition at line 775 of file std_lib/vmm.sv.

bit vmm_log::is_pattern[2] [static, private]

Definition at line 776 of file std_lib/vmm.sv.

int vmm_log::known_idx = 0 [static, private]

Definition at line 777 of file std_lib/vmm.sv.

int vmm_log::recurse [static, private]

Definition at line 778 of file std_lib/vmm.sv.

Definition at line 779 of file std_lib/vmm.sv.


The documentation for this class was generated from the following files:

Intelligent Design Verification
Intelligent Design Verification
Project: VMM, Revision: 1.0.1
Copyright (c) 2008 Intelligent Design Verification.
Permission is granted to copy, distribute and/or modify this docu