Altera_Forum
Honored Contributor
8 years agoVHDL code P2, Is anybody who can help me ?
Hi guys,
I have some code for this "project" (photo). I have no idea hot to pair this. Can You help me with port map and signals ? This code is correct ? library IEEE; use IEEE.STD_LOGIC_1164.ALL; entity projekt is port(Up,Down, : in std_logic; A0, A1, A2, A3: out std_logic); end projekt; architecture projekt of projekt is begin s1 <= up s2 <= entity component is port (T: in std_logic Clock: in std_logic Out: out std_logic); signal tmp: std_logic; end component; Architecture Behavioral of component is begin process (Clock) begin if Clock'event and Clock='1' then if T='0' then tmp <= tmp; elsif T='1' then tmp <= not (tmp); end if; end if; end process; Out <= tmp; end przerzutnik; begin T_FF: T1 port map(T T_FF: T2 port map T_FF: T3 port map T_FF: T4 port map