Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions hw/ip/bkdr_loader/data/bkdr_loader.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@
type: "int unsigned",
default: "8",
}
{ name: "TargetIdxWidth",
desc: "Maximum width of targets",
type: "int unsigned",
default: "8",
}
]

regwidth: "32",
Expand Down Expand Up @@ -122,6 +127,7 @@
hwaccess: "hro",
desc: '''
The bkdr memory index to write to.
The size of this field must match the parameter TargetIdxWidth.
''',
},
]
Expand Down
1 change: 1 addition & 0 deletions hw/ip/bkdr_loader/doc/registers.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ Control register

### CONTROL . TARGET_IDX
The bkdr memory index to write to.
The size of this field must match the parameter TargetIdxWidth.

### CONTROL . CLEAR_START
Write 1 to trigger the bkdr_loader to clear the entire target memory
Expand Down
2 changes: 1 addition & 1 deletion hw/ip/bkdr_loader/rtl/bkdr_loader_pkg.sv
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ package bkdr_loader_pkg;
typedef logic [MaxWordWidth-1:0] word_t;

// Target indices
typedef enum logic [$clog2(NumBkdrTgts)-1:0] {
typedef enum logic [TargetIdxWidth-1:0] {
BkdrAon = 'd11,
BkdrFlashB1I2 = 'd10,
BkdrFlashB1I1 = 'd9,
Expand Down
1 change: 1 addition & 0 deletions hw/ip/bkdr_loader/rtl/bkdr_loader_reg_pkg.sv
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ package bkdr_loader_reg_pkg;
// Param list
parameter int unsigned NumBkdrTgts = 12;
parameter int unsigned MaxWordWidthDiv32 = 8;
parameter int unsigned TargetIdxWidth = 8;

// Address widths within the block
parameter int RegsAw = 11;
Expand Down
Loading