Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to make a state machine of a sequence detector?

Status
Not open for further replies.

spauls

Advanced Member level 2
Advanced Member level 2
Joined
Dec 17, 2002
Messages
524
Helped
26
Reputation
52
Reaction score
9
Trophy points
1,298
Activity points
3,355
Can any body tells about how to proceed to make a state machine of a sequence detector ,
regards
 

so easy problem....

search 'sequence detector' in google.
 

somebody implemented it by fsm.
 

Re: Sequence Detector

use shift register and some logic is sufficient.

for exampl, if you want to detect sequence 1011,

you can use following verilog code to do it.

wire signal_in;
wire seq_detected;
reg signal_d1, signal_d2, signal_d3;

always @(posedge clk or negedge rst_n)
if (~rst_n)
begin
signal_d1 <= #1 1'b0;
signal_d2 <= #1 1'b0;
signal_d3 <= #1 1'b0;
end
else
begin
signal_d1 <= #1 signal_in;
signal_d2 <= #1 signal_d1 ;
signal_d3 <= #1 signal_d2 ;
end

assign seq_detected = signal_d3 & (~signal_d2) & signal_d1 & signal_in;

best regards







spauls said:
Can any body tells about how to proceed to make a state machine of a sequence detector ,
regards
 

Re: Sequence Detector

The answer is described nicely here

**broken link removed**
 
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top