diff --git a/src/peakrdl_uvm/templates/uvm_vreg.sv b/src/peakrdl_uvm/templates/uvm_vreg.sv index 67e0b10..84ef75b 100644 --- a/src/peakrdl_uvm/templates/uvm_vreg.sv +++ b/src/peakrdl_uvm/templates/uvm_vreg.sv @@ -65,6 +65,6 @@ this.{{get_inst_name(node)}} = {{get_class_name(node)}}::type_id::create("{{get_ {%- else %} this.{{get_inst_name(node)}} = new("{{get_inst_name(node)}}"); {%- endif %} -this.{{get_inst_name(node)}}.configure(this, this.m_mem, {{node.inst.n_elements}}); +this.{{get_inst_name(node)}}.configure(this, this.m_mem, {{node.inst.n_elements}}, {{node.raw_address_offset}} / 8); this.{{get_inst_name(node)}}.build(); {%- endmacro %}