Download VMM 1.2 Standard Library User Guide

Transcript
`vmm_class_factory(classname)
This is a macro for defining factory class.
Description
Creates the factory class methods for the specified class. You
must specify this method within the class declaration, with virtual
allocate() and copy() methods. These virtual methods can be
called without any arguments.
Example
class ahb_trans extends vmm_object;
rand bit [7:0] addr;
...
`vmm_class_factory(ahb_trans)
endclass
Standard Library Classes (Part 1)
A-12