Public メソッド | |
wif_uint64_trace (const sc_dt::uint64 &object_, const std::string &name_, const std::string &wif_name_, int width_) | |
void | write (FILE *f) |
bool | changed () |
Protected 変数 | |
const sc_dt::uint64 & | object |
sc_dt::uint64 | old_value |
sc_dt::uint64 | mask |
sc_wif_trace.cpp の 164 行で定義されています。
sc_core::wif_uint64_trace::wif_uint64_trace | ( | const sc_dt::uint64 & | object_, | |
const std::string & | name_, | |||
const std::string & | wif_name_, | |||
int | width_ | |||
) |
void sc_core::wif_uint64_trace::write | ( | FILE * | f | ) | [virtual] |
sc_core::wif_traceを実装しています。
sc_wif_trace.cpp の 200 行で定義されています。
00201 { 00202 char buf[1000]; 00203 int bitindex; 00204 00205 // Check for overflow 00206 if ((object & mask) != object) 00207 { 00208 for (bitindex = 0; bitindex < bit_width; bitindex++) 00209 { 00210 buf[bitindex]='0'; 00211 } 00212 } 00213 else 00214 { 00215 sc_dt::uint64 bit_mask = 1; 00216 bit_mask = bit_mask << (bit_width-1); 00217 for (bitindex = 0; bitindex < bit_width; bitindex++) 00218 { 00219 buf[bitindex] = (object & bit_mask)? '1' : '0'; 00220 bit_mask = bit_mask >> 1; 00221 } 00222 } 00223 buf[bitindex] = '\0'; 00224 std::fprintf(f, "assign %s \"%s\" ;\n", wif_name.c_str(), buf); 00225 old_value = object; 00226 }
bool sc_core::wif_uint64_trace::changed | ( | ) | [virtual] |
sc_core::wif_traceを実装しています。
sc_wif_trace.cpp の 194 行で定義されています。
00195 { 00196 return object != old_value; 00197 }
const sc_dt::uint64& sc_core::wif_uint64_trace::object [protected] |
sc_wif_trace.cpp の 174 行で定義されています。
sc_dt::uint64 sc_core::wif_uint64_trace::old_value [protected] |
sc_wif_trace.cpp の 175 行で定義されています。
sc_dt::uint64 sc_core::wif_uint64_trace::mask [protected] |
sc_wif_trace.cpp の 176 行で定義されています。