Using internal structures inside SLANG? #709
Practical-UVM-Step-By-Step
started this conversation in
General
Replies: 1 comment
-
You can use the existing ParserMetadata if you want, it's accessible via the API. I'm not sure it contains what you want to know though. I'm not sure I understood your example; are you saying you want to know how many times the macros are invoked? Preprocessing happens pre-parser so you'd need to work at a pretty low level of the API to get that information. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Mike:
I had two questions.
I am wondering if there is an API that will expose the equivalent of the contents of ParserMetaData struct
Out to the user or whether there is an easy way to get that kind of structured information from the compilation itself.
If there is one, is there some test I can look for an example?
Q1: Do you recommend reaching out into it or do you recommend a new visitor pattern to essentially repeat what you already did and maybe build a separate data structure?
Q2:
Consider the example below
I’m trying to essentially get the arguments, counts etc of the
uvm_field_int macros and the other
uvm_macros but they would be “pre-processed” and the documentation says that the contents of the `uvm macros would be placed in separate buffers and to look at the buffer_ids.Would you be able to share some pseudo code/ideas of how you envision accomplishing this?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions