Code Browser Pages:
Files in
vmm1.2_example.tar



dummy_rtl.v
ReadMe.txt
vmm_cfg.sv
vmm_cov.sv
vmm_drv.sv
vmm_env.sv
vmm_gen.sv
Current file: vmm_interface.sv
vmm_packet.sv
vmm_rcv.sv
vmm_sbd.sv
vmm_scn.sv
vmm_top.sv



///////////////////////////////////////
///////////////////////////////////////
////                               ////
////        VMM 1.2 example        ////
////                               ////
////     For more vmm examples     ////
////     visit www.testbench.in    ////
////                               ////
///////////////////////////////////////
///////////////////////////////////////


//-----------------------------------------------------------------------------
// Generic dummy trl Interface
//-----------------------------------------------------------------------------

`define WIDTH 8

interface dut_if (input logic clk);

  logic [`WIDTH-1:0] address;
  logic [`WIDTH-1:0] i_data;
  logic [`WIDTH-1:0] o_data;
  logic rdwr;
  logic en;
  logic reset;

  clocking drv @ (posedge clk);
    default input #1ps output #1ps;
    output reset, en, rdwr, address, o_data;
  endclocking : drv

  clocking mon @ (posedge clk);
    default input #1ps output #1ps;
    input reset, en, rdwr, address, i_data, o_data;
  endclocking : mon

  modport driver  (import drv.*, input clk);
  modport monitor (import mon.*, input clk);

endinterface : dut_if

//-----------------------------------------------------------------------------
// end of file 
//-----------------------------------------------------------------------------