Digital System Design using FSMs. Peter D. Minns

Digital System Design using FSMs - Peter D. Minns


Скачать книгу
Note the feed forward paths between the outside world inputs and the input to the output decoder.

      The figure shows that the FSM has a number of inputs that connect to the next state decoder (combinational) logic. The Q outputs of the memory element flip‐flops connect to the output decoder logic, which in turn connects to the outside world outputs via the output decoder.

      The flip‐flop outputs are used as next state inputs to the next state decoder, and it is these that determine the next state that the FSM will move to. Once the FSM has moved to this next state, its flip‐flops acquire a new present state as dictated by the next state decoder.

      Note that some of the outside world inputs connect directly to the output decoder logic. This is the main feature of the Mealy type of FSM. This affects the outputs of the FSM.

Schematic illustration of a block diagram of a Moore state machine structure.

      This FSM differs from the Mealy FSM in that it does not have the feed forward paths.

      This type of FSM is very common. Note that the outside world outputs are a function of the flip‐flop outputs only (unlike the Mealy FSM architecture where the outside world outputs are a function of flip‐flop outputs and some outside world inputs).

      We will be using both Moore and Mealy FSM in our designs.

      Complete the following:

       A Moore FSM differs to that of a Mealy FSM in that it has…

       This means that the Moore FSM outputs depend on…

       Whilst the Mealy FSM outputs can depend upon…

      If you cannot complete the above sentences, go back and read Frame 1.4 and Frame 1.5.

Schematic illustration of a block diagram of a Class C state machine structure.

      This architecture is in fact the synchronous counter the reader may have already seen in previous studies. Note that an up/down counter would have the additional outside world input ‘up/down’, which would be used to control the direction of counting.

      The flip‐flop outputs in this architecture are used to connect directly to the outside world.

      Historically, two types of state diagrams have evolved, one for the design of the Mealy FSM the other for the design of the Moore FSM. The two are known as ‘Mealy state diagrams’ and ‘Moore state diagrams’.

      These days we use a more general type of state diagram, which can be used to design both the Mealy and Moore type of FSM. This is the type of state diagram we use throughout this book. As you will learn, it allows you to build a lot of ideas into the FSM diagram.

      The states are usually drawn as circles (but some people like to use a square box).

      The transitions between states are shown as an arrowed line connected between the states.

Schematic illustration of transition between states.

      In addition to the transitional line between states, there is an input signal name.

      The right‐angled lines _| represent the clock input (in this case a rising edge 0 to 1) (Figure 1.7).

Schematic illustration of transition with and without outside world inputs.

      In Figure 1.7, the transition between states s0 and s1 will occur at the clock pulse in the upper state diagram, while in the lower state diagram it will only occur if the outside world input set to 1 ‘st = 1’ and a ‘0 to 1’ transition occurs on the clock input.

       What changes would be needed to Figure 1.7 to make the transition between s0 and s1 occur when input st = 0?


Скачать книгу