Prev Problem
Next Problem

2. Fan-Out Wire

Back To All Submissions
Previous Submission
Next Submission

Solving Approach

Set separate wires for each of the 3 connections and assign each of the outputs to the input 'a'.

 

 

Code

module top_module(
    // Declare Inputs and outputs here
    input a,
    output y1,
    output y2,
    output y3
);
    wire w1;
    assign y1 = a;
    wire w2;
    assign y2 = a;
    wire w3;
    assign y3 = a;
    // Module functionality here

endmodule

 

Was this helpful?
Upvote
Downvote