// ============================================================================= // Module Name: IPat_Io_Inout // Revision: 20220506a // Author: Altmo toolbox // Description: // + IO(inout) module for simulation // // +-----+ // co <---| pad // +-----+ | // | // +-----+ | // ci >-->|>buf>|---+ // +--o--+ // | // oe_n >----+ // // ============================================================================= `timescale 1ns/1ns module IPat_Io_Inout ( inout pad, // PAD input ci, // Core to PAD output co, // PAD to Core input oe_n // Output Enable (negative) ); assign pad = (oe_n===1'b0)? ci : (oe_n===1'b1)? 1'bz : 1'bx; assign co = pad; endmodule