显示页面 讨论 修订记录 反向链接 本页面只读。您可以查看源文件,但不能更改它。如果您觉得这是系统错误,请联系管理员。 verilog中的线网类型(线与线或,三态总线)\\ 一、线与、线或功能\\ 可以使用wor(或trior)线网类型将不同的输出“线或”在一起。\\ <code verilog> 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 </code> 同样,可以用wand(或triand)线网类型将不同的输出“线与”在一起。\\ <code verilog> 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 </code>