Prev Problem
Next Problem

3. Multiple Drivers

Back To All Submissions
Previous Submission
Next Submission

Solving Approach

Assign separate wires for each of the connections then assign the output to both the inputs one by one. 

 

 

Code

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

 

Was this helpful?
Upvote
Downvote