112855Sgabeblack@google.com#include "systemc.h" 212855Sgabeblack@google.com 312855Sgabeblack@google.com#define TEST(EXP) cout << #EXP << " = " << EXP << endl; 412855Sgabeblack@google.comint 512855Sgabeblack@google.comsc_main( int argc, char* argv[] ) 612855Sgabeblack@google.com{ 712855Sgabeblack@google.com sc_bigint<8> BI = 0xff; 812855Sgabeblack@google.com sc_int<8> I = BI; 912855Sgabeblack@google.com sc_uint<8> UI = BI; 1012855Sgabeblack@google.com sc_biguint<8> UBI = BI; 1112855Sgabeblack@google.com 1212855Sgabeblack@google.comTEST(BI(3,0).to_int()) 1312855Sgabeblack@google.comTEST(BI(3,0).to_uint()) 1412855Sgabeblack@google.comTEST(BI(3,0).to_int64()) 1512855Sgabeblack@google.comTEST(BI(3,0).to_uint64()) 1612855Sgabeblack@google.comTEST(BI(3,0).to_double()) 1712855Sgabeblack@google.comTEST(I(3,0).to_int()) 1812855Sgabeblack@google.comTEST(I(3,0).to_uint()) 1912855Sgabeblack@google.comTEST(I(3,0).to_int64()) 2012855Sgabeblack@google.comTEST(I(3,0).to_uint64()) 2112855Sgabeblack@google.comTEST(I(3,0).to_double()) 2212855Sgabeblack@google.comTEST(UI(3,0).to_int()) 2312855Sgabeblack@google.comTEST(UI(3,0).to_uint()) 2412855Sgabeblack@google.comTEST(UI(3,0).to_int64()) 2512855Sgabeblack@google.comTEST(UI(3,0).to_uint64()) 2612855Sgabeblack@google.comTEST(UI(3,0).to_double()) 2712855Sgabeblack@google.comTEST(UBI(3,0).to_int()) 2812855Sgabeblack@google.comTEST(UBI(3,0).to_uint()) 2912855Sgabeblack@google.comTEST(UBI(3,0).to_int64()) 3012855Sgabeblack@google.comTEST(UBI(3,0).to_uint64()) 3112855Sgabeblack@google.comTEST(UBI(3,0).to_double()) 3212855Sgabeblack@google.com 3312855Sgabeblack@google.com return 0; 3412855Sgabeblack@google.com} 35