这里介绍mem模型的常用方法,
write,
read
burst_write,
burst_read
class my_mem extends uvm_mem;
function new (strng name);
super.new(name,1024,32,"RW");
endfunction
endclass
class my_blk extends uvm_reg_block;
my_mem mem_clent;
uvm_reg_map my_map;
function build();
mem_clent=my_mem::type_id::create("mem_client");
mem_client.configure(this