Possible bug in AlertLogPkg's Log procedure.

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

This topic contains 2 replies, has 2 voices, and was last updated by Avatar of Jim Lewis Jim Lewis 1 year, 2 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1421
    Avatar of reuven paley
    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
    Avatar of reuven paley
    reuven paley
    Member

    I forgot to add:

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

    #1423
    Avatar of Jim Lewis
    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

    • This reply was modified 1 year, 1 month ago by Avatar of Jim Lewis Jim Lewis.
Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.