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

BundleMap: improved API for user bits #2318

Merged
merged 4 commits into from
Mar 11, 2020
Merged

BundleMap: improved API for user bits #2318

merged 4 commits into from
Mar 11, 2020

Conversation

terpstra
Copy link
Contributor

@terpstra terpstra commented Mar 4, 2020

  • Field unification can be customized and defaults to equality required
  • Bulk assignment of BundleMaps now uses defaults for missing fields
  • You must now define both a Field and Key class

Type of change: other enhancement
Impact: API modification
Development Phase: implementation

Release Notes
User bits API composability improved

@terpstra terpstra requested review from hcook and brrmorre March 4, 2020 01:09
@terpstra
Copy link
Contributor Author

terpstra commented Mar 4, 2020

@jackkoenig In case you were planning on including these operators in chisel3; note the two improvements over the old version:

  • scala type equality is required, but you can reverse which type is needed with a trailing :
  • you can provide overload the bulk assignment operators for your type

- Field unification can be customized and defaults to equality required
- Bulk assignment of BundleMaps now uses defaults for missing fields
- You must now define both a Field and Key class
@terpstra terpstra merged commit a52fbb2 into master Mar 11, 2020
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.

2 participants