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
| Name | Type | Default | Description |
|---|---|---|---|
INPUT_ONLY | bit | 1'b0 | 1 instantiates InputStd; 0 instantiates BidirStd. |
Ports
| Name | Direction | Type | Description |
|---|---|---|---|
core2pad_i | input | logic | Core data driven toward the pad; unused when INPUT_ONLY. |
core2pad_en_i | input | logic | Output enable toward the pad; unused when INPUT_ONLY. |
pad2core_o | output | logic | Pad data returned to the core. |
pad2core_en_i | input | logic | Pad input enable; pad2core_o reads 0 while low. |
gpio_ctrl_i | input | gpio_shim_pkg::gpio_model_ctrl_t | Pull, drive, and filter controls; the glitch-filter enable drives the pad Schmitt trigger. |
gpio_nandtree_in_i | input | logic | NAND-tree input (pass-through). |
gpio_nandtree_out_o | output | logic | NAND-tree output (pass-through). |
pad_io | inout | | Bidirectional pad pin. |