Skip to content

Commit 33f5f6f

Browse files
Revised the GPIO control block to remove the zeroing of outputs from
the input buffer depending on the mgmt_ena signal, such that the management is now able to read output from the user space onto the pad, and the user space is able to read output from the management space onto the pad.
1 parent 4465833 commit 33f5f6f

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

verilog/rtl/gpio_control_block.v

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,12 @@ module gpio_control_block #(
210210

211211
/* Implement pad control behavior depending on state of mgmt_ena */
212212

213-
assign gpio_in_unbuf = (mgmt_ena) ? 1'b0 : pad_gpio_in;
214-
assign mgmt_gpio_in = (mgmt_ena) ? ((gpio_inenb == 1'b0) ?
215-
pad_gpio_in : 1'bz) : 1'b0;
213+
// assign gpio_in_unbuf = (mgmt_ena) ? 1'b0 : pad_gpio_in;
214+
// assign mgmt_gpio_in = (mgmt_ena) ? ((gpio_inenb == 1'b0) ?
215+
// pad_gpio_in : 1'bz) : 1'b0;
216+
217+
assign gpio_in_unbuf = pad_gpio_in;
218+
assign mgmt_gpio_in = (gpio_inenb == 1'b0) ? pad_gpio_in : 1'bz;
216219

217220
assign pad_gpio_outenb = (mgmt_ena) ? ((mgmt_gpio_oeb == 1'b1) ? gpio_outenb :
218221
1'b0) : user_gpio_oeb;

0 commit comments

Comments
 (0)