MikeM, FPGA вапросик

Author: A. Fig Lee [419 views] 2013-01-24 10:59:11

Не работает, ЛЕД должен светится, если '0' записываешь.
Клок процесс иррелевант пока.
Пинс правильные..


library IEEE;
use IEEE.STD_LOGIC_1164.ALL;

-- Uncomment the following library declaration if using
-- arithmetic functions with Signed or Unsigned values
--use IEEE.NUMERIC_STD.ALL;

-- Uncomment the following library declaration if instantiating
-- any Xilinx primitives in this code.
--library UNISIM;
--use UNISIM.VComponents.all;

entity LED is
Port ( LED : out STD_LOGIC_VECTOR (7 downto 0);
CLCK : in STD_LOGIC;
MySignal : out STD_LOGIC;
Button : in STD_LOGIC);
end LED;

architecture Behavioral of LED is

COMPONENT LED_Comp
PORT(
LED : out STD_LOGIC_VECTOR (7 downto 0);
CLCK : in STD_LOGIC;
MySignal : out STD_LOGIC;
Button : in STD_LOGIC
);
END COMPONENT;

COMPONENT clock
PORT(
CLKIN_IN : IN std_logic;
RST_IN : IN std_logic;
CLK0_OUT : OUT std_logic;
LOCKED_OUT : OUT std_logic
);
END COMPONENT;

signal clock1HzDiv : integer := 0;
signal OneHz : std_logic := '0';
signal one: std_logic := '1';
signal zero: std_logic := '0';

signal not_button: std_logic;


begin

LED(0) <= OneHz;
LED(1) <= '0';
LED(2) <= '1';
LED(3) <= '1';
LED(4) <= '1';
LED(5) <= '1';
LED(6) <= '1';
LED(7) <= '1';
MySignal <= not not_button;

CLK_stuff : process (CLCK)
begin

if rising_edge(CLCK) then
if clock1HzDiv = 25000000 then -- "After a reset, the DCM samples several thousand clock cycles to achieve lock" (http://www.xilinx.com/support/troubleshoot/clocking_debug.htm)
-- reset was de-asserted a while ago, so we should be locked by now
-- all has been clear for a while -- release the reset line
OneHz <= not OneHz;
clock1HzDiv <= 0;
end if;
end if;
end process CLK_stuff;

end Behavioral;

From:
Password:
Subject:
[b] [i] [u] [s]     [quote] [code] [tmdb] [sarcasm]  [url=]Title[/url]  [img=]
Preview first NSFW
Smileys  BBCode help  Translit help
[b]bolded text[/b]bolded text
[i]italicized text[/i]italicized text
[u]underlined text[/u]underlined text
[s]strikethrough text[/s]strikethrough text
[url]http://example.org[/url]http://example.org
[url=http://example.com]Example[/url]Example
[quote]quoted text[/quote]quoted text
[code]monospaced text[/code]monospaced text
[sarcasm]reverse italicized text[/sarcasm]sarcasm
[color=red]Red Text[/color]Red Text
[color=#FF0000]Red Text[/color]Red Text
[color=FF0000]Red Text[/color]Red Text
[size=15]Large Text[/size]Large Text
[img=https://www.kirdyk.club/images/Tip-Hat.gif]
А=AБ=BВ=VГ=GД=DЕ=EЁ=JOЖ=ZHЗ=ZИ=I
Й=JК=KЛ=LМ=MН=NО=OП=PР=RС=SТ=T
У=UФ=FХ=HЦ=CЧ=CHШ=SHЩ=XHЪ=##Ы=YЬ=''
Э=WЮ=JUЯ=JA
а=aб=bв=vг=gд=dе=eё=joж=zhз=zи=i
й=jк=kл=lм=mн=nо=oп=pр=rс=sт=t
у=uф=fх=hц=cч=chш=shщ=xhъ=#ы=yь='
э=wю=juя=ja