Re: verbosity level

From: <alan.fitch@doulos.com>
Date: Thu Dec 02 2010 - 08:15:21 PST

> All,
>
> Following yesterday's telecon, here is the text of the Cadence proposal
> for verbosity control.
>
> Comments please.
>
> John A
>

I like the idea of being able to control verbosity.

A lot of enumerated types use the technique of defining a last entry, e.g.

enum sc_verbosity {
SC_NONE = 0,
SC_LOW = 100,
SC_MEDIUM = 200,
SC_HIGH = 300,
SC_FULL = 400,
SC_DEBUG = 500,
SC_IGNORE_VERBOSITY = 9999 // or whatever

};

You can then insert extra verbosity levels at some future date.

You could modify sc_report to

static void report(sc_severity,
const char* msg_type,
const char* msg,
// int verbosity,
const char* file,
int line,
int verbosity = SC_IGNORE_VERBOSITY
);

so the last parameter is optional.

What do people think?

Alan

<snip>

-- 
Alan Fitch
Senior Consultant
Doulos - Developing Design Know-how
VHDL * Verilog * SystemVerilog * SystemC * PSL * Perl * Tcl/Tk * Project Services
Doulos Ltd. Church Hatch, 22 Market Place, Ringwood, Hampshire, BH24 1AW, UK
Tel:  + 44 (0)1425 471223                       Email: alan.fitch@doulos.com 
Fax:  +44 (0)1425 471573                        http://www.doulos.com
--------------------------------------------------------------------------------
Doulos Ltd is registered in England and Wales with company no. 3723454
Its registered office is 4 Brackley Close, Bournemouth International Airport,
 Christchurch, BH23 6SE, UK. 
This message (and associated files) may contain information that is confidential, 
proprietary, privileged, or subject to copyright. It is intended solely for the use
of the individual to whom it is addressed and others authorised to receive it. If
you have received this email in error, please notify the sender and delete all
copies. This message may contain personal views which are not the views of
Doulos, unless specifically stated.
-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Thu Dec 2 08:16:06 2010

This archive was generated by hypermail 2.1.8 : Thu Dec 02 2010 - 08:16:07 PST