module WO(A, B, C, D, WireOr);
input A, B, C, D;
output WireOr;
wor WireOr;
assign WireOr = A ^ B;
assign WireOr = C & D;
endmodule
同样,可以用wand(或triand)线网类型将不同的输出“线与”在一起。\\
module WA(A, B, C, D, WireAnd);
input A, B, C, D;
output WireAnd;
wand WireAnd;
assign WireAnd = A ^ B;
assign WireAnd = C & D;
endmodule