xiv Copyright © 2006 IEEE. All rights reserved.
7.4.1 Description............................................................................................................... 182
7.5 Limited-precision integer types ............................................................................................... 184
7.5.1 Type definitions........................................................................................................ 184
7.5.2 sc_int_base ............................................................................................................... 185
7.5.3 sc_uint_base ............................................................................................................. 190
7.5.4 sc_int ........................................................................................................................ 194
7.5.5 sc_uint ...................................................................................................................... 197
7.5.6 Bit-selects................................................................................................................. 199
7.5.7 Part-selects ...............................................................................................................203
7.6 Finite-precision integer types................................................................................................... 209
7.6.1 Type definitions ....................................................................................................... 209
7.6.2 Constraints on usage ................................................................................................ 209
7.6.3 sc_signed..................................................................................................................209
7.6.4 sc_unsigned.............................................................................................................. 216
7.6.5 sc_bigint................................................................................................................... 223
7.6.6 sc_biguint.................................................................................................................225
7.6.7 Bit-selects................................................................................................................. 227
7.6.8 Part-selects ...............................................................................................................231
7.7 Integer concatenations ............................................................................................................. 236
7.7.1 Description ............................................................................................................... 236
7.7.2 Class definition......................................................................................................... 236
7.7.3 Constraints on usage................................................................................................. 237
7.7.4 Assignment operators............................................................................................... 238
7.7.5 Implicit type conversion........................................................................................... 238
7.7.6 Explicit type conversion........................................................................................... 238
7.7.7 Other member functions........................................................................................... 238
7.8 Generic base proxy class.......................................................................................................... 239
7.8.1 Description ............................................................................................................... 239
7.8.2 Class definition......................................................................................................... 239
7.8.3 Constraints on usage................................................................................................. 239
7.9 Logic and vector types............................................................................................................. 240
7.9.1 Type definitions ....................................................................................................... 240
7.9.2 sc_logic .................................................................................................................... 240
7.9.3 sc_bv_base ............................................................................................................... 244
7.9.4 sc_lv_base................................................................................................................ 251
7.9.5 sc_bv ........................................................................................................................ 257
7.9.6 sc_lv ......................................................................................................................... 259
7.9.7 Bit-selects................................................................................................................. 261
7.9.8 Part-selects ...............................................................................................................264
7.9.9 Concatenations......................................................................................................... 270
7.10 Fixed-point types ..................................................................................................................... 278
7.10.1 Fixed-point representation........................................................................................ 278
7.10.2 Fixed-point type conversion..................................................................................... 279
7.10.3 Fixed-point data types .............................................................................................. 279
7.10.4 Fixed-point expressions and operations ................................................................... 281
7.10.5 Bit and part selection................................................................................................ 284
7.10.6 Variable-precision fixed-point value limits.............................................................. 284
7.10.7 Fixed-point word length and mode .......................................................................... 284
7.10.8 Conversions to character string................................................................................ 287
7.10.9 Finite word-length effects ........................................................................................ 289
7.10.10 sc_fxnum .................................................................................................................. 313
7.10.11 sc_fxnum_fast .......................................................................................................... 317
7.10.12 sc_fxval .................................................................................................................... 322
7.10.13 sc_fxval_fast............................................................................................................. 326