fayevalentine
Programmer
Hi guys!
This is my issue, I have a module with 8 entries, up to four can be high level, but I do not know which ones, so I use a loop for to look for them, activating the outputs,
this works for me but sinthesizing uses many resources.
(I am using Xilinx software)
Is there a way to do this without using a process?
this is a simple version of my process:
process(ENTRIES)
variable i : integer;
variable j : integer:= 0;
begin
for i in 0 to 7 loop
if ENTRIES(i) = '1' then -- active entry
RESULT(j) <= '1'; --output just 4 maximum
j := j +1;
end if;
end loop;
end process;
Thanks in advance.
This is my issue, I have a module with 8 entries, up to four can be high level, but I do not know which ones, so I use a loop for to look for them, activating the outputs,
this works for me but sinthesizing uses many resources.
(I am using Xilinx software)
Is there a way to do this without using a process?
this is a simple version of my process:
process(ENTRIES)
variable i : integer;
variable j : integer:= 0;
begin
for i in 0 to 7 loop
if ENTRIES(i) = '1' then -- active entry
RESULT(j) <= '1'; --output just 4 maximum
j := j +1;
end if;
end loop;
end process;
Thanks in advance.