VHDL Programming

(C. Jardin) #1

Appendix B: VHDL Reference Tables 443


Table B-6
Literal Type Example

Decimal Integer 52

0

3E3 --equals 3000

1_000_000 --equals 1 million

Decimal Real 52.0

0.0

.178

1.222_333

Decimal Real with Exponent 1.2E+10

4.6E-9

Based Integer 16#FF# --equals 255

8#777# --equals 511

2#1101_0101# --equals 213

16#FF#E1 --equals 4080

Based Real 2#11.11#

16#AB.CD#E+2

8#77.66#E-10

Character 'a'

'*'

' ' --the space character

String “this is a string”

" " --empty string

“ABC”& “CDE”--concatenation

Bit String X”FFEF”

O” 770770 ”

B”1111_0000_1111”
Free download pdf