mirror of
https://github.com/Silicon1602/srdl2sv.git
synced 2024-11-13 02:53:37 +00:00
Fix issue with read-mux assignment for multidimensional registers
This commit is contained in:
parent
5475bbf62d
commit
b89bf3663f
@ -117,7 +117,7 @@ class Register(Component):
|
||||
if empty_bits > 0:
|
||||
list_of_fields.append("{}'b0".format(empty_bits))
|
||||
|
||||
list_of_fields.append("{}_q".format(field.path_underscored))
|
||||
list_of_fields.append("{}_q{}".format(field.path_underscored, self.genvars_str))
|
||||
|
||||
# Add to appropriate bytes
|
||||
[bytes_read.add(x) for x in range(field.lsbyte, field.msbyte+1)]
|
||||
|
@ -83,7 +83,7 @@ sw_data_assignment:
|
||||
* Assign all fields to signal to Mux *
|
||||
**************************************/
|
||||
// Assign all fields. Fields that are not readable are tied to 0.
|
||||
assign {sw_data_assignment_var_name}{genvars} = {{{list_of_fields}{genvars}}};
|
||||
assign {sw_data_assignment_var_name}{genvars} = {{{list_of_fields}}};
|
||||
|
||||
// Internal registers are ready immediately
|
||||
assign {sw_rdy_assignment_var_name}{genvars} = {rdy_condition};
|
||||
|
Loading…
Reference in New Issue
Block a user