[转载]三分频的VHDL程序
(2013-06-23 22:54:33)
标签:
转载 |
原文地址:三分频的VHDL程序作者:破海飘依
下面是我写的三分频。期望能对大家有所启发。
library ieee;
use ieee.std_logic_1164.all;
entity fenpin3 is
port(clock:in std_logic;
end;
architecture devider of fenpin3 is
signal counter:integer range 0 to 2;
signal temp1,temp2:std_logic;
begin
process(clock)
begin
if rising_edge(clock) then
end if;
end if;
if falling_edge(clock) then
end if;
end if;
end process;
clk<=temp1 xor temp2;
end;