Skip to content
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

allow renames to multiple targets for MemoryPathToken #2729

Merged
merged 2 commits into from
Nov 13, 2020

Conversation

albertchen-sifive
Copy link
Contributor

@albertchen-sifive albertchen-sifive commented Nov 12, 2020

ElaborationArtefactAnnotaion will fail to rename if it contains a MemoryPathToken pointing at a seq mem of an aggregate type. e.g. for mem: SyncReadMem[Vec[UInt]], firrtl will rename mem to mem_0, mem_1, mem_2, etc.

This updates MemoryPathToken to handle this case by renaming the token to multiple MemoryPathTokens separated by spaces. so the resulting output will look like "mem_0 mem_1 mem_2 ...

Type of change: bug report

Impact: API modification

Development Phase: implementation

Release Notes

Copy link
Contributor

@timsnyder-siv timsnyder-siv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I confirmed that these changes resolve the issue I encountered in my usecase.

@hcook
Copy link
Member

hcook commented Nov 13, 2020

This fixed our use case! Thanks!

@hcook hcook merged commit 71218be into master Nov 13, 2020
@albertchen-sifive albertchen-sifive deleted the elaboration-artefacts-renames branch November 13, 2020 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants