Google

Lubee's Blog--Digtial IC Fan's Home

WELCOME IC FANS' HOME! --ASIC/IC Design,Logical Design,STA,Digital IC Design,Synthesis, and so on.

2008-05-02

tristate verilog code

module tristate (T, In, Out);
input T, In;
output Out;
reg Out;

always @(T or In)
begin
if (~T)
Out = In;
else
Out = 1'bZ;
end
endmodule

Labels:

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home