State Machines - coding in Verilog with testbench and implementation on an FPGA

Поділитися
Вставка
  • Опубліковано 5 вер 2024
  • Finite state machines are essential tool hardware and software design, but they are actually quite simple to understand. We walk through 1) What is a finite state machine?, what is the difference between a Moore and Mealy state machine? 2) How to design a state machine, 3) How to code a machine in Verilog.
    We will be using the example of a simple pair detector, but the principle can be applied for any state machine.

КОМЕНТАРІ • 22

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

    I was really helpful, Even our professor wasn't much perfect, thank you sir and keep doing this kind videos it would be much helpful one again tank you sir 👌👌

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

    13:45 - thats the question i was asking myself for 13 minutes :), so many state machines to consider :)

  • @barsmertakpnar3136
    @barsmertakpnar3136 8 місяців тому

    Very clear and understandable video thanks for informing us about fsm's

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

    I see that in the verilog code above, detect is a flopped version of (state == 2'b11); thus, the signal tap does show that detect is asserted 2 clk cycles after consecutive 0’s or 1’s of inbits.

  • @GeorgeAlbercook
    @GeorgeAlbercook 2 роки тому +2

    Strictly speaking it seems like the second and third zeros are also a pair. This is a detects something but you don't know if it is pair or triplet.

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

    Thanks for sharing your useful knowledge!

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

    There is a problem where your state machine doesn’t detect the second pair when there’s 3+ matching sequential inputs.

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

    thank you!

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

    You are the king!

  • @AhmadTalkss
    @AhmadTalkss 4 місяці тому

    im still confused how youre getting the 1s and 0s and which one they belong to

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

    When I navigate to netlist viewer none of the options are available, what do I do to fix this?

  • @AhmadTalkss
    @AhmadTalkss 4 місяці тому

    whats the difference between synchronous and asynchronous?

  • @TonyDaExpert
    @TonyDaExpert 3 роки тому +3

    Thank youuuuuuuuuu

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

    ERROR ! great but some typo is there. 4:51 complete verilog for states, in state 1

  • @i-manuel271
    @i-manuel271 3 роки тому

    This was a great video!!

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

    What is inbits that was shown in first program

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

    thank you so muchh!!

  • @riddhisingh338
    @riddhisingh338 2 роки тому

    Why wouldn’t you zoom in your test bench??

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

    thanks!

  • @AkbarRajaei
    @AkbarRajaei 2 роки тому

    good job.

  • @VarshithaAS-PSEC
    @VarshithaAS-PSEC Рік тому

    Please Explain the test bench in briefly

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

      Please check out my other channel for longer form/tutorial FPGA content ua-cam.com/channels/8gZeNz015waiQN5_-jvj7g.html