xv
Copyright © 2012 IEEE. All rights reserved.
7.2 Common characteristics........................................................................................................... 191
7.2.1 Initialization and assignment operators ....................................................................... 192
7.2.2 Precision of arithmetic expressions ............................................................................. 193
7.2.3 Base class default word length..................................................................................... 193
7.2.4 Word length ................................................................................................................. 194
7.2.5 Bit-select ...................................................................................................................... 194
7.2.6 Part-select..................................................................................................................... 195
7.2.7 Concatenation ..............................................................................................................196
7.2.8 Reduction operators ..................................................................................................... 197
7.2.9 Integer conversion........................................................................................................ 198
7.2.10 String input and output ................................................................................................ 198
7.2.11 Conversion of application-defined types in integer expressions ................................. 199
7.3 String literals............................................................................................................................ 199
7.4 sc_value_base† ........................................................................................................................ 201
7.4.1 Description................................................................................................................... 201
7.4.2 Class definition ............................................................................................................ 201
7.4.3 Constraints on usage .................................................................................................... 201
7.4.4 Member functions ........................................................................................................ 202
7.5 Limited-precision integer types ............................................................................................... 202
7.5.1 Type definitions ...........................................................................................................202
7.5.2 sc_int_base................................................................................................................... 203
7.5.3 sc_uint_base................................................................................................................. 208
7.5.4 sc_int............................................................................................................................ 213
7.5.5 sc_uint.......................................................................................................................... 215
7.5.6 Bit-selects..................................................................................................................... 217
7.5.7 Part-selects ................................................................................................................... 222
7.6 Finite-precision integer types................................................................................................... 227
7.6.1 Type definitions ...........................................................................................................227
7.6.2 Constraints on usage .................................................................................................... 227
7.6.3 sc_signed...................................................................................................................... 227
7.6.4 sc_unsigned.................................................................................................................. 234
7.6.5 sc_bigint....................................................................................................................... 240
7.6.6 sc_biguint..................................................................................................................... 242
7.6.7 Bit-selects..................................................................................................................... 244
7.6.8 Part-selects ................................................................................................................... 248
7.7 Integer concatenations ............................................................................................................. 253
7.7.1 Description................................................................................................................... 253
7.7.2 Class definition ............................................................................................................ 253
7.7.3 Constraints on usage .................................................................................................... 255
7.7.4 Assignment operators .................................................................................................. 255
7.7.5 Implicit type conversion .............................................................................................. 255
7.7.6 Explicit type conversion .............................................................................................. 255
7.7.7 Other member functions .............................................................................................. 256
7.8 Generic base proxy class.......................................................................................................... 256
7.8.1 Description................................................................................................................... 256
7.8.2 Class definition ............................................................................................................ 256
7.8.3 Constraints on usage .................................................................................................... 256
7.9 Logic and vector types............................................................................................................. 257
7.9.1 Type definitions ...........................................................................................................257
7.9.2 sc_logic ........................................................................................................................ 257
7.9.3 sc_bv_base ................................................................................................................
... 262
7.9.4
sc_lv_base.................................................................................................................... 267
7.9.5 sc_bv ............................................................................................................................ 273
7.9.6 sc_lv ............................................................................................................................. 275