@@ -1072,28 +1072,6 @@ module I3CCSR (
1072
1072
logic load_next;
1073
1073
} DYNAMIC_ADDR_VALID;
1074
1074
} STBY_CR_DEVICE_ADDR;
1075
- struct packed{
1076
- struct packed{
1077
- logic next;
1078
- logic load_next;
1079
- } SIMPLE_CRR_SUPPORT;
1080
- struct packed{
1081
- logic next;
1082
- logic load_next;
1083
- } TARGET_XACT_SUPPORT;
1084
- struct packed{
1085
- logic next;
1086
- logic load_next;
1087
- } DAA_SETAASA_SUPPORT;
1088
- struct packed{
1089
- logic next;
1090
- logic load_next;
1091
- } DAA_SETDASA_SUPPORT;
1092
- struct packed{
1093
- logic next;
1094
- logic load_next;
1095
- } DAA_ENTDAA_SUPPORT;
1096
- } STBY_CR_CAPABILITIES;
1097
1075
struct packed{
1098
1076
struct packed{
1099
1077
logic [31:0] next;
@@ -2303,23 +2281,6 @@ module I3CCSR (
2303
2281
logic value;
2304
2282
} DYNAMIC_ADDR_VALID;
2305
2283
} STBY_CR_DEVICE_ADDR;
2306
- struct packed{
2307
- struct packed{
2308
- logic value;
2309
- } SIMPLE_CRR_SUPPORT;
2310
- struct packed{
2311
- logic value;
2312
- } TARGET_XACT_SUPPORT;
2313
- struct packed{
2314
- logic value;
2315
- } DAA_SETAASA_SUPPORT;
2316
- struct packed{
2317
- logic value;
2318
- } DAA_SETDASA_SUPPORT;
2319
- struct packed{
2320
- logic value;
2321
- } DAA_ENTDAA_SUPPORT;
2322
- } STBY_CR_CAPABILITIES;
2323
2284
struct packed{
2324
2285
struct packed{
2325
2286
logic [31:0] value;
@@ -6463,132 +6424,11 @@ module I3CCSR (
6463
6424
end
6464
6425
end
6465
6426
assign hwif_out.I3C_EC.StdbyCtrlMode.STBY_CR_DEVICE_ADDR.DYNAMIC_ADDR_VALID.value = field_storage.I3C_EC.StdbyCtrlMode.STBY_CR_DEVICE_ADDR.DYNAMIC_ADDR_VALID.value;
6466
- // Field: I3CCSR.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.SIMPLE_CRR_SUPPORT
6467
- always_comb begin
6468
- automatic logic [0:0] next_c;
6469
- automatic logic load_next_c;
6470
- next_c = field_storage.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.SIMPLE_CRR_SUPPORT.value;
6471
- load_next_c = '0;
6472
- if(decoded_reg_strb.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES && decoded_req_is_wr) begin // SW write
6473
- next_c = (field_storage.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.SIMPLE_CRR_SUPPORT.value & ~decoded_wr_biten[5:5]) | (decoded_wr_data[5:5] & decoded_wr_biten[5:5]);
6474
- load_next_c = '1;
6475
- end else begin // HW Write
6476
- next_c = hwif_in.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.SIMPLE_CRR_SUPPORT.next;
6477
- load_next_c = '1;
6478
- end
6479
- field_combo.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.SIMPLE_CRR_SUPPORT.next = next_c;
6480
- field_combo.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.SIMPLE_CRR_SUPPORT.load_next = load_next_c;
6481
- end
6482
- always_ff @(posedge clk) begin
6483
- if(field_combo.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.SIMPLE_CRR_SUPPORT.load_next) begin
6484
- field_storage.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.SIMPLE_CRR_SUPPORT.value <= field_combo.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.SIMPLE_CRR_SUPPORT.next;
6485
- end
6486
- end
6487
- assign hwif_out.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.SIMPLE_CRR_SUPPORT.value = field_storage.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.SIMPLE_CRR_SUPPORT.value;
6488
- // Field: I3CCSR.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.TARGET_XACT_SUPPORT
6489
- always_comb begin
6490
- automatic logic [0:0] next_c;
6491
- automatic logic load_next_c;
6492
- next_c = field_storage.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.TARGET_XACT_SUPPORT.value;
6493
- load_next_c = '0;
6494
- if(decoded_reg_strb.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES && decoded_req_is_wr) begin // SW write
6495
- next_c = (field_storage.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.TARGET_XACT_SUPPORT.value & ~decoded_wr_biten[12:12]) | (decoded_wr_data[12:12] & decoded_wr_biten[12:12]);
6496
- load_next_c = '1;
6497
- end else begin // HW Write
6498
- next_c = hwif_in.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.TARGET_XACT_SUPPORT.next;
6499
- load_next_c = '1;
6500
- end
6501
- field_combo.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.TARGET_XACT_SUPPORT.next = next_c;
6502
- field_combo.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.TARGET_XACT_SUPPORT.load_next = load_next_c;
6503
- end
6504
- always_ff @(posedge clk or negedge hwif_in.rst_ni) begin
6505
- if(~hwif_in.rst_ni) begin
6506
- field_storage.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.TARGET_XACT_SUPPORT.value <= 1'h1;
6507
- end else begin
6508
- if(field_combo.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.TARGET_XACT_SUPPORT.load_next) begin
6509
- field_storage.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.TARGET_XACT_SUPPORT.value <= field_combo.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.TARGET_XACT_SUPPORT.next;
6510
- end
6511
- end
6512
- end
6513
- assign hwif_out.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.TARGET_XACT_SUPPORT.value = field_storage.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.TARGET_XACT_SUPPORT.value;
6514
- // Field: I3CCSR.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.DAA_SETAASA_SUPPORT
6515
- always_comb begin
6516
- automatic logic [0:0] next_c;
6517
- automatic logic load_next_c;
6518
- next_c = field_storage.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.DAA_SETAASA_SUPPORT.value;
6519
- load_next_c = '0;
6520
- if(decoded_reg_strb.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES && decoded_req_is_wr) begin // SW write
6521
- next_c = (field_storage.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.DAA_SETAASA_SUPPORT.value & ~decoded_wr_biten[13:13]) | (decoded_wr_data[13:13] & decoded_wr_biten[13:13]);
6522
- load_next_c = '1;
6523
- end else begin // HW Write
6524
- next_c = hwif_in.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.DAA_SETAASA_SUPPORT.next;
6525
- load_next_c = '1;
6526
- end
6527
- field_combo.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.DAA_SETAASA_SUPPORT.next = next_c;
6528
- field_combo.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.DAA_SETAASA_SUPPORT.load_next = load_next_c;
6529
- end
6530
- always_ff @(posedge clk or negedge hwif_in.rst_ni) begin
6531
- if(~hwif_in.rst_ni) begin
6532
- field_storage.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.DAA_SETAASA_SUPPORT.value <= 1'h1;
6533
- end else begin
6534
- if(field_combo.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.DAA_SETAASA_SUPPORT.load_next) begin
6535
- field_storage.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.DAA_SETAASA_SUPPORT.value <= field_combo.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.DAA_SETAASA_SUPPORT.next;
6536
- end
6537
- end
6538
- end
6539
- assign hwif_out.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.DAA_SETAASA_SUPPORT.value = field_storage.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.DAA_SETAASA_SUPPORT.value;
6540
- // Field: I3CCSR.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.DAA_SETDASA_SUPPORT
6541
- always_comb begin
6542
- automatic logic [0:0] next_c;
6543
- automatic logic load_next_c;
6544
- next_c = field_storage.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.DAA_SETDASA_SUPPORT.value;
6545
- load_next_c = '0;
6546
- if(decoded_reg_strb.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES && decoded_req_is_wr) begin // SW write
6547
- next_c = (field_storage.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.DAA_SETDASA_SUPPORT.value & ~decoded_wr_biten[14:14]) | (decoded_wr_data[14:14] & decoded_wr_biten[14:14]);
6548
- load_next_c = '1;
6549
- end else begin // HW Write
6550
- next_c = hwif_in.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.DAA_SETDASA_SUPPORT.next;
6551
- load_next_c = '1;
6552
- end
6553
- field_combo.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.DAA_SETDASA_SUPPORT.next = next_c;
6554
- field_combo.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.DAA_SETDASA_SUPPORT.load_next = load_next_c;
6555
- end
6556
- always_ff @(posedge clk or negedge hwif_in.rst_ni) begin
6557
- if(~hwif_in.rst_ni) begin
6558
- field_storage.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.DAA_SETDASA_SUPPORT.value <= 1'h1;
6559
- end else begin
6560
- if(field_combo.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.DAA_SETDASA_SUPPORT.load_next) begin
6561
- field_storage.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.DAA_SETDASA_SUPPORT.value <= field_combo.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.DAA_SETDASA_SUPPORT.next;
6562
- end
6563
- end
6564
- end
6565
- assign hwif_out.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.DAA_SETDASA_SUPPORT.value = field_storage.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.DAA_SETDASA_SUPPORT.value;
6566
- // Field: I3CCSR.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.DAA_ENTDAA_SUPPORT
6567
- always_comb begin
6568
- automatic logic [0:0] next_c;
6569
- automatic logic load_next_c;
6570
- next_c = field_storage.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.DAA_ENTDAA_SUPPORT.value;
6571
- load_next_c = '0;
6572
- if(decoded_reg_strb.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES && decoded_req_is_wr) begin // SW write
6573
- next_c = (field_storage.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.DAA_ENTDAA_SUPPORT.value & ~decoded_wr_biten[15:15]) | (decoded_wr_data[15:15] & decoded_wr_biten[15:15]);
6574
- load_next_c = '1;
6575
- end else begin // HW Write
6576
- next_c = hwif_in.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.DAA_ENTDAA_SUPPORT.next;
6577
- load_next_c = '1;
6578
- end
6579
- field_combo.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.DAA_ENTDAA_SUPPORT.next = next_c;
6580
- field_combo.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.DAA_ENTDAA_SUPPORT.load_next = load_next_c;
6581
- end
6582
- always_ff @(posedge clk or negedge hwif_in.rst_ni) begin
6583
- if(~hwif_in.rst_ni) begin
6584
- field_storage.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.DAA_ENTDAA_SUPPORT.value <= 1'h1;
6585
- end else begin
6586
- if(field_combo.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.DAA_ENTDAA_SUPPORT.load_next) begin
6587
- field_storage.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.DAA_ENTDAA_SUPPORT.value <= field_combo.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.DAA_ENTDAA_SUPPORT.next;
6588
- end
6589
- end
6590
- end
6591
- assign hwif_out.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.DAA_ENTDAA_SUPPORT.value = field_storage.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.DAA_ENTDAA_SUPPORT.value;
6427
+ assign hwif_out.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.SIMPLE_CRR_SUPPORT.value = 1'h0;
6428
+ assign hwif_out.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.TARGET_XACT_SUPPORT.value = 1'h1;
6429
+ assign hwif_out.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.DAA_SETAASA_SUPPORT.value = 1'h1;
6430
+ assign hwif_out.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.DAA_SETDASA_SUPPORT.value = 1'h1;
6431
+ assign hwif_out.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.DAA_ENTDAA_SUPPORT.value = 1'h0;
6592
6432
// Field: I3CCSR.I3C_EC.StdbyCtrlMode.__rsvd_0.__rsvd
6593
6433
always_comb begin
6594
6434
automatic logic [31:0] next_c;
@@ -10306,12 +10146,12 @@ module I3CCSR (
10306
10146
assign readback_array[60][30:23] = '0;
10307
10147
assign readback_array[60][31:31] = (decoded_reg_strb.I3C_EC.StdbyCtrlMode.STBY_CR_DEVICE_ADDR && !decoded_req_is_wr) ? field_storage.I3C_EC.StdbyCtrlMode.STBY_CR_DEVICE_ADDR.DYNAMIC_ADDR_VALID.value : '0;
10308
10148
assign readback_array[61][4:0] = '0;
10309
- assign readback_array[61][5:5] = (decoded_reg_strb.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES && !decoded_req_is_wr) ? field_storage.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.SIMPLE_CRR_SUPPORT.value : '0;
10149
+ assign readback_array[61][5:5] = (decoded_reg_strb.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES && !decoded_req_is_wr) ? 1'h0 : '0;
10310
10150
assign readback_array[61][11:6] = '0;
10311
- assign readback_array[61][12:12] = (decoded_reg_strb.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES && !decoded_req_is_wr) ? field_storage.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.TARGET_XACT_SUPPORT.value : '0;
10312
- assign readback_array[61][13:13] = (decoded_reg_strb.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES && !decoded_req_is_wr) ? field_storage.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.DAA_SETAASA_SUPPORT.value : '0;
10313
- assign readback_array[61][14:14] = (decoded_reg_strb.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES && !decoded_req_is_wr) ? field_storage.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.DAA_SETDASA_SUPPORT.value : '0;
10314
- assign readback_array[61][15:15] = (decoded_reg_strb.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES && !decoded_req_is_wr) ? field_storage.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES.DAA_ENTDAA_SUPPORT.value : '0;
10151
+ assign readback_array[61][12:12] = (decoded_reg_strb.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES && !decoded_req_is_wr) ? 1'h1 : '0;
10152
+ assign readback_array[61][13:13] = (decoded_reg_strb.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES && !decoded_req_is_wr) ? 1'h1 : '0;
10153
+ assign readback_array[61][14:14] = (decoded_reg_strb.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES && !decoded_req_is_wr) ? 1'h1 : '0;
10154
+ assign readback_array[61][15:15] = (decoded_reg_strb.I3C_EC.StdbyCtrlMode.STBY_CR_CAPABILITIES && !decoded_req_is_wr) ? 1'h0 : '0;
10315
10155
assign readback_array[61][31:16] = '0;
10316
10156
assign readback_array[62][31:0] = (decoded_reg_strb.I3C_EC.StdbyCtrlMode.__rsvd_0 && !decoded_req_is_wr) ? field_storage.I3C_EC.StdbyCtrlMode.__rsvd_0.__rsvd.value : '0;
10317
10157
assign readback_array[63][1:0] = '0;
0 commit comments