Nikhil Posted November 20, 2015 Report Share Posted November 20, 2015 Hi, I have an associative array of enum indexed by an integer. I am unable to figure out the filed macro for the factory operations. Can someone help me with it . Thanks, Nik Quote Link to comment Share on other sites More sharing options...
muffilaila Posted December 1, 2015 Report Share Posted December 1, 2015 You can use `uvm_field_aa_int_integer macro `uvm_field_aa_int_integer(aa,UVM_ALL_ON) Quote Link to comment Share on other sites More sharing options...
agnesmary Posted January 7, 2016 Report Share Posted January 7, 2016 Hi All In my transection class I have int , enum , structure. I am using the field macros which is placed inside of the `ovm_object_utils_begin and 'ovm_object_utils_end macro blocks. I am not very sure which field micro to use for the structure. can i use `ovm_field_object for the same. typedef enum { NOP, WRITE, READ } ocp_Mcmd_enum; typedef struct {bit bAssignedToCh_A;bit bAssignedToCh_B;shortint unsigned ulMessageLength;bit bMessageValid;bit bPPIndicator;int unsigned ulHeaderCRC;}sv_TxBufferData; class my_transfer extends ovm_sequence_item; rand bit [15:0] Maddr;rand ocp_Mcmd_enum Mcmd;rand bit [31:0] Mdata;rand sv_TxBufferData txBuf; `ovm_object_utils_begin(my_transfer)`ovm_field_int (Maddr, OVM_ALL_ON)`ovm_field_enum (ocp_Mcmd_enum, Mcmd, OVM_ALL_ON)`ovm_field_int (Mdata, OVM_ALL_ON)//what field macro to use for txBuf;:confused:`ovm_object_utils_endfunction new (string name = " my_transfer_inst", ovm_sequencer_base sequencer = null, ovm_sequence parent_seq = null);super.new(name, sequencer, parent_seq);endfunction : new endclass http://www.besanttechnologies.com/training-courses/php-training/php-training-institute-in-chennai | http://www.besanttechnologies.com/training-courses/cloud-computing-training/vmware-training-institute-in-chennai Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.