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_unsigned & | object |
sc_dt::sc_unsigned | old_value |
sc_wif_trace.cpp の 427 行で定義されています。
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_ | |||
) |
void sc_core::wif_sc_unsigned_trace::write | ( | FILE * | f | ) | [virtual] |
sc_core::wif_traceを実装しています。
sc_wif_trace.cpp の 456 行で定義されています。
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.cpp の 451 行で定義されています。
00452 { 00453 return object != old_value; 00454 }
void sc_core::wif_sc_unsigned_trace::set_width | ( | ) | [virtual] |
sc_core::wif_traceを再定義しています。
sc_wif_trace.cpp の 469 行で定義されています。
00470 { 00471 bit_width = object.length(); 00472 }
const sc_dt::sc_unsigned& sc_core::wif_sc_unsigned_trace::object [protected] |
sc_wif_trace.cpp の 437 行で定義されています。
sc_wif_trace.cpp の 438 行で定義されています。