How to create a Clocked Process in VHDL

Поделиться
HTML-код
  • Опубликовано: 17 окт 2024

Комментарии • 26

  • @RiteshKumar-lh1xn
    @RiteshKumar-lh1xn 5 лет назад +2

    You said in previous video ( signals and variables ) that the signals change after wait statements. So nRst should change after 20 ns and Input should change after 22 ns. I am a bit confused.

    • @VHDLwhiz
      @VHDLwhiz  5 лет назад +1

      The signal values are updated when the program hits the Wait-statement, not when it wakes up from it. In the Signals and Variables video I didn't show the waveform, so you couldn't see this behavior.
      It is a bit confusing at first, but once you understand it you will see that it all makes sense.
      If you want to know more you can check out my blog post about delta cycles:
      vhdlwhiz.com/delta-cycles-explained/

  • @calin1996mh
    @calin1996mh 6 лет назад +2

    love you , plz don't stop making videos like this

    • @VHDLwhiz
      @VHDLwhiz  6 лет назад +1

      Thank you! It's been slow lately because I've been a bit overworked. I will complete this tutorial series at least.

  • @harykishore1914
    @harykishore1914 2 года назад

    The following is in a sequential process that's triggered by rising edge. What is output3b in decimal after 4 clock cycles. a

  • @mahmutbostan6080
    @mahmutbostan6080 5 лет назад

    hi
    I do not simulate I want to lick both the rising and failing edge of the 1 entry How can I do this
    I'd try
    if Signal_in'event and Signal_in='1' then
    i

  • @kindjupiter
    @kindjupiter 7 лет назад +1

    Thanks alot for this series, i hope next videos come soon.

    • @VHDLwhiz
      @VHDLwhiz  7 лет назад

      Thanks! I'm glad you enjoyed it. It won't be long, I'm working on the next blog post and video.

  • @En3rGyFaNforEv3r
    @En3rGyFaNforEv3r 3 года назад +1

    if the "wait" statement in VHDL doesnt work in real life, how does the "after" statement work in real life?

    • @En3rGyFaNforEv3r
      @En3rGyFaNforEv3r 3 года назад

      ClockedProcessTB line 29

    • @VHDLwhiz
      @VHDLwhiz  3 года назад

      The "after" keyword also doesn't work in real life. We only use the "wait for" and "after" keywords in testbenches. They are for simulating events that are not part of the device under test. For example, in this testbench, we are using the "after" keyword on line 29 to generate the clock signal. The FPGA has to get this signal through a physical pin, but we can simulate it easily like that.

    • @TheStrelok7
      @TheStrelok7 3 года назад

      write a counter

  • @patapon3051
    @patapon3051 3 года назад

    A tip from mathematician You can also write for clockperiod = (1/clockfrequency) you will get the same.

    • @VHDLwhiz
      @VHDLwhiz  3 года назад +5

      That would be "clockperiod := 1 sec / clockfrequence" because otherwise the result won't be of type "time", and that's a compilation error.

    • @patapon3051
      @patapon3051 3 года назад +1

      @@VHDLwhiz that what i meant but i wrote it as general expression. Thanks and have a nice day.

    • @1972hattrick
      @1972hattrick Месяц назад

      @@VHDLwhizi was going to ask if there was a reason to use 1000ms instead of 1s?

    • @VHDLwhiz
      @VHDLwhiz  Месяц назад +1

      That would also work. It's the same.

    • @1972hattrick
      @1972hattrick Месяц назад

      @@VHDLwhiz I am going to be taking a VHDL/Verilog course at school in September. This series has really boosted my interest in the subject. Thank you for providing this resource.

  • @mohamed_akram1
    @mohamed_akram1 3 года назад +2

    It's strange to master VHDL and adobe products at the same time

  • @medhm2262
    @medhm2262 5 лет назад

    Hello haw can i make connection between two fsm ?

    • @VHDLwhiz
      @VHDLwhiz  5 лет назад

      Then you are basically making one complicated FSM. If you insist on having the two separate FSMs, you have to invent som kind of inter-process signaling scheme to communicate between the two.

  • @FernandoGonzalez-zw9cm
    @FernandoGonzalez-zw9cm 6 лет назад

    Amazing videos, Thank you so much =D

  • @mohamed_akram1
    @mohamed_akram1 3 года назад

    thank you

  • @benjaminhodzic4840
    @benjaminhodzic4840 5 лет назад

    thank you