The frequency divider consists of a counter module M chosen by the user as an input to the project. When the counter reaches the value M-1, a signal is enabled which will function as a clock of another 7-bit counter and each output of this counter can be used as a clock signal, each signal is divided by 2 in frequency. The pulse of the M module counter was enabled as output but it is not recommended to use it as clock signal, but it can be used in other applications.
To test the design you only need to choose the M module with the switches on the dedicated inputs.
|0||Modulo||segment a||CLK 1/2|
|1||Modulo||segment b||CLK 1/4|
|2||Modulo||segment c||CLK 1/8|
|3||Modulo||segment d||CLK 1/16|
|4||Modulo||segment e||CLK 1/32|
|5||Modulo||segment f||CLK 1/64|
|6||Modulo||segment g||CLK 1/128|
|7||Modulo||dot||Modulo M signal|