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?

using the concatenation method:

You can group the three outputs together using curly braces {} and assign a to all of them at once.

 

Code

module top_module(
    input a,
    output y1,y2,y3

);
    // Module functionality here
    assign{y1,y2,y3}={a,a,a};
 

       


endmodule

 

Was this helpful?
Upvote
Downvote