The OR gate is a digital logic gate that implements logical disjunction. A HIGH output (1) results if one or both the inputs to the gate are HIGH (1). If neither input is HIGH, a LOW output (0) results. In another sense, the function of OR effectively finds the maximum between two binary digits, just as the complementary AND function finds the minimum.
1 2 3 4 5
module or1 (c,a,b); output c; input a,b; assign c=a|b; endmodule
Leave a Reply