[an error occurred while processing this directive]
|
Почему абсолютна одинаковая форма сигнала IZP?
В строке (if сntr = "0110" then") можно 0110 изменить на 1001, 1110, 0101, 0011 и т.д. и форма сигнала IZP при этом не измениться. Что то не допонимаю.
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(
F56 : in std_logic;
foutr : out std_logic_vector (3 downto 0);
IZP : out std_logic
);
end count_load;
architecture a of count_load is
signal cntr : std_logic_vector (3 downto 0);
begin
process (F56)
begin
if (F56'event and F56 = '1') then
if cntr = "0110" then
cntr <= "0000";
else
cntr <= cntr + 1;
end if;
end if;
end process;
IZP <= cntr(3);
foutr <= cntr;
end a;
E-mail: info@telesys.ru