Skip to content

Commit 48cbce5

Browse files
mtdudekkgugala
authored andcommitted
Rename RDL parameters
Signed-off-by: Maciej Dudek <[email protected]>
1 parent 7a0a66f commit 48cbce5

File tree

4 files changed

+33
-33
lines changed

4 files changed

+33
-33
lines changed

src/rdl/base_registers.rdl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ regfile BaseRegs #(
88
bit Data_endianness = 1'b0,
99
boolean AUTOCMD_separated_reporting_dynamic = false,
1010
bit AUTOCMD_separated_reporting_support = 1'b0,
11-
boolean DEV_ctx_SG_support = false,
11+
boolean DEV_CTX_SG_support = false,
1212
boolean DEV_IBI_SG_support = false,
1313
boolean DEV_CR_SG_support = false,
14-
bit CMD_size = 2'b0,
14+
bit CMD_size_reset = 2'b0,
1515
boolean Scheduled_commands_support = false,
1616
boolean IBI_credit_count_support = false,
1717
boolean IBI_data_abort_support = false,
@@ -178,7 +178,7 @@ regfile BaseRegs #(
178178
1 - controller supports scatter-gather";
179179
sw = r;
180180
hw = na;
181-
reset = DEV_ctx_SG_support;
181+
reset = DEV_CTX_SG_support;
182182
} SG_CAPABILITY_DC_EN[30:30];
183183
field {
184184
name = "SG_CAPABILITY_IBI_EN";
@@ -211,7 +211,7 @@ regfile BaseRegs #(
211211
all other reserved.";
212212
sw = r;
213213
hw = na;
214-
reset = CMD_size;
214+
reset = CMD_size_reset;
215215
} CMD_SIZE[21:20];
216216
field {
217217
name = "SCHEDULED_COMMANDS_EN";
@@ -766,16 +766,16 @@ regfile BaseRegs #(
766766
0 - continuous physical memory region,
767767

768768
1 - pointer to SG descriptor list.";
769-
sw = DEV_ctx_SG_support ? rw : r;
770-
hw = DEV_ctx_SG_support ? r : na;
769+
sw = DEV_CTX_SG_support ? rw : r;
770+
hw = DEV_CTX_SG_support ? r : na;
771771
reset = 1'b0;
772772
} BLP[31:31];
773773
// We don't support SG, so it always reads 0
774774
field {
775775
name = "LIST_SIZE";
776776
desc = "Number of SG entries.";
777-
sw = DEV_ctx_SG_support ? rw : r;
778-
hw = DEV_ctx_SG_support ? r : na;
777+
sw = DEV_CTX_SG_support ? rw : r;
778+
hw = DEV_CTX_SG_support ? r : na;
779779
reset = 16'h0;
780780
} LIST_SIZE[15:0];
781781
} DEV_CTX_SG @ 0x68;

src/rdl/ec_registers.rdl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@ regfile ECRegisters #(
1212
bit tti_rx_fifo_size = 0x5, // 64 DWORDs by default
1313
bit tti_tx_fifo_size = 0x5, // 64 DWORDs by default
1414
bit tti_ibi_fifo_size = 0x5, // 64 DWORDs by default
15-
bit pid_hi = 0x0,
16-
bit pid_lo = 0x0,
17-
bit virtual_pid_hi = 0x0,
18-
bit virtual_pid_lo = 0x0
15+
bit pid_hi_reset = 0x0,
16+
bit pid_lo_reset = 0x0,
17+
bit virtual_pid_hi_reset = 0x0,
18+
bit virtual_pid_lo_reset = 0x0
1919
){
2020
name = "Extended Capabilities";
2121
SecureFirmwareRecoveryInterfaceRegisters SecFwRecoveryIf @ 0x0;
2222
StandbyControllerModeRegisters #(
23-
.pid_hi(pid_hi),
24-
.pid_lo(pid_lo),
25-
.virtual_pid_hi(virtual_pid_hi),
26-
.virtual_pid_lo(virtual_pid_lo)
23+
.pid_hi_reset(pid_hi_reset),
24+
.pid_lo_reset(pid_lo_reset),
25+
.virtual_pid_hi_reset(virtual_pid_hi_reset),
26+
.virtual_pid_lo_reset(virtual_pid_lo_reset)
2727
) StdbyCtrlMode;
2828
TargetTransactionInterfaceRegisters #(
2929
.rx_desc_fifo_size(tti_rx_desc_fifo_size),

src/rdl/registers.rdl

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ addrmap I3CCSR #(
2525
bit tti_rx_fifo_size = 0x5, // 64 DWORDs by default
2626
bit tti_tx_fifo_size = 0x5, // 64 DWORDs by default
2727
bit tti_ibi_fifo_size = 0x5, // 64 DWORDs by default
28-
bit pid_hi = 0x7FFF, // Vendor-specific values
29-
bit pid_lo = 0x005A00A5, // Vendor-specific values, test value
30-
bit virtual_pid_hi = 0x7FFF, // Virtual device Vendor-specific values
31-
bit virtual_pid_lo = 0x005A10A5 // Virtual device Vendor-specific values, test value
28+
bit pid_hi_reset = 0x7FFF, // Vendor-specific values
29+
bit pid_lo_reset = 0x005A00A5, // Vendor-specific values, test value
30+
bit virtual_pid_hi_reset = 0x7FFF, // Virtual device Vendor-specific values
31+
bit virtual_pid_lo_reset = 0x005A10A5 // Virtual device Vendor-specific values, test value
3232
){
3333
signal {activelow; async; cpuif_reset; field_reset;} rst_ni;
3434
BaseRegs #(
@@ -42,7 +42,7 @@ addrmap I3CCSR #(
4242
// TODO: Update to correct values after implementation is done
4343
.AUTOCMD_separated_reporting_dynamic(false),
4444
.AUTOCMD_separated_reporting_support(1'b0),
45-
.DEV_ctx_SG_support(false),
45+
.DEV_CTX_SG_support(false),
4646
.DEV_IBI_SG_support(false),
4747
.DEV_CR_SG_support(false),
4848
.Scheduled_commands_support(false),
@@ -76,10 +76,10 @@ addrmap I3CCSR #(
7676
.tti_rx_fifo_size(tti_rx_fifo_size),
7777
.tti_tx_fifo_size(tti_tx_fifo_size),
7878
.tti_ibi_fifo_size(tti_ibi_fifo_size),
79-
.pid_hi(pid_hi),
80-
.pid_lo(pid_lo),
81-
.virtual_pid_hi(virtual_pid_hi),
82-
.virtual_pid_lo(virtual_pid_lo)
79+
.pid_hi_reset(pid_hi_reset),
80+
.pid_lo_reset(pid_lo_reset),
81+
.virtual_pid_hi_reset(virtual_pid_hi_reset),
82+
.virtual_pid_lo_reset(virtual_pid_lo_reset)
8383
) I3C_EC @ EC_offset;
8484
mem {
8585
name = "Device Address Table";

src/rdl/standby_controller_mode.rdl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33

44
regfile StandbyControllerModeRegisters#(
5-
bit pid_hi,
6-
bit pid_lo,
7-
bit virtual_pid_hi,
8-
bit virtual_pid_lo
5+
bit pid_hi_reset,
6+
bit pid_lo_reset,
7+
bit virtual_pid_hi_reset,
8+
bit virtual_pid_lo_reset
99
){
1010
name = "Standby Controller Mode";
1111
default regwidth = 32;
@@ -325,7 +325,7 @@ regfile StandbyControllerModeRegisters#(
325325
desc = "High part of the 48-bit Target Device Provisioned ID.";
326326
hw = r;
327327
sw = rw;
328-
reset = virtual_pid_hi;
328+
reset = virtual_pid_hi_reset;
329329
} PID_HI[15:1];
330330
} STBY_CR_VIRTUAL_DEVICE_CHAR;
331331
reg {
@@ -397,7 +397,7 @@ regfile StandbyControllerModeRegisters#(
397397
desc = "High part of the 48-bit Target Device Provisioned ID.";
398398
hw = r;
399399
sw = rw;
400-
reset = pid_hi;
400+
reset = pid_hi_reset;
401401
} PID_HI[15:1];
402402
} STBY_CR_DEVICE_CHAR;
403403
reg {
@@ -408,7 +408,7 @@ regfile StandbyControllerModeRegisters#(
408408
desc = "Low part of the 48-bit Target Device Provisioned ID.";
409409
hw = r;
410410
sw = rw;
411-
reset = pid_lo;
411+
reset = pid_lo_reset;
412412
} PID_LO[31:0];
413413
} STBY_CR_DEVICE_PID_LO;
414414
reg {
@@ -505,7 +505,7 @@ regfile StandbyControllerModeRegisters#(
505505
desc = "Low part of the 48-bit Target Virtual Device Provisioned ID.";
506506
hw = r;
507507
sw = rw;
508-
reset = virtual_pid_lo;
508+
reset = virtual_pid_lo_reset;
509509
} PID_LO[31:0];
510510
} STBY_CR_VIRTUAL_DEVICE_PID_LO;
511511
reg {

0 commit comments

Comments
 (0)