Guest
#4762276
I am currently working on a testbench which consists of several
procedures.
The problem i am facing is that, even for small blocks embedded in
procedures, the number of parameters is very high if i have to loop them
back.
This makes the procedure parameter list very complicated to read/write
and even worse, the code harder to understand.
eg (useless, but shows the problem)
procedure foo (
signal clk : in std_logic;
signal a0 : in std_logic; -- loop signal in
signal a1 : in std_logic;
signal b0 : out std_logic; -- loop signal out
signal b1 : out std_logic) is
begin
wait until rising_edge(clk);
b0 <= a0;
b1 <= a1;
wait until rising_edge(clk);
b0 <= '0';
b1 <= '0';
end procedure foo;
Is there a way to bypass this problem, eg by accessing signals from from
the testbench begin section from within the procedure? (I am aware of
the fact that this would lead to unportable code...)
Thank you in advance.