20+ câu trắc nghiệm Thiết kế hệ thống số dùng HDL có đáp án

What will the following code segment do? always @(posedge clock) begin     y = x;     z = y;     x = z; end

16/21

What will the following code segment do?

always @(posedge clock)

begin

    y = x;

    z = y;

    x = z;

end

All the variables will get the value previously stored in “z”

Shift the values stored in the three variables

All the variables will get the value previously stored in “y”

All the variables will get the value previously stored in “x”

Giải thích

Chọn đáp án C.