Quantcast
Channel: UVM SystemVerilog Discussions Forum RSS Feed
Viewing all articles
Browse latest Browse all 410

Interface Modport and bind: How to get them working

$
0
0

Hi

 

In System Verilog the recommended approach to create interfaces is through modport

 

suppose I have an interface like 

 

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 Bind we can bind a module to an interface if all the ports are in the portlist.

So is there someway I can bind arlen though it is not defined in the interface port list?


Viewing all articles
Browse latest Browse all 410

Trending Articles