Skip to content

Commit 8fe0fb5

Browse files
committed
[bkdr_loader,rtl] Fix tgt_idx_err
tgt_idx_err was not set when the index exceeded NumBkdrTgts because it was casted to a logic with fewer bits. The enum is now changed to an 8b enum such that the cast is not dropping any bits. Signed-off-by: Michael Gautschi <mgautschi@lowrisc.org>
1 parent e0950bf commit 8fe0fb5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

hw/ip/bkdr_loader/rtl/bkdr_loader_pkg.sv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ package bkdr_loader_pkg;
3131
typedef logic [MaxWordWidth-1:0] word_t;
3232

3333
// Target indices
34-
typedef enum logic [$clog2(NumBkdrTgts)-1:0] {
34+
typedef enum logic [7:0] {
3535
BkdrAon = 'd11,
3636
BkdrFlashB1I2 = 'd10,
3737
BkdrFlashB1I1 = 'd9,

0 commit comments

Comments
 (0)