qwerty123 Posted July 14, 2011 Report Share Posted July 14, 2011 I have declared a class of type byte_array, class byte_array extends uvm_object; byte a; `uvm_object_utils_begin(byte_array) `uvm_field_array_int(a,UVM_ALL_ON) `uvm_object_utils_end function new(int size); a = new; endfunction endclass In the sequence item class i have defined a variable of that type(byte_array). I have registered it with uvm_field object. But its giving an error. Whats the right way to do that? class abc extends uvm_sequence_item; byte_array payload; `uvm_object_utils_begin(abc) `uvm_field_object(payload,UVM_ALL_ON) `uvm_object_utils_end endclass Quote Link to comment Share on other sites More sharing options...
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.