Documente Academic
Documente Profesional
Documente Cultură
COMPILER DIRECTIVES
Copyright 2002, Michael D. Ciletti
`defaultnettype
The `defaultnettype directive allows the user to override the ordinary default type (wire)
of implicitly declared nets. It must be used outside a module. It specifies the default type
of all nets that are declared in modules that are declared after the directive.
Notice that the directive and the text macro are separated by only white space, and the
line declaring the text macro is not terminated by a semicolon. The `undef directive
undefines a previously defined text macro.
2
`ifdef DISABLE_TIMESCALES
`else `timescale 1 ns / 10 ps
3
`ifdef BEHAVIORAL
y_out = x1_in | x2_in;
`else
or G1 (y_out, x1_in, x2_in);
endmodule
`include
The `include directive inserts the contents of a file into another file during compilation.
`resetall
The `resetall directive sets all compiler directives to their default values.
`timescale
The `timescale directive specifies the time_unit and time_precision for measurement of
delay and time values in all modules that follow the directive until another `timescale
directive is read.
Character Physical
4
String Unit
s seconds
ms milliseconds
us microseconds
ns nanoseconds
ps picoseconds
fs femtoseconds