logo

Crowdly

Задано модуль: module sequence_detector ( input clk, input ...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Задано модуль:

module sequence_detector (

input clk,

input reset,

input bit_in,

output reg sequence_found

);

reg [3:0] state;

always @(posedge clk or posedge reset) begin

if (reset) state <= 4'b0000;

else state <= {state[2:0], bit_in};

end

assign sequence_found = (state == 4'b0011);

endmodule

 

Умова:

На вхід bit_in подається послідовність бітів: 0, 1, 0, 0, 1, 1, 0, 0, 1, 1.

Визначити:

Номери тактів (через кому), при яких sequence_found == 1

 

More questions like this

Want instant access to all verified answers on vns.lpnu.ua?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!