Hi, i have problems in the Model Sim simulator ; i didn't burn it on the chip yet .
i don't use quartos to weite the code , i write at notepad ++ so i don't synthesize it and see RTL diagram .
the code without clock :
-------------------------------------------------
process (ResetP)
variable score : integer range 1 to 4;
begin
score := 1 ;
if ( resetP = '1' ) then
Des_out <='0';
else if (reserP ='0' ) then
for ind in 0 to 3 loop
if hlp(ind)='1' then
score := score + 1;
end if ;
end loop ;
if (score > 2) then
Des_out <= '1';
else
Des_out <= '0';
end if ;
end if ;
end process;
-----------------------------------------
do i need to write it differently ? without for statement ?