module bidir(IOPIN, DIN, DOUT, OE); inout IOPIN; output DIN ; input DOUT; input OE ; assign DIN = IOPIN; assign IOPIN = OE ? DOUT : 1'bz; endmodule