|
The Options Statement allows you to set the following options for a design file:
The BIT0
option allows you to use the lowest-numbered bit of a group as an MSB or LSB without receiving warning messages.
The NAME_SUBSTITUTION
option turns on or off the name substitution feature, which allows you to specify a text string in a Function Prototype Statement, Variable Section, or in-line logic function that is replaced by a different text string when the design is compiled. Before you can use the name substitution feature, you must specify the replacement string in the TDF's Parameters Statement. You can then specify the text string to be replaced in the Function Prototype Statement, Variable Section, or in-line logic function using the format @
<text string>. Example
The following example shows an Options Statement:
OPTIONS BIT0 = MSB,
NAME_SUBSTITUTION = ON;
The Options Statement has the following characteristics:
The Options Statement begins with the keyword OPTIONS
.
The BIT0
option starts with the BIT0
keyword, followed by the equals symbol (=
) and the option setting MSB
, LSB
, or ANY
. If the Options Statement contains both the BIT0
option and the NAME_SUBSTITUTION
option, the BIT0
option ends with a comma (,
).
The NAME_SUBSTITUTION
option starts with the keyword NAME_SUBSTITUTION
, followed by the equals symbol and the option setting ON
or OFF
.
The Options Statement ends with a semicolon (;
).
An Options Statement at the beginning of a Text Design File (.tdf) specifies options for the entire file. If the file is a top-level TDF, the Options Statement applies to the entire project. If the file is lower in the project hierarchy, the Options Statement specifies options only for that file.
- PLDWorld - |
|
Created by chm2web html help conversion utility. |