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.

why moore is safer then mealy?

Status
Not open for further replies.

abhineet22

Advanced Member level 4
Joined
Jan 25, 2005
Messages
105
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,296
Location
bangalore
Activity points
1,017
in case of glitches why moore machine will be better then mealy?
 

In mealy machine glitches in input is propagated to output.. so moore is better ..since the o/p depends only on current state .
 

in fact, you can add output registers to sync the output signals
 

Hi,
In Mealy machine, the output depends both on the current state and the input. hence it can change with change in any of these thus has the probability of generating a glitch. whereas in moore machine output depends only on the current state i. e output changes with change in state only (synchronized with the clock) hence the glitch is not present in moore.
hope this is clear
 

if the input is also synchronous with the clock that triger state register no glitch occured.
 

Bcos moore does not depend upon inputs, rather only on state
 

glitchs can be brought by mealy machine's external inputs, but moore one can not.
 

In moore machine u will get one more state so one more flipflop will be added.

with regards,
kul.
 

I don't think so, in case of glithes, I think both of them are not safe.

the safest method is registering mchine's output to eliminate glitches.

good luck.




abhineet22 said:
in case of glitches why moore machine will be better then mealy?
 

A Moore state machine is more
efficient than a Mealy state machine -
Because of Moore state machine has synchronous outputs
– no glitches
– one cycle “delay”
– full cycle of stable output

And Mealy machine has asynchronous outputs
– if input glitches, so does output
– output immediately available
– output may not be stable long
enough to be useful -> If output of Mealy FSM
goes through combinational logic before being
registered, the CL might delay the signal and it could
be missed by the clock edge.
 

in full synchronous system, I think both FSM are safe if the signal meet

setup and hold time. if you hope FSM output glitch free signal, you

should register FSM's output.


best regards




abhineet22 said:
in case of glitches why moore machine will be better then mealy?
 

I agree the idea of funster. Both are safe, if all signal meets setup/hold time requirements.
 

When I was a student at Imperial College London, the followings are taught by Professor Cheung C Y. I hope the following pointers are helpful to many who might not fully understood FSMs.

1. Output from a Moore Machine is always valid throughout the entire cycle, EXCEPT during transition.

2. Output from a Mealy Machine is ONLY valid immediately after a transition.

3. Both Moore and Mealy has a control logic that captures the input. Should the input change due to glitches, at the same time when the state register just produced the next state to the control logic, it will affect both Moore and Mealy. Since Mealy has its output logic that captures the input, glitches will affect Mealy.

4. Latched Mealy is used to resolved output contention problem in high-speed synchronous digital system. Not to resolve glitches.
 

Again, agree with funster that both are safe if setup/hold req are met.
Conversely, both are unsafe if setup/hold are not met.

Remember that there is a piece of combinational logic after the state flip-flops to produce the outputs, in both Moore and Mealy. This logic may glitch, unless you design it to be hazard free.
 

glitches in the input r not propagated to the output.

Added after 4 minutes:

see, in moore, the input to the output is the output of the flop, which settles after clock to q delay and does NOT change thereafter for the entire clock cycle but if the o/p of ur fsm is dependent on inpt(which can change ANYTIME), then the o/p of ur fsm too can change ANYTIME.
 

hi

moore machine: ouput is dependent only on current state.
mealy machine: output is dependent on both current and present state.

so there are every possibility of glitch occuring while using mealy machine
 

Omg! This topic is still running?

C'mon nobody uses Mealy in the industry. It is only used in colleges for students to learn this novel FSM. In fact Moore is also very much confined to colleges because it is easier to determine the a sequential system using Moore.

In the industry, latched Mealy or Mealy with a registered output is used. Just that the output only appears in the next state, very much like Moore.


As I have already said,
1. Output from a Moore Machine is always valid throughout the entire cycle, EXCEPT during transition.

2. Output from a Mealy Machine is ONLY valid immediately after a transition.

Glitches at the input, IF violated the setup time, WILL be propagated to the output as well, in a Mealy Machine.

There is nothing to disagree. This is a technical fact, stated black and white in Wakerly's book, Randy Katz's book, Michael Smith's book,, Ashenden' book and I believe many more books on Digital System Design, VHDL, or Sequential Machines etc.
 

Hi.
I saw a question.
It was a questin of an enterance exam.
I drew it.
please answer which one is correct.
I think second one;
which do you think?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top