shaiko
Advanced Member level 5
- Joined
- Aug 20, 2011
- Messages
- 2,644
- Helped
- 303
- Reputation
- 608
- Reaction score
- 297
- Trophy points
- 1,363
- Activity points
- 18,302
Hello,
I wrote 2 sequential VHDL procedures:
procedure_a.
procedure_b.
I want to call them from my testbench.
For example:
1.Call procedure procedure_a.
2.Wait for 100ns.
3.Call procedure procedure_b.
4.Wait for 100ns.
5.Call procedure procedure_a.
6.Stop here.
I tried to do it using a process as follows:
For some reason the testbench doesn't stop after the 3rd execution and continues infinitely...
Questions:
1. Why?
2. How to do it correctly?
I wrote 2 sequential VHDL procedures:
procedure_a.
procedure_b.
I want to call them from my testbench.
For example:
1.Call procedure procedure_a.
2.Wait for 100ns.
3.Call procedure procedure_b.
4.Wait for 100ns.
5.Call procedure procedure_a.
6.Stop here.
I tried to do it using a process as follows:
Code:
process
begin
procedure_a ( x , y ) ;
wait for 100 ns ;
procedure_b ( x , y ) ;
wait for 100 ns ;
procedure_a ( x , y ) ;
null;
end process ;
For some reason the testbench doesn't stop after the 3rd execution and continues infinitely...
Questions:
1. Why?
2. How to do it correctly?