Possible bug in AlertLogPkg's Log procedure.

Why OSVVM™? Forums OSVVM Possible bug in AlertLogPkg's Log procedure.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1421
    reuven paley
    Member

    Hi,

    Given the following declarations:

          — propagation time delay.
          variable tpd_v           : time := 0 sec;

          constant C_TPD_ID : AlertLogIDType :=
             GetAlertLogID(PathTail(tpd_v’path_name), ParentID) ;

          Log (
             AlertLogID => C_TPD_ID,
             Message    => ” = ” & to_string(tpd_v),
             Level      => DEBUG);

    QuestaSim 10.3d reports:

    # %% Log   DEBUG   in tpd_,  = 4500000 ps at 0 ns

    Notice that the “_v” has been replaced by “_” in the log. Please investigate.

    regards,

    Robert (Reuven) Paley

    #1422
    reuven paley
    Member

    I forgot to add:

    what does PathTail add that ‘simple_name doesn’t provide?

    #1423
    Jim Lewis
    Member

    Hi Reuven,

    PathTail is intended to extract a component instance label from a PathName.  

    For the string representation of a variable, signal, constant, or even entity name, you can indeed just use simple_name. 

    I will update PathTail in the next revision so that it does not assume the name ends in a “:” and will return what you were expecting.  

    Jim

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.