Gast
#2322200
Hallo, Ich hab eine VHDL-code in meinem Projekt wie folgenden geschrieben, aber leider nicht synthesierbar: entity test is generic ( ARR_SIZE: integer := 4; iteration : integer := 0); port ( clk : in STD_LOGIC; x_in : in MY_ARRAY (ARR_SIZE-1 downto 0); y_in : in MY_ARRAY (ARR_SIZE-1 downto 0); x_out : out MY_ARRAY (ARR_SIZE-1 downto 0); y_out : out MY_ARRAY (ARR_SIZE-1 downto 0) ); end test; architecture Behavioral of test is begin process (clk) variable Xtemp,Ytemp : MY_ARRAY(ARR_SIZE-1 downto 0); begin if clk'event and clk ='1' then for i in ARR_SIZE-1 downto 0 loop Xtemp(i) := x_in(i) + (y_in(i) sra iteration); Ytemp(i) := y_in(i) - (x_in(i) sra iteration); end loop; end if; x_out <= Xtemp; y_out <= Ytemp; end process; end Behavioral; wenn ich Xtemp(i) := x_in(i) + y_in(i); Ytemp(i) := y_in(i) - x_in(i); statt Xtemp(i) := x_in(i) + (y_in(i) sra iteration); Ytemp(i) := y_in(i) - (x_in(i) sra iteration); versucht, klappt es schon. Kennt jemand wie kann es korrigiert werden? vielen danke!