2012-12-15から1日間の記事一覧

gdb で sc_uintの加算の仕組みを見てみよう

データ型について今週は見ていったので、もう少し。 サンプルコード #include <stdio.h> #include <systemc.h> int main (int argc, char* argv[]) { sc_uint<8> a,b; sc_uint<9> c; a = 2; b = 30; c = a + b; cout << "a = " << a.to_string() << ", b = " << b.to_string() <<</systemc.h></stdio.h>…