Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
8 years ago

No logic elements although I have an output

Hello

Please guide me why I don't see any logic element for the current code :

LIBRARY ieee;

USE ieee.std_logic_1164.all;

Use ieee.numeric_std.all;

USE work.my_data_types.all; -- to define array of input ( package )

ENTITY test IS

PORT (

clk: in std_logic;

OutResult: out signed(9 downto 0));

end test;

Architecture behave of test is

Signal Im : Array2D:=(("0010000111","0001111110","0001001101","0000000000","0000000000"),

("0001001111","0010000100","0000101100","0000011011","0000000000"),

("0001011101","0010000100","0000100111","0000101001","0000000000"),

("0001011101","0010000100","0000100111","0000101001","0000000000"),

("0000000000","0000000000","0000000000","0000000000","0000000000"));

signal Bufftemp:Array2D;

signal Buffsig:signed(9 DOWNTO 0);

begin

Process (clk)

variable i,j:integer range 0 to 7:=0;

begin

if (clk' event and clk='1') then

for j in 0 to 1 loop

for i in 0 to 1 loop

Bufftemp(2*j,2*i+1)<= Im(2*j,2*i+1) - 5;

end loop;

end loop;

end if;

Buffsig<=Bufftemp(i,j);

end process;

OutResult<=Buffsig;

end behave;

26 Replies