84. Programmable I/O Direction Control

Loading simulator…

The pre-defined template exposes IO_OUT, IO_OE, EXT_IN, EXT_OE, and IO_IN without the shared-pin circuitry.

The solution adds an internal tri-state stage, an external test-driver stage, and a common observation node.

The enable polarity is arranged so IO_OE = 1 drives the pin internally and IO_OE = 0 releases it.

IO_IN remains connected to the shared node in both modes.

IO_IN = IO_OUT    when IO_OE = 1
IO_IN = EXT_IN    when IO_OE = 0 and EXT_OE = 1