Professional Documents
Culture Documents
Lec2 Notes PLC
Lec2 Notes PLC
❑ The n input binary variables come from an external source; the m output variables are produced by
the internal combinational logic circuit and go to an external destination.
Prof. Ashraf Zaher 2
Analysis Requirements
❑ We firstly write:
Binary Adder
Binary Subtractor
Decoders
Incoders
Multiplexers
…
…
Mode
Example of a Example of a
Mealy Machine Moore Machine
Prof. Ashraf Zaher 13
Registers or Memory Elements
❑ Storage elements (memory) used in clocked sequential circuits are called flip-flops (FFs)
❑ A FF is a binary storage device capable of storing one bit of information
❑ A change in state of the FFs is initiated only by a clock pulse transition
❑ When a clock pulse is not active, the feedback loop between the value stored in the FF and
the value formed at the input to the FF is effectively broken because the FF outputs cannot
change even if the outputs of the combinational circuit driving their inputs change in value
❑ Thus, the transition from one state to the next occurs only at predetermined intervals
dictated by the clock pulses
❑ Storage elements that operate with signal levels are referred to as latches
➢ Level-sensitive devices
❑ Storage elements that operate with signal transitions are referred to as FFs
➢ Edge-sensitive devices
❑ Latches are the basic circuits from which all FFs are constructed
❑ Latches are useful for the design of asynchronous sequential circuits
Prof. Ashraf Zaher 14
The Set/Reset FF (SR latch)
Shorting S and R
Check the
operation No change Set Reset Toggle
Derive the
equations
Is it Moore or
Mealy Machine?
Moore
or
Mealy?
Unused State!
Synthesis using
different FFs