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

Improvements To AMBA AXI4 Adapters #2676

Merged
merged 11 commits into from
Oct 26, 2020
Merged

Improvements To AMBA AXI4 Adapters #2676

merged 11 commits into from
Oct 26, 2020

Conversation

hcook
Copy link
Member

@hcook hcook commented Oct 22, 2020

Miscellaneous improvements to several AXI4 AMBA adapters:

  • Scala doc
  • Clarify some variable names
  • More comments
  • Unify TLToAXI4 metadata code paths into a single path through TLtoAXI4IdMap
  • Make any value of TLToAXI4.stripBits other than 0 illegal and stop using it internally.
  • Remove usage of un-consumed Annotated.idMapping and delete associated application and annotation class.

Type of change:other enhancement

Impact: no API changes

Development Phase: implementation

@hcook hcook force-pushed the improve-amba branch 2 times, most recently from 29e5035 to eb6fb17 Compare October 23, 2020 21:24
@hcook
Copy link
Member Author

hcook commented Oct 26, 2020

@jackkoenig @mwachs5 can one of you approve this?

{
private val axiDigits = String.valueOf(axi4.endId-1).length()
private val tlDigits = String.valueOf(tl.endSourceId-1).length()
val tlMasters = tlPort.masters.sortBy(_.sourceId).sortWith(TLToAXI4.sortByType)
Copy link
Contributor

Choose a reason for hiding this comment

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

I was a little confused at first why there are two sorts in a row. It may be worth adding another TLToAXI4.sortBy<something> method to provide the desired behavior. Perhaps sortByType should break ties with sourceId? Just a thought.

Copy link
Contributor

@jackkoenig jackkoenig left a comment

Choose a reason for hiding this comment

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

LGTM

@hcook hcook merged commit 53c4363 into master Oct 26, 2020
@hcook hcook deleted the improve-amba branch November 5, 2020 23:45
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