Prev Problem
Next Problem

5. OR Gate

Back To All Submissions
Previous Submission
Next Submission

Solving Approach

Using the OR operator '|' we can do the OR operation between 2 inputs and assign it to an output.

 

 

Code

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

 

Was this helpful?
Upvote
Downvote