G
gh
Guest
I'm run into an interesting behavior of the ModelSim simulator, for
which I hope someone can identify the cause.
I have several source files which compile and simulate when I do the
following:
// some verilog code...
include "../foo.v";
// more verilog code
However, when I use the "correct" verilog directive:
`include "../foo.v"
I get Undefined variable errors for wires, registers, parameters, etc.
defined/declared in the included file. This is puzzling since the
contents of the included file are supposed to stricly replace the
`include declaration in the original source file.
Anyone experience a similar problem, or know what's wrong?
Thanks.
-gh
which I hope someone can identify the cause.
I have several source files which compile and simulate when I do the
following:
// some verilog code...
include "../foo.v";
// more verilog code
However, when I use the "correct" verilog directive:
`include "../foo.v"
I get Undefined variable errors for wires, registers, parameters, etc.
defined/declared in the included file. This is puzzling since the
contents of the included file are supposed to stricly replace the
`include declaration in the original source file.
Anyone experience a similar problem, or know what's wrong?
Thanks.
-gh