Changeset 56 for sources/test_regression/07052005/system.cpp
- Timestamp:
- May 29, 2013, 6:05:44 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sources/test_regression/07052005/system.cpp
r55 r56 21 21 sc_uint<16> g; 22 22 sc_uint<8> h; 23 sc_uint<32> i; 24 sc_uint<17> j; 23 25 24 26 b = 0x7; 25 27 c1 = 0x3; 26 28 c2 = 0x1; 27 d = 0xA 0;29 d = 0xA; 28 30 e = 0x11; 29 31 g = 0xabcd; 30 32 31 // bit vector concatenation and boolean concatenation 32 a = (b, (c1 | c2), d & (b, c1), e); 33 // Concatenation 34 a = (b, (c1 | c2), d & (b, c1), e); 35 j = (b, c1, d , e); 33 36 34 37 f = b.range (0, 0); 35 36 38 h = g.range (11, 4); 39 i = e; 37 40 38 41 cout << "a = 0x" << hex << (unsigned int) a << " = " << a.to_string(SC_BIN) << "\n"; … … 45 48 //ASSERT(h.to_string(SC_BIN) == "0b010111100"); 46 49 47 cout << "Test OK.\n"; 50 cout << "i = 0x" << hex << (unsigned int) i << " = " << i.to_string(SC_BIN) << "\n"; 51 cout << "j = 0x" << hex << (unsigned int) j << " = " << j.to_string(SC_BIN) << "\n"; 48 52 49 53 return 0;
Note: See TracChangeset
for help on using the changeset viewer.