標簽:vhdl
-
單片機直流電機VHDL源代碼
發(fā)布時間:2018年05月27日,查看次數(shù):741直接粘貼就可以使用!USE IEEE.Std_logic_1164.ALL;USE IEEE.Std_logic_unsigned.All;USE IEEE.Std_logic_arith.All;ENTITY Dccount ISPort (Clk : IN STD_LOGIC;AI : IN STD_LOGIC_VECTOR(3 DOWNTO 0);CO : Out STD_LOGIC_VECTOR(3 DOWNTO 0);Pulse: IN STD_LOGIC;DriverA,DriverB: OUT STD_LOGIC;S : OUT STD_LOGIC_VECTOR(6 DOWNTO 0);P : OUT STD_LOGIC_VECTOR(5 DOWNTO 0);Sp : Out STD_LOGIC);END Dccount;ARCHITECTURE A OF Dccount ISSIGNAL F: STD_LOGIC_VECTOR(5 …