--------------------------------------------------------------------
Posted using Reference.COM http://WWW.Reference.COM
FREE Usenet and Mailing list archive, directory and clipping service
--------------------------------------------------------------------
tranif1 (A, B, control);
would be
module my_tran(A_in, A_out, B_in, B_out, control);
input A_in, B_in, control;
output A_out, B_out;
assign A_out = A_in;
assign A_out = control ? B_in : 1'bz;
assign B_out = B_in;
assign B_out = control ? A_in : 1'bz;
endmodule
and connect other outputs on A to A_in and other inputs on A to A_out.
If you have any other inouts on A or B, you need an even more complex
splitting of the nets. You just never realized how much work you were
making the simulator do for you when you used a tran.