I have a piplined structure. interations is a generic value. It controls the delay. Everytime I got undefined value in gtkwave.
When I uncomment the loop and make s to a constant, then I have defined values. The problem is s is a variable. The correct stage of a variable is critical. The loop is often used construct. GHDL has with this a problem. Rene type value_type is array (0 to interations) of signed (out_bits-1 downto 0); signal value:value_type; --value_pipe(0) is wirten in an other process; process(clk) if( clk'EVENT and clk='1') then value_pipe(0)<=in_a; end if; end process; PROCESS(clk) begin if( clk'EVENT and clk='1') then for s in 1 to interations loop value_pipe(s)<=value_pipe(s-1); end loop; end if; end process; ---- _______________________________________________ Ghdl-discuss mailing list Ghdl-discuss@gna.org https://mail.gna.org/listinfo/ghdl-discuss