In reply to chr_sue:
Ok, that is the configure of the block wrapping the memory.
In my code it is like this:
my_mem m_mem;
virtual function void build();
this.m_mem = new("my_mem");
this.m_mem.configure(this);
this.default_map.add_mem(this.m_mem, 0, "WO");
endfunction : build