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

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ม.ค. 2021
  • 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 👌👌

  • @matinfazel8240
    @matinfazel8240 ปีที่แล้ว

    Thanks for sharing your useful knowledge!

  • @barsmertakpnar3136
    @barsmertakpnar3136 6 หลายเดือนก่อน

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

  • @TymexComputing
    @TymexComputing 10 หลายเดือนก่อน

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

  • @i-manuel271
    @i-manuel271 3 ปีที่แล้ว

    This was a great video!!

  • @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.

  • @shamilniftaliyev
    @shamilniftaliyev 5 หลายเดือนก่อน

    You are the king!

  • @dansylee1
    @dansylee1 4 หลายเดือนก่อน

    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.

  • @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 หลายเดือนก่อน

    thank you!

  • @TonyDaExpert
    @TonyDaExpert 3 ปีที่แล้ว +3

    Thank youuuuuuuuuu

  • @athuldas44
    @athuldas44 10 หลายเดือนก่อน

    What is inbits that was shown in first program

  • @ngochuy7683
    @ngochuy7683 9 หลายเดือนก่อน

    thank you so muchh!!

  • @AkbarRajaei
    @AkbarRajaei 2 ปีที่แล้ว

    good job.

  • @valeriegirrens4715
    @valeriegirrens4715 4 หลายเดือนก่อน

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

  • @deeps474
    @deeps474 ปีที่แล้ว

    thanks!

  • @AhmadTalkss
    @AhmadTalkss 3 หลายเดือนก่อน

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

  • @AhmadTalkss
    @AhmadTalkss 3 หลายเดือนก่อน

    whats the difference between synchronous and asynchronous?

  • @riddhisingh338
    @riddhisingh338 2 ปีที่แล้ว

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

  • @vaibhavbhasin1221
    @vaibhavbhasin1221 4 หลายเดือนก่อน

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

  • @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 th-cam.com/channels/8gZeNz015waiQN5_-jvj7g.html