I am really confused right now. I've checked the numbers and I can't figure out what's wrong.
Let me fill you in. I was brushing up on my skills, trying to design a very simple FSM. It is meant to detect the rising edge of a signal, for instance when I've divided the clock in the FPGA a few times but don't want a process to execute during the whole 'high'-state of the divided clock but only on its rise.
I start out with the state diagram, which contains three states. I opted for a Moore-machine, just for practice. See pic below.
Next, I chose to use 1-hot encoding, again for practice. States are enumerated as; S0 = 001, S1 = 010, S2 = 100. I is input, Q is output, S+ is the next state encodings.
Then I calculate the next state bits, S+:es, and the output equations from the table above. (There is a misspelling here, "S3+" is supposed to be S2+, since that's what the K-map is calculating).
What?? Why does nothing depend on S2?? Where has this state gone?! What am I doing wrong?
Question
Tickstart
I am really confused right now. I've checked the numbers and I can't figure out what's wrong.
Let me fill you in. I was brushing up on my skills, trying to design a very simple FSM. It is meant to detect the rising edge of a signal, for instance when I've divided the clock in the FPGA a few times but don't want a process to execute during the whole 'high'-state of the divided clock but only on its rise.
I start out with the state diagram, which contains three states. I opted for a Moore-machine, just for practice. See pic below.
Next, I chose to use 1-hot encoding, again for practice. States are enumerated as; S0 = 001, S1 = 010, S2 = 100. I is input, Q is output, S+ is the next state encodings.
Then I calculate the next state bits, S+:es, and the output equations from the table above. (There is a misspelling here, "S3+" is supposed to be S2+, since that's what the K-map is calculating).
What?? Why does nothing depend on S2?? Where has this state gone?! What am I doing wrong?
Link to comment
Share on other sites
21 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.