クラス sc_core::wif_sc_fxnum_trace

sc_core::wif_sc_fxnum_traceに対する継承グラフ

Inheritance graph
[凡例]

すべてのメンバ一覧

Public メソッド

 wif_sc_fxnum_trace (const sc_dt::sc_fxnum &object_, const std::string &name_, const std::string &wif_name_)
void write (FILE *f)
bool changed ()
void set_width ()

Protected 変数

const sc_dt::sc_fxnumobject
sc_dt::sc_fxnum old_value


説明

sc_wif_trace.cpp716 行で定義されています。


コンストラクタとデストラクタ

sc_core::wif_sc_fxnum_trace::wif_sc_fxnum_trace ( const sc_dt::sc_fxnum object_,
const std::string &  name_,
const std::string &  wif_name_ 
)

sc_wif_trace.cpp734 行で定義されています。

00737 : wif_trace( name_, wif_name_ ),
00738   object( object_ ),
00739   old_value( object_.m_params.type_params(),
00740              object_.m_params.enc(),
00741              object_.m_params.cast_switch(),
00742              0 )
00743 {
00744     old_value = object;
00745     wif_type = "BIT";
00746 }


関数

void sc_core::wif_sc_fxnum_trace::write ( FILE *  f  )  [virtual]

sc_core::wif_traceを実装しています。

sc_wif_trace.cpp755 行で定義されています。

00756 {
00757     char buf[1000], *buf_ptr = buf;
00758 
00759     int bitindex;
00760     for( bitindex = object.wl() - 1; bitindex >= 0; -- bitindex )
00761     {
00762         *buf_ptr ++ = "01"[(object)[bitindex]];
00763     }
00764     *buf_ptr = '\0';
00765 
00766     std::fprintf( f, "assign %s \"%s\" ;\n", wif_name.c_str(), buf );
00767     old_value = object;
00768 }

bool sc_core::wif_sc_fxnum_trace::changed (  )  [virtual]

sc_core::wif_traceを実装しています。

sc_wif_trace.cpp749 行で定義されています。

00750 {
00751     return object != old_value;
00752 }

void sc_core::wif_sc_fxnum_trace::set_width (  )  [virtual]

sc_core::wif_traceを再定義しています。

sc_wif_trace.cpp771 行で定義されています。

00772 {
00773     bit_width = object.wl();
00774 }


変数

sc_wif_trace.cpp729 行で定義されています。

sc_wif_trace.cpp730 行で定義されています。


このクラスの説明は次のファイルから生成されました:

SystemCに対してFri Jun 6 20:12:16 2008に生成されました。  doxygen 1.5.6