Is it possible to create SystemVerilog wrappers with modports?
Let's say I have an interface:
interface axi_if(input clk, input rst);
logic arlen;
clocking mclk@(posedge clk);
output arlen;
endclocking
modport Master(clocking mclk, input clk, input rst);
endinterface
In the DUT wrapper I have:
axi_if my_if(clk, rst)
my_dut you_dut(.arlen(my_if.Master.mclk.arlen));
I tried doing this but I got a cross-module reference error. Any suggestions/clues what is wrong?