利用计数器实现20分频,占空比为50% 程序: LIBRARY IEEE; USE IEEE.STD_LOGIC_1164.ALL; --USE IEEE.STD_LOGIC_UNSIGNED.ALL; ENTITY CNT_20 IS PORT(CLK:IN STD_LOGIC; CNT:BUFFER INTEGER; C1:OUT STD_LOGIC); END ENTITY;