Skip Nav
Home » Forums » SystemC Forum

Icon - KMLM List KMLM List

View email archives for the history of this mailing list.

List Home All Archives Dates Threads Authors Subjects
systemc-forum - RE: [Systemc-forum] warnings....... Message Thread: Previous | Next
  • To: "Asif CN" <asifcn@xxxxxxxxx>, <systemc-forum@xxxxxxxxxxx>
  • From: Stéphane Guntz <guntz@xxxxxxxxxxxx>
  • Date: Wed, 3 Apr 2002 17:34:39 +0200
Send Email to systemc-forum@osci.kavi.com:
Send new message
Reply to this message
Hi, 
sc_logic can have four different values: X, Z, 0 or 1. If you're trying
to convert an sc_logic, which has a value of X or Z, into a boolean, you
will have an error, and that is why you have a warning, telling you that
you could possibly encounter problems during your conversion.
 
In your  case, your program executes well because your sc_logic values
are certainly always 0 or 1. Have a look at the user guide for more
informations about systemC data types.
 
For the last warning ("Default VCD time step"), check on previous mails
on the forum (look at the "trace timescale" thread), for the
"sc_set_vcd_time_unit" function, to select default vcd time. 
 
Hope this helps,
 

------------------------------------------------------- 
Stéphane GUNTZ 
PROSILOG 
8 rue Traversière 
95000 Cergy Préfecture 
FRANCE 
www.prosilog.com 

Tel: 00 33 (0)1 34 25 54 54 
Fax: 00 33 (0)1 34 25 54 55 
------------------------------------------------------- 

-----Message d'origine-----
De : Asif CN [mailto:asifcn@xxxxxxxxx]
Envoyé : mercredi 3 avril 2002 15:22
À : systemc-forum@xxxxxxxxxxx
Objet : [Systemc-forum] warnings.......



 hi all,

while i am executing the .exe file i could get the following
"warnings"...

will these make any problem with my design?? but i'm getting the output
as desired...

kindly comment on this please...

thanks in advance

asif

=============================

              SystemC 2.0 --- Mar 11 2002 11:18:42
        Copyright (c) 1996-2001 by all Contributors
                    ALL RIGHTS RESERVED

WARNING: (E9005) SC_ERR_SC_LOGIC : sc_logic value `X' cannot be
converted to bool
 - c:\systemc\systemc-2.0\src\systemc\datatypes\bit\sc_logic.cpp: 49

WARNING: (E9005) SC_ERR_SC_LOGIC : sc_logic value `X' cannot be
converted to bool
 - c:\systemc\systemc-2.0\src\systemc\datatypes\bit\sc_logic.cpp: 49

WARNING: (E9005) SC_ERR_SC_LOGIC : sc_logic value `X' cannot be
converted to bool
 - c:\systemc\systemc-2.0\src\systemc\datatypes\bit\sc_logic.cpp: 49

WARNING: (E9005) SC_ERR_SC_LOGIC : sc_logic value `X' cannot be
converted to bool
 - c:\systemc\systemc-2.0\src\systemc\datatypes\bit\sc_logic.cpp: 49

WARNING: (E9005) SC_ERR_SC_LOGIC : sc_logic value `X' cannot be
converted to bool
 - c:\systemc\systemc-2.0\src\systemc\datatypes\bit\sc_logic.cpp: 49
WARNING: Default time step is used for VCD tracing.
Press any key to continue

===================




  _____  

Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax




By Date: Previous | Next Current Thread By Thread: Previous | Next


  Mail converted by the most-excellent MHonArc 2.6.10