Câu hỏi:

29/09/2025 13 Lưu

What will the following code segment generate on synthesis, assuming that the four variables data0, data1, data2 and data3 map into four latches/flip-flops?

always @(posedge clock)

begin

data3 = din;

data2 = data3;

data1 = data2;

data0 = data1;

end

A.

None of these

B.

A 4-bit parallel-in parallel-out register

C.

A 4-bit shift register

D.

Four D flip-flops all fed with the data “din”

Quảng cáo

Trả lời:

verified Giải bởi Vietjack

Chọn đáp án C.

CÂU HỎI HOT CÙNG CHỦ ĐỀ

Câu 1

A.

None of the above

B.

Suspend simulation

C.

End simulation

D.

Exit simulator

Lời giải

Chọn đáp án D.

Câu 2

A.

9

B.

Invalid expression

C.

6

D.

27

Lời giải

Chọn đáp án D.

Câu 3

A.

It cannot be determined exactly how many times the value of ‘x’ will be printed

B.

The simulation will print the current value of ‘x’ 15-times

C.

The simulation will print the current value of ‘x’ 13-times

D.

The simulation will always display 15 as the value of ‘x’

Lời giải

Bạn cần đăng ký gói VIP ( giá chỉ từ 199K ) để làm bài, xem đáp án và lời giải chi tiết không giới hạn.

Nâng cấp VIP

Lời giải

Bạn cần đăng ký gói VIP ( giá chỉ từ 199K ) để làm bài, xem đáp án và lời giải chi tiết không giới hạn.

Nâng cấp VIP

Lời giải

Bạn cần đăng ký gói VIP ( giá chỉ từ 199K ) để làm bài, xem đáp án và lời giải chi tiết không giới hạn.

Nâng cấp VIP

Câu 6

A.

All of the above

B.

A variable index used at the RHS of an “assign” statement generates a multiplexer whereas usage of it at the LHS results in a decoder

C.

The “assign” statement can be used to implement both combinational as well as sequential circuits

D.

The use of conditional operator in an “assign” statement always results in a multiplexer

Lời giải

Bạn cần đăng ký gói VIP ( giá chỉ từ 199K ) để làm bài, xem đáp án và lời giải chi tiết không giới hạn.

Nâng cấp VIP