In VMM for SystemVerilog,
`channel(data_class) // data_class_channelThis macro call creates customized channel class declaration handling object of type data_class.
`atomic_gen(data_class) // data_class_atomic_genThis macro call creates customized atomic generator class declaration handling object of type data_class.
`scenario_gen(data_class) // data_class_scenario_genThis macro call creates customized scenario generator class declaration handling object of type data_class.
This macro call all creates classes like 'data_class_scenario', 'data_class_scenario_election', etc.
If you have noticed, implementation of `vmm_callbacks is given in the vmm document.
I hope this information improves your knowledge about using define macro.
$finish;
No comments:
Post a Comment