From 055aab487450cc3b75a069d3e51ada7c4c2e2304 Mon Sep 17 00:00:00 2001 From: Canberk Topal <123963134+ctopal-rl@users.noreply.github.com> Date: Wed, 12 Mar 2025 17:10:25 +0000 Subject: [PATCH] Configure virtual register arrays inside memories using offset argument --- src/peakrdl_uvm/templates/uvm_vreg.sv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 %}