Re: How to "import" an interface into a module w/o `include?
- From: Jonathan Bromley <jonathan.bromley@xxxxxxxxxxxxx>
- Date: Wed, 12 Sep 2007 14:28:02 +0100
On Wed, 12 Sep 2007 13:15:36 GMT,
Mark Odell <mao@xxxxxxxxxxxxxx> wrote:
vlog testbench.sv -work /user/modell/proj/xs1_tb/out/nz_tb
-L /user/modell/proj/xs1_tb/out/nz_pkg
-L /user/modell/proj/xs1_tb/out/nz_rtl
-quiet -nologo -novopt -incr -lint -source -hazards
-timescale 1ns/1ps -dpiheader testbench_dpi.h
###### testbench.sv(145): perbus_if pb_if();
** Error: testbench.sv(145): Undefined variable: perbus_if.
** Error: testbench.sv(145): near "pb_if": syntax error, unexpected "IDENTIFIER"
Line 145 contains the attempt to instantiate a perbus_if which is
an interface defined in the nz_pkg lib (created by vlib).
OK. This compile error is NOTHING TO DO WITH THAT. If your
interface instantiation were syntactically OK, then the vlog compiler
would not make any attempt to find your interface definition - as
I mentioned in another post, I think. There is a different, simpler
problem. For example:
- spurious punctuation on some previous line of code
- you're trying to instantiate the interface in some
context where an instance is illegal (e.g. outside
any module or interface body)
- mismatched begin...end somewhere earlier in the code
Can you post the preceding 144 lines of code? I betcha
it's something totally trivial...
--
Jonathan Bromley, Consultant
DOULOS - Developing Design Know-how
VHDL * Verilog * SystemC * e * Perl * Tcl/Tk * Project Services
Doulos Ltd., 22 Market Place, Ringwood, BH24 1AW, UK
jonathan.bromley@xxxxxxxxxxxxx
http://www.MYCOMPANY.com
The contents of this message may contain personal views which
are not the views of Doulos Ltd., unless specifically stated.
.
- Follow-Ups:
- Re: How to "import" an interface into a module w/o `include?
- From: Mark Odell
- Re: How to "import" an interface into a module w/o `include?
- References:
- SV: How to "import" an interface into a module w/o `include?
- From: mrfirmware
- Re: SV: How to "import" an interface into a module w/o `include?
- From: Jonathan Bromley
- Re: How to "import" an interface into a module w/o `include?
- From: mrfirmware
- Re: How to "import" an interface into a module w/o `include?
- From: Jonathan Bromley
- Re: How to "import" an interface into a module w/o `include?
- From: Mark Odell
- SV: How to "import" an interface into a module w/o `include?
- Prev by Date: Re: How to "import" an interface into a module w/o `include?
- Next by Date: Re: How to "import" an interface into a module w/o `include?
- Previous by thread: Re: How to "import" an interface into a module w/o `include?
- Next by thread: Re: How to "import" an interface into a module w/o `include?
- Index(es):
Relevant Pages
|