Docsity

Algorithmic State Machines, Lecture notes of Digital Electronics

Partial preview of the text

Download Algorithmic State Machines and more Lecture notes Digital Electronics in PDF only on Docsity!

EC 204 -Digital Design

II

Online Lecture 22-04- Topic: Algorithmic State Machines Course Instructor: Kriti Suneja

Algorithmic State Machines (ASMs)

  • (^) The logic design of a digital system can be divided into two distinct parts:
  • (^) One part is concerned with the design of the digital circuits that perform the data processing operations. These operations are implemented with digital components such as adders, multiplexers, counters and shift registers.
  • (^) The other part is concerned with the design of the control circuits that determine the sequence in which the various actions are performed.

ASM charts

  • (^) The control sequence and datapath tasks of a digital system are represented by means of a hardware algorithm.
  • (^) A hardware algorithm is a step-by-step procedure to implement the desired tasks with selected circuit components.
  • (^) An ASM chart is a special flowchart that has been developed specifically to define digital hardware algorithms.
  • (^) They are mainly used in the design of the control unit of a digital system.
  • (^) ASM chart provides a conceptually simple and easy to visualize method of implementing algorithms used in hardware design.
  • (^) It is an alternative for describing the behavior of a FSM.

Components of ASM Chart

  • (^) State Box
  • (^) Decision Box
  • (^) Conditional Output box
  • ASM CHART- STEP - S - S - S - S
    • S0-
    • S1-
    • S2-
    • S3-

S0=y1y2= S1=y1y2= S2=y1y2= S3=y1y2= Y1=y1’y2x’+y1y2’x Y2=y1’y2’x+y1y2’x Z=y1y2x’

Y= y’AB+yAB’+yA’B+yAB = AB+yAB’+yA’B =A(B+y)+yA’B =AB+Ay+yA’B =AB+y(A+B) =AB+yA + yB Z=y’A’B +y’AB’ +yAB+yA’B’

ASM for weighing machine

  • (^) The weight of a binary number is the number of 1s present in its binary representation.
  • 1100010….its weight is 3(i.e. 011)
  • (^) Let the digital system contains a register R to store the binary number whose weight is to be determined.
  • (^) Another register W which acts as counter to determine the weight of the given binary number and 1 flip flop.
  • (^) Initially, the number has to be uploaded in R and W has to be initialized.
  • (^) Then shift each bit of the register R into F , one at a time.
  • (^) Whenever it is one, the register W is incremented by 1.
  • (^) At the end, W contains the weight of the word. R

S R F W