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

For the following Verilog code segment: wire [7:0]

19/21

For the following Verilog code segment:
wire [7:0] A;
wire B;
assign B = ~|A;
If the value of A is 8’b00111001, what will be the value of {A[5:3], 3{B}}?

6’b111000

6’b011000

None of the above

6’b111111

Giải thích

Chọn đáp án A.