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?

I planned to solve it by directly connecting the input a to all three outputs.
Since this is just a fan-out connection, I used continuous assignments so that y1, y2, and y3 always follow the value of a.

 

Code

module top_module(a,y1,y2,y3);
input a;
output y1,y2,y3;
  assign y1 = a;
  assign y2 = a;
  assign y3 = a;

endmodule

 

Was this helpful?
Upvote
Downvote