Finite State Machine Explained | Mealy Machine and Moore Machine | What is State Diagram ?

Поділитися
Вставка
  • Опубліковано 28 лис 2024

КОМЕНТАРІ • 61

  • @ALLABOUTELECTRONICS
    @ALLABOUTELECTRONICS  Рік тому +11

    For more information, check this playlist on Sequential Circuits:
    ua-cam.com/play/PLwjK_iyK4LLCCpnnybEztvRqxpMyfgarS.html

  • @vrakitine
    @vrakitine 5 місяців тому +26

    When I was earning my master's degree, I heard a lot about finite state machines (FSMs), but it was all theory - like clouds in the sky: there's a lot of water, but you can't drink it. I toiled for three months after graduating until I implemented my first FSM in code in 1981. Now, there is a programming methodology based on this concept - v-agent oriented programming (VAOP) - with many examples of its implementation. It's best to start learning about VAOP with this article on Medium: "Bagels and Muffins of Programming or How Easy It Is to Convert a Bagel into a Black Hole".
    With VAOP, you can implement FSM in any programming language.

  • @opengl-ve1bv
    @opengl-ve1bv 10 днів тому +7

    i have exam tommorrow you saved my life thx!

    • @ALLABOUTELECTRONICS
      @ALLABOUTELECTRONICS  10 днів тому +1

      All the best !!

    • @opengl-ve1bv
      @opengl-ve1bv 10 днів тому

      @@ALLABOUTELECTRONICS but what about the moore table? isn't right that the output will be like this 11001100 ? cuz it doesn't depend on the input? or it's just a transition table so it's correct?

    • @ALLABOUTELECTRONICS
      @ALLABOUTELECTRONICS  10 днів тому

      @@opengl-ve1bv In case of the Moore machine, depending on the input, state of the machine changes and the output is the function of that present state.

  • @poojashah6183
    @poojashah6183 Рік тому +12

    You are the best teacher, great explanation 👌🏻👌🏻

  • @bharathk8320
    @bharathk8320 Рік тому +4

    As usual my guru excelled in this lecture

  • @gopikrishnanm5310
    @gopikrishnanm5310 Рік тому +9

    As usual great content sir❤. I love ur way of teaching and it’s easy to grasp the content in one go.
    How many lectures are pending sir, am referring ur videos for preparation.

  • @mayurshah9131
    @mayurshah9131 Рік тому +3

    Please continue such finest vedios

  • @shaikshahidafrid8506
    @shaikshahidafrid8506 Рік тому +5

    What skills are needed for ece students..
    And how to prepare for core placements.

    • @rajbhushan3541
      @rajbhushan3541 Рік тому +4

      strengthen your fundamental concepts of ece like dsd basic vsli, circuit analysis etc. Focus on any specific domain. like FPGA embedded etc.

  • @amineadelbekdouche4596
    @amineadelbekdouche4596 Рік тому +4

    hi, thank you so much for the brief and concise explanation of the finite state machine. May i know what software you use for your presentation which i really appreciated.

  • @KAA-cf3kj
    @KAA-cf3kj 4 місяці тому +7

    Sir, I think the state table for Moore machine is wrong... Bcoz the output only depends on present state so the output will be 11001100

  • @galata1245
    @galata1245 Рік тому +3

    Great video thanks bro

  • @samizaif4267
    @samizaif4267 9 місяців тому +9

    somebody put his name on my Electric Engineering degree too

  • @faneeshbansal
    @faneeshbansal Рік тому +1

    Thanks for this video, please upload more videos soon on fsm sir

  • @MohammadKhabiri-t6x
    @MohammadKhabiri-t6x 10 місяців тому +1

    thanks for this video

  • @GowthamsinghKshathriya
    @GowthamsinghKshathriya 18 днів тому +1

    Actually how the state diagram are writing without knowing state table or characteristic table
    Pls someone let me know 😢

  • @chimachan6652
    @chimachan6652 11 місяців тому +2

    Just a piece of advice: whether you learn English or try an artificial intelligence speaker
    except that ; everythng is great *thank you*

    • @muhammedfazal697
      @muhammedfazal697 6 місяців тому

      What's wrong with his English

    • @klaus9687
      @klaus9687 13 днів тому

      @@muhammedfazal697 hard to understand. had to see subtitles to know that he said falling edge.

  • @maciekcieslik8433
    @maciekcieslik8433 Рік тому

    What should we do if we have neither state table nor state diagram. To create the other one we need one of them.
    How can we create the first? Or maybe in exercise we have always one of them given?

    • @ALLABOUTELECTRONICS
      @ALLABOUTELECTRONICS  Рік тому

      Typically in the exercise, you will be given one of them. But like if you are designing the FSM by yourself from the scratch, then based on the desired outcome for the different inputs, you should first draw the state diagram or state table. And then based on that, you can design the FSM.
      In one of the video, through an example of the sequence detector, I have explained that procedure.
      Please check this video for more info: ua-cam.com/video/PbjntQf3sGc/v-deo.htmlsi=qWoOpjbaZ3sQCmAM

  • @courcestudy933
    @courcestudy933 Рік тому

    In other websites it is showing that In Moore machine the output depends on the present state but in your table it is showing that it depends on the next stage.

    • @ALLABOUTELECTRONICS
      @ALLABOUTELECTRONICS  Рік тому +2

      In Moore machine, output only depends on the present state, as it is evident from the state diagram. But in the second row of the table, by mistake, the output is written as 0. (when the present input is 01). It should be 1. For the rest of the cases, it only depends on the present state. But it does not depend on the next state. Probably, you might be meaning to say an input I guess. But by mistake, you have written next state. I hope it will clear your doubt.

    • @courcestudy933
      @courcestudy933 Рік тому +1

      yess thankyou but when present state is 10 then it should be 0 but it is written 1 , so i guess the outputs of 01 and 10 have been interchanged by mistake@@ALLABOUTELECTRONICS

    • @muskanustad3834
      @muskanustad3834 2 місяці тому

      ​@courcestudy933 you are right

  • @OviMG
    @OviMG Рік тому

    8:15, i didnt quite understand why on the mealy we have "2 numbers" on the transitions between states. Like we know that if the output for "00" is "1" it will "go" to "01" but what s about that aditional "0" from "1/0" ?

    • @ALLABOUTELECTRONICS
      @ALLABOUTELECTRONICS  Рік тому +5

      The second number represents the output of the machine for the corresponding input. In the mealy machine, the first number represents the input and the second number represents the output. I hope, it will clear your doubt.

  • @mahamkharal3704
    @mahamkharal3704 5 місяців тому

    • Finite State Machines: Analysis
    • Finite State Machines: State Table
    • Finite State Machines: State Diagram
    guyz i have presentation on these topic can anybody help me
    i have few questions
    like sequential circuit and FSM are same thing .
    moore and mealy is type of SC or FSM

  • @kakrotchess
    @kakrotchess Рік тому +66

    pls change intro song

  • @anirudhas-tn6ue
    @anirudhas-tn6ue Рік тому +3

    11:19 Shouldn't the output be dependent on current state? In that table it is depending on the next state. Someone please explain

  • @sathyagananaathaasattiamur4827
    @sathyagananaathaasattiamur4827 11 місяців тому

    14:30, What is meant by the input sampled right before the edge? I have also read this in a textbook but I have a bit of difficulty in understanding this concept.

    • @ALLABOUTELECTRONICS
      @ALLABOUTELECTRONICS  11 місяців тому

      Like I said, the input is synchronized to the inactive edge of the clock. So, before arriving the next clock edge, the output of the circuit will get settled. (Typically, the propagation delay of other logic gates will be less than half clock period. In this case, the input X is connected to the OR gate at the output, So once the input X is applied at the inactive edge, the stable output of the last OR gate will be available before the next active clock edge). Therefore, the best time to sample the output is just before the next clock edge. I hope, it will clear your doubt.

  • @EgeCalsma-uj5xt
    @EgeCalsma-uj5xt 7 місяців тому

    Amazing

  • @sanjayshah9838
    @sanjayshah9838 Рік тому

    V Good 🎉

  • @Manishaa325
    @Manishaa325 7 місяців тому

    Provide the notes on fsm

  • @greencheese3717
    @greencheese3717 11 днів тому

    i don't understand the logic of the state diagram of the machines

    • @ALLABOUTELECTRONICS
      @ALLABOUTELECTRONICS  10 днів тому

      The state diagram shows, how the state of the machine changes with the input. And in case of the Mealy machine, the output is also shown on arrow. While in case of the Moore machine (since the output is function of only present state), so output is represented in the state itself.

  • @francescoliberi759
    @francescoliberi759 10 місяців тому +5

    are u indian?

  • @DorothyYoung-g6h
    @DorothyYoung-g6h 2 місяці тому

    Autumn Ridges

  • @BoswellRod-d5g
    @BoswellRod-d5g 2 місяці тому +1

    Gaylord Wall

  • @sidharthgujjar7221
    @sidharthgujjar7221 11 місяців тому +2

    hindi ni aati aapko ?

  • @viettuto9605
    @viettuto9605 7 місяців тому

    talk like google voice machine.

  • @YaleFreda
    @YaleFreda 2 місяці тому

    44164 Friesen Burgs