Scope of a process name

Why OSVVM?ForumsVHDLScope of a process name

Tagged: 

This topic has 1 voice, contains 0 replies, and was last updated by Avatar of Torsten M. Torsten M. 333 days ago.

Viewing 1 post
Author Posts
Author Posts
June 30, 2016 at 15:08 #1176
Avatar of Torsten M.
Torsten M.

To bring even more life into the forum, another question ;)

I have written a scheduler package. You can register processes to the scheduler and wait for them to finish for example.  I use their instance_name as IDs for the processes.

 I have used that package various times without problems, but now I’ve got an error with Modelsim. It suggests, that the process name can only be used inside the process itself. Is that true? I get this error only in one single testbench in a specific process, not all processes which use the same construct (which is strange). In GHDL I’ve never seen this error.

An example (init, finished & wait_finished are procedures to register, finish & wait for processes to finish):

 P1 : process is

  begin

    init(P1'instance_name);

    ...

    finished(P1'instance_name);

    wait;

  end process P1;



  P2 : process is

  begin

    init(P2'instance_name);

    wait_finished(P1'instance_name);  -- here the error occurs

    ...

    finished(P2'instance_name);

    wait;

  end process P2;

  • This reply was modified 333 days ago by Avatar of Torsten M. Torsten M..
Viewing 1 post

You must be logged in to reply to this topic.