User guide
D-4
Compiler Directives and System Tasks
`endif
Used with `ifdef.. Specifies the end of a group of lines specified
by the ‘ifdef or ‘else compiler directives. See IEEE Std 1364-
2001 page 353. Syntax:
‘endif
`ifdef
Specifies compiling the source lines that follow if the specified text
macro is defined by either the ‘define compiler directive or the
+define compile-time option. See IEEE Std 1364-2001 page
353. Syntax:
‘ifdef text_macro_name group_of_lines
The exception is the character string "VCS", whichis a predefined
text macro in VCS . So in the following source code VCS compiles
and executes the first block of code and ignores the second block
even when you don’t include ‘define VCS or +define+VCS:
‘ifdef VCS
begin
// Block of code for VCS
.
.
.
end
‘else
begin
// Alternative block of code
.
.
.
end
‘endif
When you encrypt source code VCS inserts ‘ifdef VCS before
all encrypted parts of the code.