Scope of a process name

Why OSVVM™? Forums VHDL Scope of a process name

Tagged: 

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #1176
    Torsten
    Member

    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;

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.