Use Verilog HDL language programming, realize the following function,
By dial the code switch SW0 key implementation pattern choice:
SW0=0: small lights flashing; The count and display SW0=1: buttons,
(1) the small lights flashing mode function requirement: through buttons K8, realization of eight small lamp flashes at a different frequency, asked: "press the K8 button for the even time, eight small lights shining with cycle for 1 second (0.5 seconds, 0.5 seconds out), when press the K8 button wonder several times, eight small lights shining with cycle for 2 seconds (2 seconds, 2 seconds out)",...
(2) button count and display function: through the keys K1, achieve 100 base count, counting result shows the right side of the four digital tube in two; When the count results for more than 10, lattice screen scroll "top ten" two characters,... ...