Go to the source code of this file.
Defines | |
| #define | ovm_field_utils |
| #define | ovm_field_utils_begin(T) |
| #define | ovm_field_utils_end |
| #define | ovm_object_utils(T) |
| #define | ovm_object_utils_begin(T) |
| #define | ovm_object_utils_end |
| #define | ovm_component_utils(T) |
| #define | ovm_component_utils_begin(T) |
| #define | ovm_component_utils_end |
| #define | ovm_field_int(ARG, FLAG) |
| #define | ovm_field_enum(T, ARG, FLAG) |
| #define | ovm_field_object(ARG, FLAG) |
| #define | ovm_field_event(ARG, FLAG) |
| #define | ovm_field_string(ARG, FLAG) |
| #define | ovm_field_array_int(ARG, FLAG) |
| #define | ovm_field_sarray_int(ARG, FLAG) |
| #define | ovm_field_array_object(ARG, FLAG) |
| #define | ovm_field_array_string(ARG, FLAG) |
| #define | ovm_field_queue_int(ARG, FLAG) |
| #define | ovm_field_queue_object(ARG, FLAG) |
| #define | ovm_field_queue_string(ARG, FLAG) |
| #define | ovm_field_aa_int_string(ARG, FLAG) |
| #define | ovm_field_aa_object_string(ARG, FLAG) |
| #define | ovm_field_aa_string_string(ARG, FLAG) |
| #define | ovm_field_aa_object_int(ARG, FLAG) |
| #define | ovm_field_aa_int_int(ARG, FLAG) ovm_field_aa_int_key(int, ARG, FLAG) \ |
| #define | ovm_field_aa_int_int_unsigned(ARG, FLAG) ovm_field_aa_int_key(int unsigned, ARG, FLAG) |
| #define | ovm_field_aa_int_integer(ARG, FLAG) ovm_field_aa_int_key(integer, ARG, FLAG) |
| #define | ovm_field_aa_int_integer_unsigned(ARG, FLAG) ovm_field_aa_int_key(integer unsigned, ARG, FLAG) |
| #define | ovm_field_aa_int_byte(ARG, FLAG) ovm_field_aa_int_key(byte, ARG, FLAG) |
| #define | ovm_field_aa_int_byte_unsigned(ARG, FLAG) ovm_field_aa_int_key(byte unsigned, ARG, FLAG) |
| #define | ovm_field_aa_int_shortint(ARG, FLAG) ovm_field_aa_int_key(shortint, ARG, FLAG) |
| #define | ovm_field_aa_int_shortint_unsigned(ARG, FLAG) ovm_field_aa_int_key(shortint unsigned, ARG, FLAG) |
| #define | ovm_field_aa_int_longint(ARG, FLAG) ovm_field_aa_int_key(longint, ARG, FLAG) |
| #define | ovm_field_aa_int_longint_unsigned(ARG, FLAG) ovm_field_aa_int_key(longint unsigned, ARG, FLAG) |
| #define | ovm_field_aa_int_key(KEY, ARG, FLAG) |
| #define | ovm_set_flags(ARG, FLAG) |
| #define | ovm_print_msg_enum(LHS, RHS) |
| #define | ovm_record_int(ARG, FLAG) |
| #define | ovm_record_string(ARG) recorder.record_string(" ", ARG); \ |
| #define | ovm_record_object(ARG, FLAG) |
| #define | ovm_record_any_object(ARG) |
| #define | ovm_new_func |
| #define | ovm_component_new_func ovm_new_func |
| #define | ovm_new_func_data |
| #define | ovm_object_new_func ovm_new_func_data |
| #define | ovm_named_object_new_func |
| #define | ovm_object_create_func(T) |
| #define | ovm_object_factory_create_func(T) |
| #define | ovm_named_object_create_func(T) |
| #define | ovm_named_object_factory_create_func(T) ovm_named_object_create_func(T) |
| #define | ovm_component_factory_create_func(T) |
| #define | ovm_get_type_name_func(T) |
| #define | USE_PARAMETERIZED_WRAPPER |
| #define | ovm_register_self_func(T) |
| #define | ovm_object_registry(T, S) static ovm_object_registry#(T," ") is_auto_registered; |
| #define | ovm_component_registry(T, S) ovm_component_registry#(T," ") is_auto_registered; |
| #define | OVM_FIELD_DATA(ARG, FLAG) |
| #define | OVM_FIELD_ENUM(T, ARG, FLAG) |
| #define | OVM_FIELD_DATA_EVENT(ARG, FLAG) |
| #define | OVM_FIELD_DATA_OBJECT(ARG, FLAG) |
| #define | OVM_FIELD_DATA_STRING(ARG, FLAG) |
| #define | RESIZE_QUEUE_NOCOPY(T, ARG, SIZE) |
| #define | RESIZE_QUEUE_COPY(T, ARG, SIZE) |
| #define | RESIZE_QUEUE_OBJECT_NOCOPY(ARG, SIZE) |
| #define | RESIZE_QUEUE_OBJECT_COPY(ARG, SIZE) |
| #define | ovm_record_array_int(ARG, RADIX, RECORDER) |
| #define | OVM_FIELD_DATA_ARRAY(ARG, FLAG) |
| #define | OVM_FIELD_ARRAY_INT_PACK(ARG, FLAG) |
| #define | OVM_FIELD_QUEUE_INT_PACK(ARG, FLAG) |
| #define | OVM_FIELD_DATA_SARRAY(ARG, FLAG) |
| #define | ovm_record_array_object(ARG, RECORDER) |
| #define | OVM_FIELD_DATA_ARRAY_OBJECT(ARG, FLAG) |
| #define | OVM_FIELD_ARRAY_OBJ_PACK(ARG, FLAG) |
| #define | OVM_FIELD_QUEUE_OBJ_PACK(ARG, FLAG) |
| #define | ovm_record_array_string(ARG, RECORDER) |
| #define | OVM_FIELD_DATA_ARRAY_STRING(ARG, FLAG) |
| #define | OVM_FIELD_ARRAY_STR_PACK(ARG, FLAG) |
| #define | OVM_FIELD_QUEUE_STR_PACK(ARG, FLAG) |
| #define | OVM_COMPARE_FAILED(ARG) |
| #define | OVM_FIELD_DATA_AA_generic(TYPE, KEY, ARG, FLAG) |
| #define | OVM_FIELD_DATA_AA_int_string(ARG, FLAG) OVM_FIELD_DATA_AA_generic(int, string, ARG, FLAG) |
| #define | OVM_FIELD_DATA_AA_int_key(KEY, ARG, FLAG) |
| #define | OVM_FIELD_DATA_AA_object_string(ARG, FLAG) |
| #define | OVM_FIELD_DATA_AA_object_int(ARG, FLAG) |
| #define | OVM_FIELD_DATA_AA_string_string(ARG, FLAG) |
| #define | DOREFERENCECOPY(ARG, FLAG) |
| #define | DODEEPCOPY(ARG, FLAG) |
| #define | DOSHALLOWCOPY(ARG1, ARG2, FLAG) |
| #define | OVM_FIELD_SET(ARG, FLAG) |
| #define | OVM_FIELD_SET_EVENT(ARG, FLAG) |
| #define | OVM_FIELD_SET_OBJECT(ARG, FLAG) |
| #define | OVM_FIELD_SET_STRING(ARG, FLAG) |
| #define | OVM_FIELD_SET_QUEUE_TYPE(ATYPE, ARRAY, RHS, FLAG) |
| #define | OVM_FIELD_SET_QUEUE_OBJECT_TYPE(ARRAY, FLAG) |
| #define | OVM_FIELD_SET_AA_TYPE(INDEX_TYPE, ARRAY_TYPE, ARRAY, RHS, FLAG) |
| #define | OVM_FIELD_SET_AA_OBJECT_TYPE(INDEX_TYPE, ARRAY, FLAG) |
| #define | OVM_FIELD_SET_AA_INT_TYPE(INDEX_TYPE, ARRAY_TYPE, ARRAY, RHS, FLAG) |
| #define | OVM_FIELD_SET_ARRAY_TYPE(ARRAY_TYPE, ARRAY, RHS, FLAG) |
| #define | OVM_FIELD_SET_ARRAY_OBJECT_TYPE(ARRAY, FLAG) |
| #define | OVM_FIELD_SET_ARRAY_OBJECT(ARG, FLAG) |
| #define | OVM_FIELD_SET_QUEUE_OBJECT(ARG, FLAG) |
Functions | |
| case (what__) | |
| #define DODEEPCOPY | ( | ARG, | |||
| FLAG | ) |
Value:
begin \
ovm_object this_d__, from_d__; \
if(tmp_data__ != null) \
if(!$cast(local_data__, tmp_data__)) begin \
ovm_object::m_sc.scratch1 = " "; \
end \
if(ARG != null) $cast(this_d__,ARG); \
if(local_data__.ARG != null) $cast(from_d__,local_data__.ARG); \
\
if((this_d__==null) && (from_d__!=null)) begin \
this_d__ = from_d__.clone(); \
this_d__.set_name(" "); \
end \
else if(from_d__ == null) \
this_d__ = from_d__; \
else begin \
this_d__.copy(from_d__); \
end \
if((this_d__ == null) || !$cast(ARG, this_d__)) begin \
ovm_object::m_sc.scratch1 = " "; \
_global_reporter.ovm_report_error(" ", ovm_object::m_sc.scratch1); \
end \
end
Definition at line 1747 of file ovm_object_defines.svh.
| #define DOREFERENCECOPY | ( | ARG, | |||
| FLAG | ) |
Value:
if( (FLAG)&OVM_REFERENCE)) \ ARG = local_data__.ARG; \
Definition at line 1740 of file ovm_object_defines.svh.
| #define DOSHALLOWCOPY | ( | ARG1, | |||
| ARG2, | |||||
| FLAG | ) |
Value:
if( (FLAG)&OVM_SHALLOW) \ begin \ ovm_object lhs__, rhs__; \ ovm_object::m_sc.scratch1 = " "; \ \ \ if(ARG2==null) ARG1 = ARG2; \ else begin \ if(ARG1 != null) $cast(lhs__, ARG1); \ if(ARG2 != null) $cast(rhs__, ARG2); \ if(rhs__!=null && lhs__!=null) \ lhs__.copy(rhs__); \ else if(rhs__ != null) begin \ $cast(lhs__, rhs__.clone()); \ if (lhs__ != null) \ $cast(ARG1, lhs__); \ end \ else \ ARG1 = null; \ \ end \ end \ else \ begin \ ovm_object::m_sc.scratch1 = " "; \ end
Definition at line 1776 of file ovm_object_defines.svh.
| #define OVM_COMPARE_FAILED | ( | ARG | ) |
Value:
begin \ ovm_object::m_sc.scratch1 = " "; \ ovm_auto_options_object.comparer.result++; \ if(ovm_auto_options_object.comparer.result <= \ ovm_auto_options_object.comparer.show_max) \ begin \ ovm_object::m_sc.scratch1 = " "; \ _global_reporter.ovm_report_info(" ", ovm_object::m_sc.scratch1, 500) \ end \ end
Definition at line 1442 of file ovm_object_defines.svh.
| #define ovm_component_factory_create_func | ( | T | ) |
Value:
function ovm_component create_component (string name, ovm_component parent); \ T tmp; \ tmp = new(.name(name), .parent(parent)); \ return tmp; \ endfunction
Definition at line 724 of file ovm_object_defines.svh.
| #define ovm_component_new_func ovm_new_func |
Definition at line 675 of file ovm_object_defines.svh.
| #define ovm_component_registry | ( | T, | |||
| S | ) | ovm_component_registry#(T," ") is_auto_registered; |
Definition at line 798 of file ovm_object_defines.svh.
| #define ovm_component_utils | ( | T | ) |
Value:
Definition at line 155 of file ovm_object_defines.svh.
| #define ovm_component_utils_begin | ( | T | ) |
Value:
ovm_component_registry(T,T) \ ovm_get_type_name_func(T) \ ovm_field_utils_begin(T)
Definition at line 169 of file ovm_object_defines.svh.
| #define ovm_component_utils_end |
| #define ovm_field_aa_int_byte | ( | ARG, | |||
| FLAG | ) | ovm_field_aa_int_key(byte, ARG, FLAG) |
Definition at line 522 of file ovm_object_defines.svh.
| #define ovm_field_aa_int_byte_unsigned | ( | ARG, | |||
| FLAG | ) | ovm_field_aa_int_key(byte unsigned, ARG, FLAG) |
Definition at line 525 of file ovm_object_defines.svh.
| #define ovm_field_aa_int_int | ( | ARG, | |||
| FLAG | ) | ovm_field_aa_int_key(int, ARG, FLAG) \ |
Definition at line 510 of file ovm_object_defines.svh.
| #define ovm_field_aa_int_int_unsigned | ( | ARG, | |||
| FLAG | ) | ovm_field_aa_int_key(int unsigned, ARG, FLAG) |
Definition at line 513 of file ovm_object_defines.svh.
| #define ovm_field_aa_int_integer | ( | ARG, | |||
| FLAG | ) | ovm_field_aa_int_key(integer, ARG, FLAG) |
Definition at line 516 of file ovm_object_defines.svh.
| #define ovm_field_aa_int_integer_unsigned | ( | ARG, | |||
| FLAG | ) | ovm_field_aa_int_key(integer unsigned, ARG, FLAG) |
Definition at line 519 of file ovm_object_defines.svh.
| #define ovm_field_aa_int_key | ( | KEY, | |||
| ARG, | |||||
| FLAG | ) |
Value:
begin \ if(what__==OVM_CHECK_FIELDS) m_do_field_check(" "); \ m_sc.scope.down(" ", null); \ OVM_FIELD_DATA_AA_int_key(KEY,ARG,FLAG) \ OVM_FIELD_SET_AA_INT_TYPE(KEY, INT, ARG, m_sc.bitstream, FLAG) \ m_sc.scope.up(null); \ end
Definition at line 540 of file ovm_object_defines.svh.
| #define ovm_field_aa_int_longint | ( | ARG, | |||
| FLAG | ) | ovm_field_aa_int_key(longint, ARG, FLAG) |
Definition at line 534 of file ovm_object_defines.svh.
| #define ovm_field_aa_int_longint_unsigned | ( | ARG, | |||
| FLAG | ) | ovm_field_aa_int_key(longint unsigned, ARG, FLAG) |
Definition at line 537 of file ovm_object_defines.svh.
| #define ovm_field_aa_int_shortint | ( | ARG, | |||
| FLAG | ) | ovm_field_aa_int_key(shortint, ARG, FLAG) |
Definition at line 528 of file ovm_object_defines.svh.
| #define ovm_field_aa_int_shortint_unsigned | ( | ARG, | |||
| FLAG | ) | ovm_field_aa_int_key(shortint unsigned, ARG, FLAG) |
Definition at line 531 of file ovm_object_defines.svh.
| #define ovm_field_aa_int_string | ( | ARG, | |||
| FLAG | ) |
Value:
begin \ if(what__==OVM_CHECK_FIELDS) m_do_field_check(" "); \ m_sc.scope.down(" ", null); \ OVM_FIELD_DATA_AA_int_string(ARG,FLAG) \ OVM_FIELD_SET_AA_TYPE(string, INT, ARG, m_sc.bitstream, FLAG) \ m_sc.scope.up(null); \ end
Definition at line 460 of file ovm_object_defines.svh.
| #define ovm_field_aa_object_int | ( | ARG, | |||
| FLAG | ) |
Value:
begin \ if(what__==OVM_CHECK_FIELDS) m_do_field_check(" "); \ m_sc.scope.down(" ", null); \ OVM_FIELD_DATA_AA_object_int(ARG,FLAG) \ OVM_FIELD_SET_AA_OBJECT_TYPE(int, ARG, FLAG) \ m_sc.scope.up(null); \ end
Definition at line 498 of file ovm_object_defines.svh.
| #define ovm_field_aa_object_string | ( | ARG, | |||
| FLAG | ) |
Value:
begin \ if(what__==OVM_CHECK_FIELDS) m_do_field_check(" "); \ m_sc.scope.down(" ", null); \ OVM_FIELD_DATA_AA_object_string(ARG,FLAG) \ OVM_FIELD_SET_AA_OBJECT_TYPE(string, ARG, FLAG) \ m_sc.scope.up(null); \ end
Definition at line 473 of file ovm_object_defines.svh.
| #define ovm_field_aa_string_string | ( | ARG, | |||
| FLAG | ) |
Value:
begin \ if(what__==OVM_CHECK_FIELDS) m_do_field_check(" "); \ m_sc.scope.down(" ", null); \ OVM_FIELD_DATA_AA_string_string(ARG,FLAG) \ OVM_FIELD_SET_AA_TYPE(string, STR, ARG, m_sc.stringv, FLAG) \ m_sc.scope.up(null); \ end
Definition at line 486 of file ovm_object_defines.svh.
| #define ovm_field_array_int | ( | ARG, | |||
| FLAG | ) |
Value:
begin \ if(what__==OVM_CHECK_FIELDS) m_do_field_check(" "); \ m_sc.scope.down(" ",null); \ if(what__==OVM_COPY && !((FLAG)&OVM_NOCOPY)) begin \ if(local_data__!=null) begin \ ARG = new [local_data__.ARG.size()](local_data__.ARG); \ end \ else begin \ ARG.delete(); \ end \ end \ OVM_FIELD_DATA_ARRAY(ARG,FLAG) \ OVM_FIELD_ARRAY_INT_PACK(ARG,FLAG) \ OVM_FIELD_SET_ARRAY_TYPE(INT, ARG, m_sc.bitstream, FLAG) \ m_sc.scope.up(null); \ end
Definition at line 286 of file ovm_object_defines.svh.
| #define OVM_FIELD_ARRAY_INT_PACK | ( | ARG, | |||
| FLAG | ) |
Value:
case(what__) \ OVM_PACK: \ if(((FLAG)&OVM_NOPACK) == 0) \ begin \ if(ovm_auto_options_object.packer.use_metadata == 1) \ ovm_auto_options_object.packer.pack_field_int(ARG.size(), 32); \ foreach(ARG[i]) \ ovm_auto_options_object.packer.pack_field(ARG[i], $bits(ARG[i])); \ end \ OVM_UNPACK: \ if(((FLAG)&OVM_NOPACK) == 0) \ begin \ int s_; \ s_ = ovm_auto_options_object.packer.unpack_field_int(32); \ ARG = new[s_]; \ foreach(ARG[i]) \ ARG[i] = ovm_auto_options_object.packer.unpack_field($bits(ARG[i])); \ end \ endcase
Definition at line 1106 of file ovm_object_defines.svh.
| #define OVM_FIELD_ARRAY_OBJ_PACK | ( | ARG, | |||
| FLAG | ) |
Value:
case(what__) \ OVM_PACK: \ if(((FLAG)&OVM_NOPACK) == 0) \ begin \ if(ovm_auto_options_object.packer.use_metadata == 1) \ ovm_auto_options_object.packer.pack_field_int(ARG.size(), 32); \ foreach(ARG[i]) \ ovm_auto_options_object.packer.pack_object(ARG[i]); \ end \ OVM_UNPACK: \ if(((FLAG)&OVM_NOPACK) == 0) \ begin \ int s_; \ s_ = ovm_auto_options_object.packer.unpack_field_int(32); \ \ if(ARG.size() < s_) \ _global_reporter.ovm_report_error(" ", s_, ARG.size())); \ foreach(ARG[i]) begin \ ovm_auto_options_object.packer.unpack_object(ARG[i]); \ end \
| #define ovm_field_array_object | ( | ARG, | |||
| FLAG | ) |
Value:
begin \
if(what__==OVM_CHECK_FIELDS) m_do_field_check(" "); \
m_sc.scope.down(" ", null); \
if(what__==OVM_COPY && !((FLAG)&OVM_NOCOPY)) begin \
if(local_data__!=null) begin \
ARG = new[local_data__.ARG.size()]; \
end \
else begin \
ARG.delete(); \
end \
end \
OVM_FIELD_DATA_ARRAY_OBJECT(ARG,FLAG) \
OVM_FIELD_ARRAY_OBJ_PACK(ARG,FLAG) \
OVM_FIELD_SET_ARRAY_OBJECT(ARG,FLAG) \
m_sc.scope.up(null); \
end
Definition at line 334 of file ovm_object_defines.svh.
| #define OVM_FIELD_ARRAY_STR_PACK | ( | ARG, | |||
| FLAG | ) |
Value:
case(what__) \ OVM_PACK: \ if(((FLAG)&OVM_NOPACK) == 0) \ begin \ if(ovm_auto_options_object.packer.use_metadata == 1) \ ovm_auto_options_object.packer.pack_field_int(ARG.size(), 32); \ foreach(ARG[i]) \ ovm_auto_options_object.packer.pack_string(ARG[i]); \ end \ OVM_UNPACK: \ if(((FLAG)&OVM_NOPACK) == 0) \ begin \ int s_; \ s_ = ovm_auto_options_object.packer.unpack_field_int(32); \ ARG = new[s_]; \ foreach(ARG[i]) begin \ ARG[i] = ovm_auto_options_object.packer.unpack_string(); \ end \ end \ endcase
Definition at line 1394 of file ovm_object_defines.svh.
| #define ovm_field_array_string | ( | ARG, | |||
| FLAG | ) |
Value:
begin \ if(what__==OVM_CHECK_FIELDS) m_do_field_check(" "); \ m_sc.scope.down(" ", null); \ if(what__==OVM_COPY && !((FLAG)&OVM_NOCOPY)) begin \ if(local_data__!=null) begin \ ARG = new[local_data__.ARG.size()]; \ end \ else begin \ ARG.delete(); \ end \ end \ OVM_FIELD_DATA_ARRAY_STRING(ARG,FLAG) \ OVM_FIELD_ARRAY_STR_PACK(ARG,FLAG) \ OVM_FIELD_SET_ARRAY_TYPE(STR, ARG, m_sc.stringv, FLAG) \ m_sc.scope.up(null); \ end
Definition at line 362 of file ovm_object_defines.svh.
| #define OVM_FIELD_DATA | ( | ARG, | |||
| FLAG | ) |
Definition at line 807 of file ovm_object_defines.svh.
| #define OVM_FIELD_DATA_AA_generic | ( | TYPE, | |||
| KEY, | |||||
| ARG, | |||||
| FLAG | ) |
Definition at line 1458 of file ovm_object_defines.svh.
| #define OVM_FIELD_DATA_AA_int_key | ( | KEY, | |||
| ARG, | |||||
| FLAG | ) |
Definition at line 1514 of file ovm_object_defines.svh.
| #define OVM_FIELD_DATA_AA_int_string | ( | ARG, | |||
| FLAG | ) | OVM_FIELD_DATA_AA_generic(int, string, ARG, FLAG) |
Definition at line 1508 of file ovm_object_defines.svh.
| #define OVM_FIELD_DATA_AA_object_int | ( | ARG, | |||
| FLAG | ) |
Definition at line 1628 of file ovm_object_defines.svh.
| #define OVM_FIELD_DATA_AA_object_string | ( | ARG, | |||
| FLAG | ) |
Definition at line 1570 of file ovm_object_defines.svh.
| #define OVM_FIELD_DATA_AA_string_string | ( | ARG, | |||
| FLAG | ) |
Definition at line 1693 of file ovm_object_defines.svh.
| #define OVM_FIELD_DATA_ARRAY | ( | ARG, | |||
| FLAG | ) |
Definition at line 1053 of file ovm_object_defines.svh.
| #define OVM_FIELD_DATA_ARRAY_OBJECT | ( | ARG, | |||
| FLAG | ) |
Referenced by case().
| #define OVM_FIELD_DATA_ARRAY_STRING | ( | ARG, | |||
| FLAG | ) |
Definition at line 1344 of file ovm_object_defines.svh.
| #define OVM_FIELD_DATA_EVENT | ( | ARG, | |||
| FLAG | ) |
Value:
begin \
int r; \
if(what__ == OVM_PRINT && ( (FLAG)&OVM_NOPRINT != 0) && \
ovm_auto_options_object.printer.knobs.print_fields == 1) \
ovm_auto_options_object.printer.print_generic(" "); \
else if((what__ == OVM_COMPARE) && ( (FLAG)&OVM_NOCOMPARE != 0) && \
local_data__ && ARG != local_data__.ARG) \
begin \
ovm_auto_options_object.comparer.print_msg(" "); \
end \
else if((what__ == OVM_COPY) && local_data__ && ( (FLAG)&OVM_NOCOPY != 0 ) ) \
begin \
ARG = local_data__.ARG; \
end \
end
Definition at line 889 of file ovm_object_defines.svh.
| #define OVM_FIELD_DATA_OBJECT | ( | ARG, | |||
| FLAG | ) |
Definition at line 910 of file ovm_object_defines.svh.
| #define OVM_FIELD_DATA_SARRAY | ( | ARG, | |||
| FLAG | ) |
Value:
begin \ if((what__ & (FLAG)) || (what__ >= OVM_MACRO_EXTRAS)) begin \ int i__, min__, max__; \
Definition at line 1149 of file ovm_object_defines.svh.
| #define OVM_FIELD_DATA_STRING | ( | ARG, | |||
| FLAG | ) |
Value:
begin \
int r; \
if(local_data__ != null) begin \
if($cast(local_data__, tmp_data__)) begin \
r = m_do_data_string(" ", ARG, local_data__.ARG, what__, FLAG); \
end \
end \
else \
r = m_do_data_string(" ", what__, FLAG); \
end
Definition at line 975 of file ovm_object_defines.svh.
| #define OVM_FIELD_ENUM | ( | T, | |||
| ARG, | |||||
| FLAG | ) |
Definition at line 843 of file ovm_object_defines.svh.
| #define ovm_field_enum | ( | T, | |||
| ARG, | |||||
| FLAG | ) |
Value:
begin \ m_sc.scope.set_arg(" "); \ OVM_FIELD_ENUM(T,ARG,FLAG) \ m_sc.scope.unset_arg(" "); \ end
Definition at line 213 of file ovm_object_defines.svh.
| #define ovm_field_event | ( | ARG, | |||
| FLAG | ) |
Value:
begin \ if(what__==OVM_CHECK_FIELDS) m_do_field_check(" "); \ m_sc.scope.down(" ", null); \ OVM_FIELD_DATA_EVENT(ARG,FLAG) \ m_sc.scope.up(null); \ end
Definition at line 249 of file ovm_object_defines.svh.
| #define ovm_field_int | ( | ARG, | |||
| FLAG | ) |
Value:
begin \ if(what__==OVM_CHECK_FIELDS) m_do_field_check(" "); \ m_sc.scope.set_arg(" "); \ OVM_FIELD_DATA(ARG,FLAG) \ OVM_FIELD_SET(ARG,FLAG) \ m_sc.scope.unset_arg(" "); \ end
Definition at line 203 of file ovm_object_defines.svh.
| #define ovm_field_object | ( | ARG, | |||
| FLAG | ) |
Value:
if((ARG==null) || !m_sc.scope.in_hierarchy(ARG)) begin \ if(what__==OVM_CHECK_FIELDS) m_do_field_check(" "); \ m_sc.scope.down(" ", ARG); \ OVM_FIELD_DATA_OBJECT(ARG,FLAG) \ OVM_FIELD_SET_OBJECT(ARG,FLAG) \ m_sc.scope.up(ARG); \ end
Definition at line 230 of file ovm_object_defines.svh.
| #define ovm_field_queue_int | ( | ARG, | |||
| FLAG | ) |
Value:
begin \ if(what__==OVM_CHECK_FIELDS) m_do_field_check(" "); \ m_sc.scope.down(" ", null); \ if(what__==OVM_COPY && !((FLAG)&OVM_NOCOPY)) begin \ if(local_data__!=null) begin \ RESIZE_QUEUE_NOCOPY(ovm_bitstream_t, ARG, local_data__.ARG.size()) \ end \ else begin \ RESIZE_QUEUE_NOCOPY(ovm_bitstream_t, ARG, 0) \ end \ end \ OVM_FIELD_DATA_ARRAY(ARG,FLAG) \ OVM_FIELD_QUEUE_INT_PACK(ARG,FLAG) \ OVM_FIELD_SET_QUEUE_TYPE(INT, ARG, m_sc.bitstream, FLAG) \ m_sc.scope.up(null); \ end
Definition at line 382 of file ovm_object_defines.svh.
| #define OVM_FIELD_QUEUE_INT_PACK | ( | ARG, | |||
| FLAG | ) |
Value:
case(what__) \ OVM_PACK: \ if(((FLAG)&OVM_NOPACK) == 0) \ begin \ if(ovm_auto_options_object.packer.use_metadata == 1) \ ovm_auto_options_object.packer.pack_field_int(ARG.size(), 32); \ foreach(ARG[i]) \ ovm_auto_options_object.packer.pack_field(ARG[i], $bits(ARG[i])); \ end \ OVM_UNPACK: \ if(((FLAG)&OVM_NOPACK) == 0) \ begin \ int s_; \ s_ = ovm_auto_options_object.packer.unpack_field_int(32); \ while(ARG.size() < s_) ARG.push_back(0); \ while(ARG.size() > s_) void(ARG.pop_front()); \ foreach(ARG[i]) \ ARG[i] = ovm_auto_options_object.packer.unpack_field($bits(ARG[i])); \ end \ endcase
Definition at line 1127 of file ovm_object_defines.svh.
| #define OVM_FIELD_QUEUE_OBJ_PACK | ( | ARG, | |||
| FLAG | ) |
Value:
case(what__) \ OVM_PACK: \ if(((FLAG)&OVM_NOPACK) == 0) \ begin \ if(ovm_auto_options_object.packer.use_metadata == 1) \ ovm_auto_options_object.packer.pack_field_int(ARG.size(), 32); \ foreach(ARG[i]) \ ovm_auto_options_object.packer.pack_object(ARG[i]); \ end \ OVM_UNPACK: \ if(((FLAG)&OVM_NOPACK) == 0) \ begin \ int s_; \ s_ = ovm_auto_options_object.packer.unpack_field_int(32); \ \ if(ARG.size() < s_) \ _global_reporter.ovm_report_error(" ", s_, ARG.size())); \ foreach(ARG[i]) begin \ ovm_auto_options_object.packer.unpack_object(ARG[i]); \ end \
| #define ovm_field_queue_object | ( | ARG, | |||
| FLAG | ) |
Value:
begin \
if(what__==OVM_CHECK_FIELDS) m_do_field_check(" "); \
m_sc.scope.down(" ", null); \
if(what__==OVM_COPY && !((FLAG)&OVM_NOCOPY)) begin \
if(local_data__!=null) begin \
RESIZE_QUEUE_OBJECT_NOCOPY(ARG, local_data__.ARG.size()) \
end \
else begin \
RESIZE_QUEUE_OBJECT_NOCOPY(ARG, 0) \
end \
end \
OVM_FIELD_DATA_ARRAY_OBJECT(ARG,FLAG) \
OVM_FIELD_QUEUE_OBJ_PACK(ARG,FLAG) \
OVM_FIELD_SET_QUEUE_OBJECT(ARG,FLAG) \
m_sc.scope.up(null); \
end
Definition at line 410 of file ovm_object_defines.svh.
| #define OVM_FIELD_QUEUE_STR_PACK | ( | ARG, | |||
| FLAG | ) |
Value:
case(what__) \ OVM_PACK: \ if(((FLAG)&OVM_NOPACK) == 0) \ begin \ if(ovm_auto_options_object.packer.use_metadata == 1) \ ovm_auto_options_object.packer.pack_field_int(ARG.size(), 32); \ foreach(ARG[i]) \ ovm_auto_options_object.packer.pack_string(ARG[i]); \ end \ OVM_UNPACK: \ if(((FLAG)&OVM_NOPACK) == 0) \ begin \ int s_; \ s_ = ovm_auto_options_object.packer.unpack_field_int(32); \ while(ARG.size() < s_) ARG.push_back(" "); \ while(ARG.size() > s_) void(ARG.pop_front()); \ foreach(ARG[i]) begin \ ARG[i] = ovm_auto_options_object.packer.unpack_string(); \ end \ end \ endcase
Definition at line 1416 of file ovm_object_defines.svh.
| #define ovm_field_queue_string | ( | ARG, | |||
| FLAG | ) |
Value:
begin \ if(what__==OVM_CHECK_FIELDS) m_do_field_check(" "); \ m_sc.scope.down(" ", null); \ if(what__==OVM_COPY && !((FLAG)&OVM_NOCOPY)) begin \ if(local_data__!=null) begin \ RESIZE_QUEUE_NOCOPY(string, ARG, local_data__.ARG.size()) \ end \ else begin \ RESIZE_QUEUE_NOCOPY(string, ARG, 0) \ end \ end \ OVM_FIELD_DATA_ARRAY_STRING(ARG,FLAG) \ OVM_FIELD_QUEUE_STR_PACK(ARG,FLAG) \ OVM_FIELD_SET_QUEUE_TYPE(STR, ARG, m_sc.stringv, FLAG) \ m_sc.scope.up(null); \ end
Definition at line 438 of file ovm_object_defines.svh.
| #define ovm_field_sarray_int | ( | ARG, | |||
| FLAG | ) |
| #define OVM_FIELD_SET | ( | ARG, | |||
| FLAG | ) |
Value:
if(ovm_object::m_do_set (str__, " ", ARG, what__, FLAG)) begin \ m_sc.scope.up(null); \ return; \ end
Definition at line 1808 of file ovm_object_defines.svh.
| #define OVM_FIELD_SET_AA_INT_TYPE | ( | INDEX_TYPE, | |||
| ARRAY_TYPE, | |||||
| ARRAY, | |||||
| RHS, | |||||
| FLAG | ) |
Value:
if((what__ >= OVM_START_FUNCS && what__ <= OVM_END_FUNCS) && (((FLAG)&OVM_READONLY) == 0)) begin \ bit wildcard_index; \ INDEX_TYPE index; \ index = ovm_get_array_index_int(str__, wildcard_index); \ if(what__==OVM_SETARRAY_TYPE) \ begin \ if(ovm_is_array(str__) ) begin\ if(wildcard_index) begin \ if(ARRAY.first(index)) \ do begin \ if(ovm_is_match(str__, {m_sc.scope.get_arg(),$psprintf(" ", index)})) begin \ ARRAY[index] = RHS; \ m_sc.status = 1; \ end \ end while(ARRAY.next(index));\ end \ else if(ovm_is_match(str__, {m_sc.scope.get_arg(),$psprintf(" ", index)})) begin \ ARRAY[index] = RHS; \ m_sc.status = 1; \ end \ end \ end \ end
Definition at line 1962 of file ovm_object_defines.svh.
| #define OVM_FIELD_SET_AA_OBJECT_TYPE | ( | INDEX_TYPE, | |||
| ARRAY, | |||||
| FLAG | ) |
Definition at line 1929 of file ovm_object_defines.svh.
| #define OVM_FIELD_SET_AA_TYPE | ( | INDEX_TYPE, | |||
| ARRAY_TYPE, | |||||
| ARRAY, | |||||
| RHS, | |||||
| FLAG | ) |
Value: