Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

API to turn Data into read-only reference #1267

Closed
jackkoenig opened this issue Dec 5, 2019 · 0 comments · Fixed by #4190
Closed

API to turn Data into read-only reference #1267

jackkoenig opened this issue Dec 5, 2019 · 0 comments · Fixed by #4190

Comments

@jackkoenig
Copy link
Contributor

Type of issue: feature request

Impact: API addition (no impact on existing code)

Development Phase: request

What is the use case for changing the behavior?

This is a proposal to have an API to turn any Data object into a read-only reference. You can do this with UInts by performing some no-op (eg. x + 0.U), but there is no way that I can think of to do the same with an Aggregate.

I'm not sure what the API should, maybe .readOnly or ReadOnlyWireInit(...), but it can easily just map to a node in FIRRTL: node _T_1 = originalSignal, const prop will remove the node.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant