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,

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

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!