#6 How to Generate a Slow Clock on an FPGA Board? | Verilog | Step-by-Step Instructions

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

КОМЕНТАРІ • 32

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

    If you find video helpful, please consider subscribing to the channel.
    Full Course available at *Udemy* w/ free access to code and project files for 10 cool FPGA projects ➤ www.udemy.com/instructor/course/5064304/

  • @khevanapurohit4440
    @khevanapurohit4440 10 місяців тому +1

    Where do we find or generate xdc that is constraints file sir?

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

    Though it successfully generates a bit-stream there are timing error warnings due to excessive skew. How do you setup a timing constraint file for this example that gets rid of the warnings? -- Thanks!

  •  2 роки тому +1

    Thanks for the example!

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

    Hello but the led is blinking in the video is every 0.5 seconds not 1 seconds, can you clear the doubt.

  • @dheerajchumble5602
    @dheerajchumble5602 3 роки тому +1

    Thank you so much sir. I have been trying it since so long. I could write clock divider code now, and it's working successfully too. Waiting for more such tutorials.

  • @KavanaC-ej3td
    @KavanaC-ej3td Рік тому +1

    Sir could u please provide the test bench so that i can verify it in modelsim

  • @maialso6096
    @maialso6096 2 роки тому +1

    Thank you so much this is very helpful , I am using cyclone v DE10 standard board and its clock input is 50MHz this means that 25_000_000 cycles are on , correct ?
    and the code should be
    reg [14:0] count =0;
    reg clk_out
    always@(posedge clk_in)
    begin
    count

    • @ElectronicswithProfMughal
      @ElectronicswithProfMughal  2 роки тому +1

      The clk out part just simply helps mimic square wave, a digital signal. It is off for certain amount of time and it is on for certain amount of time.

  • @dheerajchumble5602
    @dheerajchumble5602 3 роки тому +1

    Nice tutorial sir, however i didn't get the point that is without assigning pins to clock and LED in the design file how vivado understood which pins to use for clk_in and LED. Can you please explain this.

    • @ElectronicswithProfMughal
      @ElectronicswithProfMughal  3 роки тому

      Dear Dheeraj, @8:40 we use constraint files for basys 3 board and we use right most led on the board and system clock declared as output and input in the source file. Hope this helps.

    • @dheerajchumble5602
      @dheerajchumble5602 3 роки тому

      @@ElectronicswithProfMughal Thank you sir, but I want to know just by declaring clk and led as input and output how vivado knows which pins to assign them. Sorry for my lame understanding.

    • @ElectronicswithProfMughal
      @ElectronicswithProfMughal  3 роки тому +1

      I am using a Basys 3 board which has 16 leds, I can use any led I like. In the constraint file there are pin locations for every input and output. Those locations are also labelled on the board as well. In this video I chose the led which is on the very right. For every board, constraint file is given by the manufacturer.
      I suggest you watch this video:
      ua-cam.com/video/tOwMmBI_XNo/v-deo.html

    • @dheerajchumble5602
      @dheerajchumble5602 3 роки тому

      @@ElectronicswithProfMughal Got the point. Thank you sir.

  • @kapilsingla1228
    @kapilsingla1228 4 роки тому +1

    sir i have one doubt here we haven't given initial value of clk_out . should'nt we give initial clk_out as '1' or '0' so that after it toogles. Kindly explain sir I m little confused in this point

    • @ElectronicswithProfMughal
      @ElectronicswithProfMughal  4 роки тому +1

      Dear Kapil, you don’t necessarily have to do that because you’re defining positive edge of the clock here (meaning logic going from 0 to noon). So that means it waits for the positive edge and only then execute the commands.

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

    I understand the logic does everything in parallel/concurrently.. yet this in this example the assignment to count seems like its sequential:
    count

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

      If you do that, it won't work. It will just simply stay solid. You should use the desire clock within the always@ block statement.

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

    Sir why we have not use 100 million cycles ??

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

      Because one complete cycle is half off and half on. So if we divide 1M by half, we get 500_000. Means 500_000 cycles off, and 500_000 cycles it's on. That makes it a 1 Hz clock.

  • @saswiko3502
    @saswiko3502 5 років тому +1

    its great thank u MR Mughal

  • @haowenwei3256
    @haowenwei3256 5 років тому

    Your student John Wei in ECE2029 just subscribed @ _ @