Câu hỏi:

29/09/2025 132 Lưu

Consider the following Verilog code segment:
wire [5:0] A, B;
wire C;
assign C=^A;
If the values of A and B are 5’b10011 and 5’b01110 respectively, what will be the value of {A[3:1], 2{C}, B[2:0]}?

A. 00100110

B. 00111110

C. 01111110

D. None of these

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.

9

B.

Invalid expression

C.

6

D.

27

Lời giải

Chọn đáp án D.

Lời giải

Chọn đáp án A.

Câu 3

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

Lời giải

Bạn cần đăng ký gói VIP ( giá chỉ từ 250K ) để 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.

The “assign” statement implements continuous assignment between the expression specified on the right-hand side and a “net” type variable specified on the left-hand side

B.

The “assign” statement implements continuous assignment between the expression specified on the right-hand side and a “reg” type variable specified on the left-hand side

C.

None of these

D.

The “assign” statement can be used to model a latch, which is a sequential circuit

Lời giải

Bạn cần đăng ký gói VIP ( giá chỉ từ 250K ) để 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.

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ừ 250K ) để 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.

None of the above

B.

Suspend simulation

C.

End simulation

D.

Exit simulator

Lời giải

Bạn cần đăng ký gói VIP ( giá chỉ từ 250K ) để 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