In reply to Rsignori92:
In reply to nnn314:
interface myif (input clk, input Reset);
//Interface Signals
logic my_sign;
// Clocking block
clocking cb_mst @(posedge clk);
default input #1step output #1step;
input my_sign;
endclocking
clocking sb_slv @(posedge clk);
default input #1step output #1step;
output my_sign;
endclocking
//Modports
modport mon_port(input my_sign);
modport mst_port(clocking cb_mst);
modport slv_port(clocking sb_slv);
endinterface
This is just a piece of an highly simplified code. Please remove the clk and reset from MODPORT since those restriction in the access and no changing in the direction (they are always input).
The issue with removing clock and reset from modport is that the handle to the modport interface will not recognize the general interface’s inputs.
I tried removing it, the only option is changing the handle to point to the general interface.