クラス sc_core::wif_sc_unsigned_trace

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

Inheritance graph
[凡例]

すべてのメンバ一覧

Public メソッド

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

Protected 変数

const sc_dt::sc_unsignedobject
sc_dt::sc_unsigned old_value


説明

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


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

sc_core::wif_sc_unsigned_trace::wif_sc_unsigned_trace ( const sc_dt::sc_unsigned object_,
const std::string &  name_,
const std::string &  wif_name_ 
)

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

00445 : wif_trace(name_, wif_name_), object(object_), old_value(object_.length())
00446 {
00447     old_value = object;
00448     wif_type = "BIT";
00449 }


関数

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

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

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

00457 {
00458     char buf[1000], *buf_ptr = buf;
00459 
00460     int bitindex;
00461     for(bitindex = object.length() - 1; bitindex >= 0; --bitindex) {
00462         *buf_ptr++ = "01"[(object)[bitindex]];
00463     }
00464     *buf_ptr = '\0';
00465     std::fprintf(f, "assign %s \"%s\" ;\n", wif_name.c_str(), buf); 
00466     old_value = object;
00467 }

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

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

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

00452 {
00453     return object != old_value;
00454 }

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

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

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

00470 {
00471     bit_width = object.length();
00472 }


変数

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

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


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

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