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/
Thank you for the video professor! Took me a while to debug my code, but I finally got it running (I'm using a board with a Cyclone IV and Quartus Prime Lite). Looking forward to the next videos!
i build it with logic gates , transfer it into a VHDL code by Multisim software and thn uploaded that code on the fpga board ..... it was simple , i also made a 4 digits locking system and a simple automation segment , they all was simple.......thats the problem , i will face future problems due to my ignorance of programming , projects like "vga display" or "CNC machine"
@@ElectronicswithProfMughal yeah you can say that , that clock tooks me around 350 logic gates including flipflops and counters and debouncers ... , but this methode is so limited
I think push buttons won't work with this code as expected because when you press the button we will at least press it for few milliseconds lets take a best case that you will press for 1ms (actual value will be higher than 1ms) then in this code in always @(posedge clk) number of "posedge clk 's" will be 10^5 so the button will be high 10^5 always cycles so if you press minup - button even if it is for 1ms , min
Hi prof, if im using spartan 3e with 50Mhz oscillator clock, do i need to slow the clock down to 1 hz beforehand? and what actually is the function of declaring a localparam?
Yes, you'll still need to slow down the clock, and because the board clock is 50 MHz, which means the count value will be different from what is shown in the video because Basys 3 board has a frequency of 100 Hz. Declaring localparam is helpful so you can use assigned variables that carry some pre-stored values. If your machine has any states, it is helpful to use localparam command. On how to slow down the clock, please watch this video - ua-cam.com/video/pFHKVLrjOSk/v-deo.html
Sir I have one doubt I am confused to choose clock frequency My sir said to operate clock at 1hz so what changes should I do? Simply I just need to kept always #1 clk= ~clk; that's it?
Ankam, we've chosen 1 Hz clock in this project. You can also watch this tutorial on how to set a slow clock - studio.ua-cam.com/users/videopFHKVLrjOSk/edit
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/
Thank you for the video professor! Took me a while to debug my code, but I finally got it running (I'm using a board with a Cyclone IV and Quartus Prime Lite). Looking forward to the next videos!
Glad Lucas that you enjoyed :)
i build it with logic gates , transfer it into a VHDL code by Multisim software and thn uploaded that code on the fpga board ..... it was simple , i also made a 4 digits locking system and a simple automation segment , they all was simple.......thats the problem , i will face future problems due to my ignorance of programming , projects like "vga display" or "CNC machine"
Doing it that way, I call it cheating 😛 But great job (y)
@@ElectronicswithProfMughal yeah you can say that , that clock tooks me around 350 logic gates including flipflops and counters and debouncers ... , but this methode is so limited
the push buttions are not working for me plz help
So thanks man
I think push buttons won't work with this code as expected because when you press the button we will at least press it for few milliseconds lets take a best case that you will press for 1ms (actual value will be higher than 1ms) then in this code in always @(posedge clk) number of "posedge clk 's" will be 10^5 so the button will be high 10^5 always cycles so if you press minup - button even if it is for 1ms , min
Hi sir do you know how to solve this problem?
TE AMO
Thank you :)
Hi prof, if im using spartan 3e with 50Mhz oscillator clock, do i need to slow the clock down to 1 hz beforehand? and what actually is the function of declaring a localparam?
Yes, you'll still need to slow down the clock, and because the board clock is 50 MHz, which means the count value will be different from what is shown in the video because Basys 3 board has a frequency of 100 Hz. Declaring localparam is helpful so you can use assigned variables that carry some pre-stored values. If your machine has any states, it is helpful to use localparam command.
On how to slow down the clock, please watch this video - ua-cam.com/video/pFHKVLrjOSk/v-deo.html
thank you so much for the video
Glad you like it :) thanks for watching.
question, is it possible to turn on the two leds in the middle of the display ?... (" : ")
Yes, it is. You should use a constraint file that has those ports and their addresses.
thanks for the video. really helpful
How much price will fpga board cost
do you have basys3 fpga code for buttons
see the link for it in the description.
Hi sir can i do this without the hardware kit to see the output by simulating this instantiated codes?
Smile yes, you can do that without the board itself. Good luck :) just create a testbench file and simulate it.
well explained sir thank you!!
Thank you Keerthi. Glad you liked it.
Sir I have one doubt
I am confused to choose clock frequency
My sir said to operate clock at 1hz so what changes should I do?
Simply I just need to kept
always #1 clk= ~clk; that's it?
Ankam, we've chosen 1 Hz clock in this project. You can also watch this tutorial on how to set a slow clock - studio.ua-cam.com/users/videopFHKVLrjOSk/edit
@@ElectronicswithProfMughal link not opening
Can I share my code can you rectify please
@@ElectronicswithProfMughal
module digital_clock(clk,rst,en,sec,min,hours,days,months);
input clk,rst,en;
output reg[5:0]sec;
output reg[5:0]min;
output reg[4:0]hours;
output reg[4:0]days;
output reg[3:0]months;
reg[31:0]count=0;
always@(posedge clk)
begin
if(rst)
begin
count
@@ankamanirudh8837 49_999_999 for 1 sec
sir can u provide me the block diagram for artix7 for digital alarm clock thank you
sir can we use this for artix 7 Nexys4 like there will be more seven segments rt my question is that we can wrk on led also rt...
Yes. You can get it to work on any FPGA board you may have.
Please allow access to the project dear sir.
granted
I really don't understand the use of segclk varible ElectronicswithProfMughal
@ElectronicswithProfMughal
Can anyone please tell me how can I make this clock code work on any other FPGA board?? What Changes do I need to make in the above code for zedboard
Watch this video, it will guide you.
ua-cam.com/video/pFHKVLrjOSk/v-deo.html
sir access to drive please
thanks for video, can you help to inteface of keyborad to basys3 board?
Vikas, Yo're not the only one, I've that on my list and it will up soon.
pls give me the acces for the file.
sir can i get software link and i am using windows 8.1 pro
saleem frooqie Hope you find this helpful: www.xilinx.com/video/hardware/vivado-design-suite-installation-overview.html
Hi sir. I have downloaded your programing code and it seem the push button does not work.
Najmi Zaki it worked on Basys 3 board for me.
Another alternative could be trying this pushbutton: ua-cam.com/video/LO8ONR1TceI/v-deo.html
@@ElectronicswithProfMughal I use Basys 3 board too. Thank you, I will try it first
in the given link, in which folder are the code files and in which format are they?
@@ishananchit677 Digital_Clock.srcs.
I have already request you plz allow to access this project
Can I have the VHDL file
I used Verilog and you can access the project files at the link mention in the description box.
@@ElectronicswithProfMughal I downloaded your project but the push button don't sim to work plz help
@@giovannibetances5023 I am not sure, what could be the issue. See if you can get that part to work from a testbench.
Is system verilog also required or simply verilog is enough?
Dear Manish, depends upon what your end goal is. You can do both.
@@ElectronicswithProfMughal fpga projects u teached are based on only verilog or system verilog?
Dear Manish, like I told you previously, it is upon your discretion and the simulation platform you’re using. I am using system verilog using Vivado.