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.

The state-machine appears to be not changing states cleanly/

Status
Not open for further replies.

EDA_hg81

Advanced Member level 2
Joined
Nov 25, 2005
Messages
507
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,298
Activity points
4,808
I put a couple extra signals in the state-machine process in order to use chip scope to check which state I am in. After a reset is pulled low, the state is supposed to change, and my test signals are supposed to go from “10” to “01”... however on chip scope, I see the change from “10” to “11” and stays that way. This problem occurs about 1 in 10 trials.

What is the possible reasons?

Thanks for your all suggestions.
 

are you sure you have all states diskribe all the states in the machine something like this

when S1 =>

if signal = active then
current_state <= S2;
else
current_state <= S1;
end if;
 

    EDA_hg81

    Points: 2
    Helpful Answer Positive Rating
Re: The state-machine appears to be not changing states clea

Be careful how you handle external inputs.

if ext_signal = '0' then ...

The external signal needs to be synchronized. If it's from a mechanical switch, it will also need to be debounced (filtered).
 

    EDA_hg81

    Points: 2
    Helpful Answer Positive Rating
and also make sure external signals are longer then just one clock period, they needs to be actually triggered, and when machine change state they get reset
 

    EDA_hg81

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top