Import package error system Verilog

Guest #5548614
Rate this post
useful
not useful
Hello,
I have a few packages that I have written like this:
1
package A; 
2
-- 
3
-- 
4
endpackage 
5

6
package B; 
7
import A::* 
8
--- 
9
-- 
10
endpackage 
11

12
package C; 
13
import A::*; 
14
import B::*; 
15
endpackage
In the file using package C, the error I am getting is as follows:
Error (10864): SystemVerilog error at C.sv(26): TMP was imported from 
multiple packages with ::* - none of the imported declarations are 
visible.

Is this problem because I am importing A::* in both package A and 
package C?
Any help to rsolve this is greatly appreciated.

Thanks in Advance~

--
Nikhil Pratap

Reply

Please log in before posting.

or

Log in with Google account

Registration is free and takes only a minute.

Register now