santhosh Posted March 15, 2013 Report Share Posted March 15, 2013 hi i am new to UVM. In my design i have in-out port so interface i declared as wire. while run the design by using make i got the one error : ** Error: (vsim-3044) ../uvc/i2c_slave_driver.sv(55): Usage of 'vif.sda' inconsistent with 'net' object. here sda is in-out singal and vif is virtual interface of the design. can any one help me to solve this problem.. Quote Link to comment Share on other sites More sharing options...
omahesh Posted March 18, 2013 Report Share Posted March 18, 2013 Hi, Try to declare the sda as wire and try. because of bi-directional we need to declare it as wire. thanks, mahee Quote Link to comment Share on other sites More sharing options...
santhosh Posted March 20, 2013 Author Report Share Posted March 20, 2013 Hi omahesh i already declares as wire in interface.. but when we have to drive the data to that port, this error is coming like 'vif.sda' inconsistent with 'net' object.(sda is port) thank you for replay Regard, Santhosh Quote Link to comment Share on other sites More sharing options...
sega Posted March 20, 2013 Report Share Posted March 20, 2013 hi santhosh, can you please put here your interface code? Regards sagar Quote Link to comment Share on other sites More sharing options...
santhosh Posted March 20, 2013 Author Report Share Posted March 20, 2013 Hi sagar this is my interface code of i2c interface i2c_if (input wb_clk_i); logic wb_rst_i; // synchronous active high reset logic arst_i; // asynchronous reset logic [2:0] wb_adr_i; // lower address bits logic [7:0] wb_dat_i; // databus logic logic [7:0] wb_dat_o; // databus output logic wb_we_i; // write enable logic logic wb_stb_i; // stobe/core select signal logic wb_cyc_i; // valid bus cycle logic logic wb_ack_o; // bus cycle acknowledge output logic wb_inta_o; // interrupt request signal output logic scl; wire sda; logic i2c_ack; endinterface Regards, Santhosh Quote Link to comment Share on other sites More sharing options...
dave_59 Posted March 20, 2013 Report Share Posted March 20, 2013 See https://forum.verificationacademy.com/forum/verification-methodology-discussion-forum/ovm-forum/28735-connect-driver-ported-interface-modport Quote Link to comment Share on other sites More sharing options...
sega Posted March 20, 2013 Report Share Posted March 20, 2013 Hi santhosh, can you try with logic instead of wire for sda pin? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.