Character RepresentationWithin quoted character strings and character variables SCL supports the use of any character with an ASCII value in the range 0x00 to 0xFF inclusive. However, direct specification of these characters is not always possible, for two reasons:
The command and control characters can be represented by placing the command character in front of them (~~ and ~^). Other characters can be represented using the command and control characters as follows: Using ASCII Mnemonic NotationThe commonly used characters have a mnemonic notation giving an easily identifiable representation of control characters. These use the ASCII mnemonic of the control character in question. The following notations are available:
Using Hexadecimal NotationAll characters can be represented by hexadecimal ASCII code, using this syntax: ~<hh> Where hh is the hexadecimal ASCII code (0xhh) of the required character. For example, the ASCII horizontal tabulation character is represented by ~<09> and the null character by ~<00>. Note: As an exception to this notation, ~<FF> represents the form feed character as covered above, so to represent the character with the ASCII code of 255 (0xFF) you must use ~<0FF>. Using Control Character NotationAll 7-bit control characters, i.e. characters with ASCII codes in the range 0x00 to 0x1F inclusive, may be represented using a control character syntax. This syntax has the following format: ^c Where c is the control character specifier. The control character specifier is an ASCII graphics character with an ASCII code in the range 0x40 (ASCII @) to 0x5F (ASCII _). The compiler will apply the bottom 6 bits only, to generate an ASCII code in the range 0x00 to 0x1F. For example, the ASCII bell character (ASCII code 0x07), is represented by ^G. |
|
<<< prev page |
^^^ section start |
>>> next page |
Proud to be Open, prouder to be Free |
OpenSTA SCL Reference, version 2.0.6 Copyright & License Info on ToC page |
Last Updated: 2005-05-11 |