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.

Mealy vs Moore Machine

arminb73

Newbie level 5
Joined
Nov 9, 2021
Messages
10
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
89
Based on this code how can I know whether it is a Mealy or a Moore machine?

1638377429205.png
 

FvM

Super Moderator
Staff member
Joined
Jan 22, 2008
Messages
49,426
Helped
14,442
Reputation
29,148
Reaction score
13,239
Trophy points
1,393
Location
Bochum, Germany
Activity points
284,427
Mealy is characterized by output depending on input and state while with Moore, output depens only on state. What do you see?
 

barry

Advanced Member level 5
Joined
Mar 31, 2005
Messages
5,396
Helped
1,142
Reputation
2,296
Reaction score
1,163
Trophy points
1,393
Location
California, USA
Activity points
29,505
You want me to do your homework for you?

There's no reason I can think of why you need to know if it's Mealy or Moore. In all my years of working with state machines, I have never, ever, given a thought to that.

Look up the definition; one of them has the output a function of both present state and inputs; the other has the output depend only on the present state.
 

dpaul

Advanced Member level 5
Joined
Jan 16, 2008
Messages
1,559
Helped
310
Reputation
620
Reaction score
310
Trophy points
1,373
Location
Germany
Activity points
11,556
@barry
There's no reason I can think of why you need to know if it's Mealy or Moore. In all my years of working with state machines, I have never, ever, given a thought to that.
+1
Neither do I, but in the university there are such exercises given to the students I guess.

The style of VHDL presented by the OP is also antiquated (clk'event and clk='1', encodings for curr_state and next_state, etc.). I has used such a SM VHDL coding style last back in 2008/2009, and it was most probably due to some limitations of the Simulation or Synthesis tool (cannot remember correctly).
 

LaTeX Commands Quick-Menu:

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top