Skip to content

Commit 130abf7

Browse files
authored
library/util_pack/: add labels to loops inside generate (#1938)
Add missing block names to loops in pack_shell.v Signed-off-by: Laez Barbosa <laez.barbosa@analog.com>
1 parent fd9e0ec commit 130abf7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/util_pack/util_pack_common/pack_shell.v

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ module pack_shell #(
219219

220220
/* Copy the samples_enable to the first row to make addressing it easier */
221221
genvar j;
222-
for (j = 0; j < NUM_OF_SAMPLES; j = j + 1) begin
222+
for (j = 0; j < NUM_OF_SAMPLES; j = j + 1) begin: samples_enable_copy
223223
assign prefix_count_tmp[0][j] = ~samples_enable[j];
224224
end
225225

@@ -231,8 +231,8 @@ module pack_shell #(
231231
* prefix_count_tmp[3] = '1 2 3 4 5 6 7 8'
232232
*/
233233
genvar k;
234-
for (j = 1; j < LOG2_NUM_OF_SAMPLES + 1; j = j + 1) begin
235-
for (k = 0; k < NUM_OF_SAMPLES; k = k + 1) begin
234+
for (j = 1; j < LOG2_NUM_OF_SAMPLES + 1; j = j + 1) begin: prefix_count_tmp_lines
235+
for (k = 0; k < NUM_OF_SAMPLES; k = k + 1) begin: prefix_count_tmp_cols
236236
if (k < 2 ** (j-1)) begin
237237
assign prefix_count_tmp[j][k] = prefix_count_tmp[j-1][k];
238238
end else begin

0 commit comments

Comments
 (0)