prim_pad_shim

Shim GPIO model controls onto an OpenTitan prim_pad_wrapper.

Translate gpio_shim_pkg::gpio_model_ctrl_t into prim_pad_wrapper_pkg::pad_attr_t and instantiate one InputStd or BidirStd pad per pin. pad2core_o reads as 0 when the input enable is low instead of propagating the wrapper disabled-input Z/X. The NAND-tree ports pass through unchanged.

Parameters

Table 1. Parameters
NameTypeDefaultDescription
INPUT_ONLYbit1'b01 instantiates InputStd; 0 instantiates BidirStd.

Ports

Table 2. Ports
NameDirectionTypeDescription
core2pad_iinputlogicCore data driven toward the pad; unused when INPUT_ONLY.
core2pad_en_iinputlogicOutput enable toward the pad; unused when INPUT_ONLY.
pad2core_ooutputlogicPad data returned to the core.
pad2core_en_iinputlogicPad input enable; pad2core_o reads 0 while low.
gpio_ctrl_iinputgpio_shim_pkg::gpio_model_ctrl_tPull, drive, and filter controls; the glitch-filter enable drives the pad Schmitt trigger.
gpio_nandtree_in_iinputlogicNAND-tree input (pass-through).
gpio_nandtree_out_ooutputlogicNAND-tree output (pass-through).
pad_ioinoutBidirectional pad pin.