Possible bug in AlertLogPkg's Log procedure.

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

This topic has 2 voices, contains 2 replies, and was last updated by Avatar of Jim Lewis Jim Lewis 134 days ago.

Viewing 3 posts - 1 through 3 (of 3 total)
Author Posts
Author Posts
January 10, 2018 at 12:31 #1421
Avatar of reuven paley
reuven paley

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

January 10, 2018 at 12:32 #1422
Avatar of reuven paley
reuven paley

I forgot to add:

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

January 10, 2018 at 16:39 #1423
Avatar of Jim Lewis
Jim Lewis

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 118 days 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.