fpga分频程序

时间:2016-05-14 01:33:35
【文件属性】:

文件名称:fpga分频程序

文件大小:428KB

文件格式:RAR

更新时间:2016-05-14 01:33:35

vhdl 分频 50 led

LIBRARY IEEE; USE IEEE.STD_LOGIC_1164.ALL; USE IEEE.STD_LOGIC_UNSIGNED.ALL; ENTITY div50m IS PORT(clk: IN STD_LOGIC; co: OUT STD_LOGIC); END div50m; ARCHITECTURE fun OF div50m IS SIGNAL q:INTEGER range 0 to 50000000-1; BEGIN PROCESS(clk) BEGIN IF(clk'EVENT AND clk='1') THEN IF q=50000000-1 THEN q<=0; co<='1'; ELSE q<=q+1; co<='0'; END IF; END IF; END PROCESS; END fun;


网友评论