Prev Problem
Next Problem

5. OR Gate

Back To All Submissions
Previous Submission
Next Submission

Solving Approach

Analyse the truth table.

  • Output will be high for all cases except when a & b are zero.

 

 

Code

/*Write your code here*/
module top_module (
    input a,
    input b,
    output y
);
assign y = a | b;
endmodule

 

Was this helpful?
Upvote
Downvote