title: Is it possible to index using a variable of the for/loop in vhdl?
body: <p>I'm a novice of VHDL code.</p>
  
  <p>I would like to index a shared variable using the variable defined in the for/loop. It seems to work in simulation although the compiler tells me there are some warning:</p>
  
  <p>(ID: 13024). Output pins are stuck at VCC or GND.</p>
  
  <p>Unfortunately, it doesn't work on board as expected from the warning.</p>
  
  <p>I want to use for/loop because they seem good to reduce the complexity of the "total combinational functions" used, so I want to index in a stupid way, my shared variable.</p>
  
  <p>This is an extract of my code:</p>
  
  <pre><code>for I in I_top to I_top loop
  for J in J_top to J_top loop
  
      if type = 1 then
          matrix(I,J) := "110";   
          vector(I) := vector(I) + 1;
          end := true;
      elsif type = 2 then
      ...
      end if;
  end loop;
  end loop;
  </code></pre>