R
raphfrk
Guest
I am pretty sure that this is impossible, but figured that I might as
well ask:
Is there a way to wire up inout ports as a passthrough in verilog?
For example:
module passthrough( a, b );
inout a;
inout b;
assign a=(b!==1'bz)?b:1'bz;
assign b=(a!==1'bz)?a:1'bz;
endmodule
Obviously, the above wouldn't work. The desired effect is that a and b
are effectively shorted to each other and that the data can pass both
ways.
well ask:
Is there a way to wire up inout ports as a passthrough in verilog?
For example:
module passthrough( a, b );
inout a;
inout b;
assign a=(b!==1'bz)?b:1'bz;
assign b=(a!==1'bz)?a:1'bz;
endmodule
Obviously, the above wouldn't work. The desired effect is that a and b
are effectively shorted to each other and that the data can pass both
ways.