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

Fix MMIO IOBinder #1045

Merged
merged 2 commits into from
Dec 3, 2021
Merged

Fix MMIO IOBinder #1045

merged 2 commits into from
Dec 3, 2021

Conversation

jwright6323
Copy link
Contributor

Related issue: None

Type of change: bug fix

Impact: rtl change

Release Notes

  • Fixes a bug in the MMIO port IO binder when a mem port is not present

@jwright6323 jwright6323 changed the base branch from master to dev November 15, 2021 02:41
@jwright6323 jwright6323 changed the title Fix mmio iobinder Fix MMIO IOBinder Nov 15, 2021
@@ -297,7 +297,7 @@ class WithAXI4MMIOPunchthrough extends OverrideLazyIOBinder({
(system: CanHaveMasterAXI4MMIOPort) => {
implicit val p: Parameters = GetSystemParameters(system)
val clockSinkNode = p(ExtBus).map(_ => ClockSinkNode(Seq(ClockSinkParameters())))
clockSinkNode.map(_ := system.asInstanceOf[HasTileLinkLocations].locateTLBusWrapper(MBUS).fixedClockNode)
Copy link
Contributor

Choose a reason for hiding this comment

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

I thought the axi4 port takes its clock from the MBus, not the SBus?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was on the sbus in the generated RTL I looked at. This seems to confirm, but I could be wrong:
https://github.com/chipsalliance/rocket-chip/blob/86a2f2cca699f149bcc082ef2828654a0a4e3f4b/src/main/scala/subsystem/Ports.scala#L147

@jerryz123 jerryz123 self-requested a review November 15, 2021 08:42
@jwright6323
Copy link
Contributor Author

@jerryz123 do you know why the tests are getting canceled?

@abejgonzalez abejgonzalez self-requested a review November 16, 2021 18:06
Copy link
Contributor

@abejgonzalez abejgonzalez left a comment

Choose a reason for hiding this comment

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

As you can tell, CircleCI isn't working right now (I submitted a help ticket to get this resolved but it might take a while). Since GitHub Actions CI is still working, could you add your test to GH-A then we can merge?

@jwright6323
Copy link
Contributor Author

Thanks for picking up the slack @abejgonzalez

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.

None yet

3 participants