112855Sgabeblack@google.com// Bug 185 Test - sc_bv(char) constructor. 212855Sgabeblack@google.com// 312855Sgabeblack@google.com// sc_bv<8> a('1') was yielding an all-zero value rather than all ones. 412855Sgabeblack@google.com 512855Sgabeblack@google.com 612855Sgabeblack@google.com#include "systemc.h" 712855Sgabeblack@google.com 812855Sgabeblack@google.comint sc_main(int argc, char* argv[]) 912855Sgabeblack@google.com{ 1012855Sgabeblack@google.com sc_bv<8> a('0'); 1112855Sgabeblack@google.com sc_bv<9> b('1'); 1212855Sgabeblack@google.com sc_bv<11> c(false); 1312855Sgabeblack@google.com sc_bv<11> d(true); 1412855Sgabeblack@google.com sc_bv<11> e(0); 1512855Sgabeblack@google.com sc_bv<11> f(1); 1612855Sgabeblack@google.com 1712855Sgabeblack@google.com cout << "a = " << a << endl; 1812855Sgabeblack@google.com cout << "b = " << b << endl; 1912855Sgabeblack@google.com cout << "c = " << c << endl; 2012855Sgabeblack@google.com cout << "d = " << d << endl; 2112855Sgabeblack@google.com cout << "e = " << e << endl; 2212855Sgabeblack@google.com cout << "f = " << f << endl; 2312855Sgabeblack@google.com 2413158Sgabeblack@google.com cout << "Program completed" << endl; 2512855Sgabeblack@google.com return 0; 2612855Sgabeblack@google.com} 27