|
You can use decimal, binary, octal, and hexadecimal numbers in any combination in AHDL. The syntax for each radix (numbering system) is shown below.
Radix: | Values: | |
Decimal | <series of digits 0 to 9 >
|
|
Binary |
B" <series of 0 's, 1 's, X 's>" (where X = "don't care")
|
|
Octal |
O" <series of digits 0 to 7 >" orQ" <series of digits 0 to 7 >"
|
|
Hexadecimal |
X" <series from 0 to 9 , A to F >" orH" <series from 0 to 9 , A to F >"
|
The following examples show valid AHDL numbers:
B"0110X1X10" Q"4671223" H"123AECF"
The following rules apply to AHDL numbers:
The Compiler always interprets numbers in Boolean Expressions as groups of binary digits; numbers in group ranges are interpreted as decimal values.
Numbers cannot be assigned to single nodes in Boolean equations. Use
VCC
and GND
instead.
- PLDWorld - |
|
Created by chm2web html help conversion utility. |