Question: timescale Ins / Ips module ha (input a, b, output sum, carry); assign sum=a*b; assign carry=a&b; endmodule timescale ins / Ips module testbench(); reg a,

timescale Ins / Ips module ha (input a, b, output sum, carry); assign sum=a*b; assign carry=a&b; endmodule "timescale ins / Ips module testbench(); reg a, b; wire sum, carry; integer i; ha dt (.a(a), .b(b), .sum (sum), .carry(carry)); initial begin a=0; b=0; $monitor ("a=f0b b=30b sum=30b carry=f0b", a, b, sum, carry); for(i=0; i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
