Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Cannot open include file "timescale.v, i2c_master_defin

Status
Not open for further replies.

nareshgtr

Member level 3
Joined
Feb 17, 2007
Messages
62
Helped
2
Reputation
4
Reaction score
0
Trophy points
1,286
Location
Bangalore
Activity points
1,680
Dear All.
When I am simulating the Verilog project (with "include files" in the project) in Questasim simulator, I am getting the following Error
Error: E:/i2c/trunk/rtl/verilog/i2c_master_bit_ctrl.v(138): Cannot open `include file "timescale.v".
** Error: E:/i2c/trunk/rtl/verilog/i2c_master_bit_ctrl.v(141): Cannot open `include file "i2c_master_defines.v"
Please some one explain why I am getting this error.
Regards
V. Naresh Kumar
 

Re: Questasim simulator - error explain needed

Hi Naresh,

Were you successful in addressing the above error? coz am getting the same error too though the file referred to is very much there.

.../code/proto_drv.sv(3): Cannot open `include file "proto_pkt.sv".

as a work around i tried putting all classes into packages and importing relevant packages in the code file where i use that class and it works. But thats not the solution.

Not sure whats wrong. Could certainly use some help here.

Thx,
Prashanth
 

Re: Questasim simulator - error explain needed

Ok got it. Use the absolute path within double quotes.

eg: `include "c:\\project\\sv\\code\\proto_pkt.sv"

Please note the "\\" (double backslash) one of it used as an escape character in the regular absolute path.

A reference to this has been made in the LRM in section "25.3 ‘include"

Hope this helps.

Thx,
Prashanth
 

    nareshgtr

    Points: 2
    Helpful Answer Positive Rating
Re: Questasim simulator - error explain needed

Thanks prashanth.
Regards
V. Naresh Kumar
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top