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
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment