Prev Problem
Next Problem

3. Multiple Drivers

Back To All Submissions
Previous Submission
Next Submission

Solving Approach

How do you plan to solve it?

so it is generally used the fan in where multiple inputs are connect to the single output causing the race condition also. so just assign the y once a and once b using the assign keyword.

 

Code

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

assign y = a;
assign y = b;

endmodule

 

Was this helpful?
Upvote
Downvote