Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

Bidirectional IO implementation

Hi all,

I have implemented bidirectional IO in Max II as below:

//-----------------------

module bidir_io (

input wire in,

input wire oe,

output out,

inout wire io

);

assign io = oe ? in : 1'bz;

assign out = io;

endmodule

//--------------------------

I instantiate this module for bi-dir pins on the device as well as for internal inout variables. When I simulate, I don't get expected results.. some portion of the signal becomes 'x' state.

If more info is needed, please let me know.

Thanks
No RepliesBe the first to reply