[vhdl] moved f and q outputs outside of the generate
[vhdl] fixed for loop