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

 "timescale Ins / Ips module mainfunction (input a,b,c, output y); assign

"timescale Ins / Ips module mainfunction (input a,b,c, output y); assign y=(a&b) I (alc); endmodule "timescale Ins / lps 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 0"); end endmodule Which of the following is true for the two verilog codes above? I. Behavioral design level is used. II. Output(y) is equal to logic 1 and the text "y=logic 0" appears in the simulation. 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!