Câu hỏi:

29/09/2025 13 Lưu

Which of the following is true for the following module?
module mydesign (a,b);
input [1:0] b;
output reg a;
always @(b)
begin
if (b==2'b00) a = 1'b0;
else if (b==2'b11) a = 1'b0;
else a = 1'b1;
end
end module

A. A latch will be generated for the output "a"

B. The synthesis tool will give an error

C. A combinational circuit implementing an AND function will be generated

D. A combinational circuit implementing a XOR function will be generated

Quảng cáo

Trả lời:

verified Giải bởi Vietjack

Chọn đáp án D.

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

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 5

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

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