Question: 5. Consider the following code // Title : sw2led module sw2led (sw, led); --- Port declarations input 17:0] Sw; wire [7:0) sw; output (7:0) led;
5. Consider the following code // Title : sw2led module sw2led (sw, led); --- Port declarations input 17:0] Sw; wire [7:0) sw; output (7:0) led; wire [7:0) led; --------- Signal declarations -------- // wire (7:0) BUS 7; Terminals assignment --------// // Input terminals --- // assign BUS 7 17:0] = sw[7:0]; Output terminals --- // assign led (7:0) BUS7 [7:0]; endmodule (a) What is the purpose of "//" (b) What is the name of this module? (c) What are the names of the ports in this module? (d) How many wires are in BUS7
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
