|HOME |ABOUT |ARTICLES |ACK |FEEDBACK |TOC |LINKS |BLOG |JOBS |


Tutorials



INTERFACE METHODS

Methods In Interfaces

Interfaces can include task and function definitions. This allows a more abstract level of modeling.


     interface intf (input clk);
         logic read, enable,
         logic [7:0] addr,data;
        
         task masterRead(input logic [7:0] raddr); // masterRead method
            ...
         endtask: masterRead
        
         task slaveRead; // slaveRead method
          ...
         endtask: slaveRead

     endinterface :intf

Index
Interface
Ports
Interface Methods
Clocking Block
Virtual Interface
Svtb N Verilog Dut

Report a Bug or Comment on This section - Your input is what keeps Testbench.in improving with time!





<< PREVIOUS PAGE

TOP

NEXT PAGE >>

copyright © 2007-2017 :: all rights reserved www.testbench.in::Disclaimer