tingtaox
Newbie level 1
- Joined
- Jan 12, 2015
- Messages
- 1
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 9
Hello
I encountered this error when I was writing a random-constrained verification testbench. It occurred at the connection between DUT and testbench, more precisely the program block.
The error is : Fatal: (vsim-3695): The interface port 'in_intf' must be passed an actual interface, when I ran the code on Questa Sim 10.2.
My code is very simple, shown as below:
I actually read some posts saying the causes may be incomplete port connection or type mismatch. But I think the connection is complete and their types match. Is there other way to solve it?
Thanks in advance.
I encountered this error when I was writing a random-constrained verification testbench. It occurred at the connection between DUT and testbench, more precisely the program block.
The error is : Fatal: (vsim-3695): The interface port 'in_intf' must be passed an actual interface, when I ran the code on Questa Sim 10.2.
My code is very simple, shown as below:
Code:
module top;
intf in_intf();
switch(in_intf);
test(in_intf);
endmodule
module switch(intf in_intf);
assign in_intf.mp.b = in_intf.mp.a;
endmodule
interface intf();
logic a, b;
modport mp(output a, input b);
endinterface
program test(intf.mp in_intf);
virtual intf.mp intf0 = in_intf;
...
endprogram
I actually read some posts saying the causes may be incomplete port connection or type mismatch. But I think the connection is complete and their types match. Is there other way to solve it?
Thanks in advance.