Duke Scarring wrote:
> The signals i_sctrl, i_sprd and i_sht are in a diffrent scope,
> than the
> variables with the same name inside the procedure.
>
> If you want zu use them, you have to add them to the parameter list:
> procedure P_DATA(
> constant ctrl : in std_logic_vector (8 downto 0);
> constant ht : in std_logic_vector (16 downto 0);
> constant prd : in std_logic_vector (16 downto 0);
> signal x_sctrl : out std_logic_vector (8 downto 0);
> signal x_sprd : out std_logic_vector (16 downto 0);
> signal x_sht : out std_logic_vector (16 downto 0);
> )
> is
> begin
> x_sctrl <= ctrl;
> x_sprd <= prd;
> x_sht <= ht;
> end procedure;
>
> ...
>
> P_DATA(X"04", X"0009",X"000A",i_sctrl,i_sprd,i_sht);
>
> Duke
Hi Duke,
Thanks a lot. It's a exactly what I wanted to do. It works like a charm
Many Thanks