Question: timescale lns / Ips module mainfunction (input a,b,c, output y); assign y=(a&b) I (alc); endmodule timescale Ins / Ips module testbench; reg a,b,c; mainfunction dt(.a(a),

"timescale lns / Ips module mainfunction (input a,b,c, output y); assign y=(a&b) I (alc); endmodule "timescale Ins / Ips module testbench; reg a,b,c; mainfunction dt(.a(a), .b(b),.c(c), .y()); initial begin a=0; b=0; c=0; #10 if(y!==1) $display("v=logic "); end endmodule Which of the following is true for the two verilog codes above? 1. Behavioral design level is used. II. Output(y) is equal to logic 1 and the text "y=logic O" appears in the simulation. 0 III. The combinational circuit designed in the code includes 3 logic gates. IV. A net has to be added to the code for the output
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
