Skip to content

Commit

Permalink
[top] Use new 'unpacked_dimensions' parameter field in templates
Browse files Browse the repository at this point in the history
Update both earlgrey and darjeeling templates

Signed-off-by: Greg Chadwick <[email protected]>
  • Loading branch information
GregAC committed Oct 29, 2024
1 parent 1236c2d commit a6534b7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hw/top_darjeeling/templates/toplevel.sv.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ module top_${top["name"]} #(
p_type_word = p_type + ' ' if p_type else ''

p_lhs = f'{p_type_word}{p_exp["name_top"]}'

if 'unpacked_dimensions' in p_exp:
p_lhs += p_exp['unpacked_dimensions']

p_rhs = p_exp['default']

params_follow = not loop.last or loop.parent.index < last_modidx_with_params
Expand Down
4 changes: 4 additions & 0 deletions hw/top_earlgrey/templates/toplevel.sv.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ module top_${top["name"]} #(
p_type_word = p_type + ' ' if p_type else ''

p_lhs = f'{p_type_word}{p_exp["name_top"]}'

if 'unpacked_dimensions' in p_exp:
p_lhs += p_exp['unpacked_dimensions']

p_rhs = p_exp['default']

params_follow = not loop.last or loop.parent.index < last_modidx_with_params
Expand Down

0 comments on commit a6534b7

Please sign in to comment.