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

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 r

13/21

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)

The synthesize system will generate a wire for result

A combinational circuit will be generated

None of the above

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

Giải thích

Chọn đáp án B.