Question: Complete the following to have the correct answer: What will be the final value of x1,w1,x2 and w2 for the following different Verilog codes, if

Complete the following to have the correct answer:

  1. What will be the final value of x1,w1,x2 and w2 for the following different Verilog codes, if the initial values of x1,x2 and y equal 1,4,5 respectively.

  1. always @ (posedge clk)

begin

x1 = y;

w1 = x1 + 2;

end

X1 =____, W1 =_____,

  1. always @ (posedge clk)

begin

x2 <= y;

w2 <= x2 + 2;

end

X2=______, W2=_____

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!