![]() ![]() It has synchronous reset and if there if the reset is 1, the output clock resets to 0. What I want to know is whether it is OK to use a clock that has been divided down using verilog on a real FPGA to clock flip flops. The out_clk is also a clock that has a frequency one forth the frequency of the input clock. Dividing a clock down in Verilog is a basic exercise, and there are loads of answers online about how to do it. For example, faced with having to divide a clock by a factor of 27. It has an output that can be called out_clk. One of the most common functions that is implemented inside an FPGA is clock division. Problem - Write verilog code that has a clock and a reset as input. The figure shows the example of a clock divider. In other words the time period of the output clock will be 4 times the time period of the clock input. Our previous example of cock divide by 2 seemed trivial, so let us extend it to make a divide by 4.So for example if the frequency of the clock input is 50 MHz, the frequency of the output will be 12.5 MHz. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |