Witam, dlaczego podczas optymalizacji są usuwane wszystkie wejścia (zostaje tylko 8 wyjść)?
library IEEE; use IEEE.STD_LOGIC_1164.ALL; use IEEE.STD_LOGIC_ARITH.ALL; use IEEE.STD_LOGIC_UNSIGNED.ALL;
entity MostekA is Port ( MOSI : in STD_LOGIC; MISO : out STD_LOGIC; SCLK : in STD_LOGIC; CS : in STD_LOGIC; D : inout STD_LOGIC_VECTOR (7 downto 0); A : out STD_LOGIC_VECTOR (11 downto 0); ETH_RD : out STD_LOGIC; ETH_WR : out STD_LOGIC; ETH_RST : out STD_LOGIC; MEM_WE : out STD_LOGIC; MEM_RAS : out STD_LOGIC; MEM_CAS : out STD_LOGIC; MEM_OE : out STD_LOGIC; PHE_RD : out STD_LOGIC; PHE_WR : out STD_LOGIC); end MostekA;
architecture Behavioral of MostekA is signal shift_reg : std_logic_vector(7 downto 0); begin
process(SCLK) begin if (SCLK'EVENT and SCLK = '1') then shift_reg(7 downto 1)<= shift_reg(6 downto 0); shift_reg(0)<=MOSI; end if; end process; process(CS) begin if (CS'EVENT and CS = '1') then shift_reg<="00000000"; end if; end process;
D <= shift_reg;
end Behavioral;
Pozdrawiam MD