Skip to content

Commit

Permalink
fix pads
Browse files Browse the repository at this point in the history
  • Loading branch information
davideschiavone committed Jul 4, 2024
1 parent bf9f08c commit 8ab32b3
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hw/system/pad_ring.sv.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ ${external_pad.pad_ring_ctrl_interface}
input logic [core_v_mini_mcu_pkg::NUM_PAD-1:0][0:0] pad_extra_inputs_i,
% endif
% if pads_extra_outputs != None:
input logic [core_v_mini_mcu_pkg::NUM_PAD-1:0][${pads_extra_outputs['bits']}] pad_extra_outputs_o
output logic [core_v_mini_mcu_pkg::NUM_PAD-1:0][${pads_extra_outputs['bits']}] pad_extra_outputs_o
% else:
/* verilator lint_off UNUSED */
input logic [core_v_mini_mcu_pkg::NUM_PAD-1:0][0:0] pad_extra_outputs_o
output logic [core_v_mini_mcu_pkg::NUM_PAD-1:0][0:0] pad_extra_outputs_o
% endif

);
Expand Down
17 changes: 17 additions & 0 deletions hw/system/x_heep_system.sv.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,15 @@ ${pad.x_heep_system_interface}
% if total_pad_muxed > 0:
logic [core_v_mini_mcu_pkg::NUM_PAD-1:0][${max_total_pad_mux_bitlengh-1}:0] pad_muxes;
% endif
% if pads_attributes != None:
/* verilator lint_off UNUSED */
logic [core_v_mini_mcu_pkg::NUM_PAD-1:0][${pads_extra_inputs['bits']}] pad_extra_inputs;
% endif
% if pads_attributes != None:
/* verilator lint_off UNUSED */
logic [core_v_mini_mcu_pkg::NUM_PAD-1:0][${pads_extra_outputs['bits']}] pad_extra_outputs;
% endif


logic rst_ngen;

Expand Down Expand Up @@ -169,8 +178,16 @@ ${pad.pad_ring_bonding_bonding}
% else:
.pad_attributes_i('0),
% endif
% if pads_extra_inputs != None:
.pad_extra_inputs_i(pad_extra_inputs),
% else:
.pad_extra_inputs_i('0),
% endif
% if pads_extra_outputs != None:
.pad_extra_outputs_o(pad_extra_outputs)
% else:
.pad_extra_outputs_o()
% endif
);

${pad_constant_driver_assign}
Expand Down

0 comments on commit 8ab32b3

Please sign in to comment.