Greg Beaton schrieb:
> the signal value_pipe including value_pipe(0) should be constructed in
> only one process.
>
> Greg
>
Correctly.
This  solve the problem.
Thank you Greg.



>
> On Mon, Nov 23, 2009 at 2:44 PM, R.Doss <[email protected]
> <mailto:[email protected]>> wrote:
>
>     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
>     [email protected] <mailto:[email protected]>
>     https://mail.gna.org/listinfo/ghdl-discuss
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Ghdl-discuss mailing list
> [email protected]
> https://mail.gna.org/listinfo/ghdl-discuss
>   


_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss

Reply via email to