|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
transaction中定义如下:
rand bit [17:0] pload [];
rand bit[17:0] header0;
rand bit[17:0] header1;
rand bit[17:0] header2;
rand bit[17:0] header3;
rand bit[17:0] header4;
rand bit[17:0] header5;
`uvm_object_utils_begin(my_transaction)
`uvm_field_int(header0, UVM_ALL_ON)
`uvm_field_int(header1, UVM_ALL_ON)
`uvm_field_int(header2, UVM_ALL_ON)
`uvm_field_int(header3, UVM_ALL_ON)
`uvm_field_int(header4, UVM_ALL_ON)
`uvm_field_int(header5, UVM_ALL_ON)
`uvm_field_array_int(pload, UVM_ALL_ON)
`uvm_object_utils_end
当pload中的数据长度增加,总数据量超过4KByte时(包括header),使用pack_ints函数将transaction转成int类型的bit流,只有前4Kbyte数据是有效的,其他的数据全部为0(已确认transaction的pload所有值都是有效的,数据长度也是正常的),求高手指点
|
|