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

Bump chipyard to integrate mempress #1253

Merged
merged 20 commits into from
Oct 18, 2022
Merged

Bump chipyard to integrate mempress #1253

merged 20 commits into from
Oct 18, 2022

Conversation

joonho3020
Copy link
Contributor

Related PRs / Issues:

Type of change:

  • Bug fix
  • New feature
  • Other enhancement

Impact:

  • RTL change
  • Software change (RISC-V software)
  • Build system change
  • Other

Contributor Checklist:

  • Did you set main as the base branch?
  • Is this PR's title suitable for inclusion in the changelog and have you added a changelog:<topic> label?
  • Did you state the type-of-change/impact?
  • Did you delete any extraneous prints/debugging code?
  • Did you mark the PR with a changelog: label?
  • (If applicable) Did you update the conda .conda-lock.yml file if you updated the conda requirements file?
  • (If applicable) Did you add documentation for the feature?
  • (If applicable) Did you add a test demonstrating the PR?
  • (If applicable) Did you mark the PR as Please Backport?

build.sbt Outdated Show resolved Hide resolved
Comment on lines 23 to 27
+/* lazy val sha3 = (project in file("generators/sha3")) */
+/* .dependsOn(rocketchip, midasTargetUtils) */
+/* .settings(libraryDependencies ++= rocketLibDeps.value) */
+/* .settings(chiselTestSettings) */
+/* .settings(commonSettings) */
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you keep the same type of comments // instead of /**/? This matters for tutorial users.

new chipyard.config.WithExtMemIdBits(7) ++
new freechips.rocketchip.subsystem.WithNMemoryChannels(4) ++
new chipyard.config.WithSystemBusWidth(128) ++
new RocketConfig)
Copy link
Contributor

Choose a reason for hiding this comment

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

Please also have the full package path for this as well.

@@ -21,6 +21,14 @@ class TinyRocketConfig extends Config(
new freechips.rocketchip.subsystem.With1TinyCore ++ // single tiny rocket-core
new chipyard.config.AbstractConfig)

class MempressConfig extends Config(
new mempress.WithMemPress ++
Copy link
Contributor

Choose a reason for hiding this comment

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

Add a small descriptive comment on what this is doing.

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.

Generally this looks fine (I think the comments could be cleaned up a bit), but what do you want the mempress config to look like? Want it to be beefy (match the mem. heir. to something more realistic) or do you want to just show how to integrate the mempress accel. If the former is the case, we should change the cache to be better (which I think you reverted to the normal size).

@joonho3020
Copy link
Contributor Author

joonho3020 commented Oct 13, 2022 via email

@jerryz123
Copy link
Contributor

@joey0320 Most likely the API for WithInclusveCache has changed.
https://github.com/chipsalliance/rocket-chip-inclusive-cache/blob/2e47c707e04dbbbdbf81561a979c055f87ac8df2/design/craft/inclusivecache/src/Configs.scala#L46

Now you need to use freechips.rocketchip.subsystem.WithNBanks

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.

LGTM

@jerryz123
Copy link
Contributor

I think there should be a single test with the beefy-mem config, as well as some documentation on how to use this, and its capabilities.

@jerryz123 jerryz123 self-requested a review October 18, 2022 01:40
@jerryz123 jerryz123 merged commit 33f5040 into main Oct 18, 2022
@jerryz123 jerryz123 deleted the mempress-dev branch October 18, 2022 01:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants