verilog中的线网类型(线与线或,三态总线)\\ 一、线与、线或功能\\ 可以使用wor(或trior)线网类型将不同的输出“线或”在一起。\\ 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