[an error occurred while processing this directive]
|
уже с учетом изменений:
library IEEE;
use IEEE.STD_LOGIC_1164.all;
use IEEE.STD_LOGIC_ARITH.all;
use IEEE.std_logic_unsigned.all;
entity count_load is
port(
clk : in std_logic;
f : out std_logic);
end count_load;
architecture a of count_load is
signal cnt : std_logic_vector (20 downto 0);
begin
process (clk)
begin
if (clk'event and clk = '1') then
if cnt = 475416 then
cnt <= "001110100000100011000";
else
cnt <= cnt + 1;
end if;
end if;
end process;
f <= cnt(20);
end a;
запустить на максе, то он дает 39 ячеек и быстродействие 56 МГц. В то время как квартус 21 ячейку и быстродействие 133 МГц. Вот такие разные компиляторы.
E-mail: info@telesys.ru