Câu hỏi:

29/09/2025 15 Lưu

Consider the following Verilog module.

module guess (data, cond, result);

input [7:0] data;

input [1:0] cond;

output reg result;

always @(data)

begin

if (cond == 2’b00)

result = |data;

else

result = ~^data;

end

endmodule

Which of the following are true when the module is synthesized? (multiple choices)

A.

The synthesize system will generate a wire for result

B.

A combinational circuit will be generated

C.

None of the above

D.

A sequential circuit with a storage element for result will be generated

Quảng cáo

Trả lời:

verified Giải bởi Vietjack

Chọn đáp án B.

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.

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 4

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

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

Câu 7

A.

100ns/110ps

B.

1ns/1ps

C.

100ns/100ps

D.

10ns/1ps

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