-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add ElaborationArtefactAnnotation #2727
Conversation
so, what is the purpose of ElaborationArtefacts in general? I have no idea what it is for? Thanks! |
ElaborationArtefacts is a way to emit metadata to the generator build directory during elaboration. it's used to emit graphml and dts along with a bunch of other metadata files rocket-chip/src/main/scala/subsystem/BaseSubsystem.scala Lines 32 to 35 in 147bdcc
the this PR adds |
Sorry for the delayed reply, Thank you for your detailed reply, I got it! |
Stopgap solution to issue of
ElaborationArtefacts
outputting stale instance paths. This addsElaborationArtefactAnnotation
which contains the filename and list ofToken
s that contain the contents of the file.Token
subclasses areStringToken
,ModulePathToken
, andReferencePathToken
.ModulePathToken
andReferencePathToken
containTarget
s that are updated by firrtl.ElaborationArtefactsTransform
serializes theElaborationArtefactAnnotation
sElaborationArtefactAnnotation
s can be annotated with theElaborationArtefactAnnotation.annotate
andToken.apply
methods e.g.there is a
TokensInterpolator
implicit to make constructingToken
s easier.Token.apply
requires aTokenizer
typeclass instance. instances are defined forString
,Data
,BaseModule
,SyncReadMem
Type of change: feature request
Impact: API addition (no impact on existing code)
Development Phase: implementation
Release Notes