diff --git a/srdl2sv/components/templates/regs.yaml b/srdl2sv/components/templates/regs.yaml index 423d180..c439e50 100644 --- a/srdl2sv/components/templates/regs.yaml +++ b/srdl2sv/components/templates/regs.yaml @@ -66,4 +66,4 @@ sw_read_assignment: /************************************** * Assign all fields to signal to Mux * **************************************/ - assign {sw_read_assignment_var_name}{genvars} = {{{list_of_fields}}}; + assign {sw_read_assignment_var_name}{genvars} = {{{list_of_fields}{genvars}}};