ashishk
Junior Member level 2
- Joined
- Dec 29, 2010
- Messages
- 21
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,419
Hi,
My TB is in VHD and I created a bfm(mdio_phy) in verilog as follows:
*************************************
interface mdio_if;
logic clk;
logic nRst;
logic mdio;
endinterface:mdio_if
module mdio_phy (
inout mdio,
input mdclk,
input nReset
);
****************
code.......
**************
//Interface instance
mdio_if ports_if (
.clk(mdclk),
.nRst(nReset),
.mdio(mdio)
);
endmodule
During compilation I am getting an error saying that clk, nRST and mdio are not defined in interface mdio_if. Please tell me what is wrong.
Thanks,
Ashish
My TB is in VHD and I created a bfm(mdio_phy) in verilog as follows:
*************************************
interface mdio_if;
logic clk;
logic nRst;
logic mdio;
endinterface:mdio_if
module mdio_phy (
inout mdio,
input mdclk,
input nReset
);
****************
code.......
**************
//Interface instance
mdio_if ports_if (
.clk(mdclk),
.nRst(nReset),
.mdio(mdio)
);
endmodule
During compilation I am getting an error saying that clk, nRST and mdio are not defined in interface mdio_if. Please tell me what is wrong.
Thanks,
Ashish