Prev Problem
Next Problem

3. Multiple Drivers

Back To All Submissions
Previous Submission
Next Submission

Solving Approach

How do you plan to solve it?

The approach is to assign the same output, y, to two different input signals, a and b, using separate continuous assignment statements. This demonstrates a multiple-driver conflict, where if a and b differ, the output y becomes unknown (x) in the simulation.

 

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