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



dummy_rtl.v
ReadMe.txt
Current file: vmm_cfg.sv
vmm_cov.sv
vmm_drv.sv
vmm_env.sv
vmm_gen.sv
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    ////
////                               ////
///////////////////////////////////////
///////////////////////////////////////


//-----------------------------------------------------------------------------
//  This is a configuration class for dummy rtl
//-----------------------------------------------------------------------------

class cfg_trans extends vmm_data;
  // How many transactions to generate before test ends?
  rand integer num_of_trans;

  constraint c1 { num_of_trans inside {[5:21]}; }

endclass : cfg_trans

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