Prev Problem
Next Problem

2. Fan-Out Wire

Back To All Submissions
Previous Submission
Next Submission

Solving Approach

How do you plan to solve it?

 

we have three output so i have taken 3 out put . all output  are same so in input take a

Code

module top_module (
    input a,       // single input
    output y1,     // three outputs
    output y2,
    output y3
);

    // Declare wires
    wire w1;
    wire w2;
    wire w3;

    // Module functionality
    assign w1 = a;
    assign w2 = w1;
    assign w3 = w2;

    // Drive outputs
    assign y1 = w1;
    assign y2 = w2;
    assign y3 = w3;

endmodule

 

Was this helpful?
Upvote
Downvote