Skip to content

Commit

Permalink
Expose additional top-level status signals coming of the Recovery Han…
Browse files Browse the repository at this point in the history
…dler logic

Internal-tag: [#68034]
Signed-off-by: Maciej Kurc <[email protected]>
  • Loading branch information
mkurc-ant committed Oct 29, 2024
1 parent ca22726 commit ae27dac
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 5 deletions.
10 changes: 9 additions & 1 deletion src/i3c.sv
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,11 @@ module i3c

// DCT memory export interface
input dct_mem_src_t dct_mem_src_i,
output dct_mem_sink_t dct_mem_sink_o
output dct_mem_sink_t dct_mem_sink_o,

// Recovery interface signals
output logic recovery_payload_available_o,
output logic recovery_image_activated_o

// TODO: Add interrupts
);
Expand Down Expand Up @@ -962,6 +966,10 @@ module i3c

.irq_o(), // TODO: Connect me

// Recovery status signals
.payload_available_o (recovery_payload_available_o),
.image_activated_o (recovery_image_activated_o),

// I2C/I3C bus condition detection
.ctl_bus_start_i(bus_start | bus_rstart), // S/Sr are both used to reset PEC
.ctl_bus_stop_i (bus_stop),
Expand Down
13 changes: 10 additions & 3 deletions src/i3c_wrapper.sv
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,17 @@ module i3c_wrapper #(
input logic sda_i,
output logic scl_o,
output logic sda_o,
output logic sel_od_pp_o
output logic sel_od_pp_o,
`else
// I3C bus IO
inout wire i3c_scl_io,
inout wire i3c_sda_io
inout wire i3c_sda_io,
`endif

// Recovery interface signals
output logic recovery_payload_available_o,
output logic recovery_image_activated_o

// TODO: Add interrupts
);

Expand Down Expand Up @@ -259,7 +263,10 @@ module i3c_wrapper #(
.dat_mem_sink_o(dat_mem_sink),

.dct_mem_src_i (dct_mem_src),
.dct_mem_sink_o(dct_mem_sink)
.dct_mem_sink_o(dct_mem_sink),

.recovery_payload_available_o (recovery_payload_available_o),
.recovery_image_activated_o (recovery_image_activated_o)
);

prim_ram_1p_adv #(
Expand Down
6 changes: 5 additions & 1 deletion src/recovery/recovery_handler.sv
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,11 @@ module recovery_handler
// ....................................................

// Interrupt
output logic irq_o
output logic irq_o,

// Recovery status
output logic payload_available_o,
output logic image_activated_o
);

// ....................................................
Expand Down

0 comments on commit ae27dac

Please sign in to comment.