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

BEU <-> HART link added in DTS #2373

Merged
merged 2 commits into from
Mar 28, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/main/scala/tile/RocketTile.scala
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,15 @@ class RocketTile private(

val itimProperty = frontend.icache.itimProperty.toSeq.flatMap(p => Map("sifive,itim" -> p))

val beuProperty = bus_error_unit.map(d => Map(
"sifive,buserror0" -> d.device.asProperty)).getOrElse(Nil)
Copy link
Member

Choose a reason for hiding this comment

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

I think it would be more idiomatic and readable to call .toSeq instead of .getOrElse(Nil).

Also, do we actually want to call this sifive,buserror0 or should it just be sifive,buserror?

Copy link

Choose a reason for hiding this comment

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

It should be not be "sifive,buserror0", but simply be "sifive,buserror" as the version as described in the compatible string.

Copy link
Contributor

Choose a reason for hiding this comment

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

ok, i suggested the change, but would like @mhtwn to show what the outputted DTS looks like with this change and get @bsousi5 's final approval before approving the PR

Copy link
Contributor Author

@mhtwn mhtwn Mar 28, 2020

Choose a reason for hiding this comment

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

@mwachs5 its a plain string - it will show up in the dts as is.

Copy link
Contributor

Choose a reason for hiding this comment

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

well i see that string in the DTS above in 2 places. I thought that @bsousi5 was saying in the "compat" he expected it to say sifive,buserror0 but the device type to be sifive,buserror

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok, just to not create any confusion, the dts in the release notes (updated above) is how the generated dts looks:

  1. In the cpu component listing: buserror0 is now -> buserror
  2. Compatible field in the 'bus_error_unit' component still lists sifive_buserror0

Copy link
Contributor

Choose a reason for hiding this comment

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

thanks! @bsousi5 if that looks good to you can you please approve the PR? If that's not enough to make it mergable i will approve it

Copy link

@bsousi5 bsousi5 Mar 28, 2020

Choose a reason for hiding this comment

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

I am good with what @mhtwn commented and shown in the release note above.

Copy link

Choose a reason for hiding this comment

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

It seems I don't have the permission to hit the approve button. So @mwachs5, you need to approve.

Choose a reason for hiding this comment

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

I do. So I’ve approved based on your, @richardxia and @mwachs5’s reviews.

mhtwn marked this conversation as resolved.
Show resolved Hide resolved

val cpuDevice: SimpleDevice = new SimpleDevice("cpu", Seq("sifive,rocket0", "riscv")) {
override def parent = Some(ResourceAnchors.cpus)
override def describe(resources: ResourceBindings): Description = {
val Description(name, mapping) = super.describe(resources)
Description(name, mapping ++ cpuProperties ++ nextLevelCacheProperty ++ tileProperties ++ dtimProperty ++ itimProperty)
Description(name, mapping ++ cpuProperties ++ nextLevelCacheProperty
++ tileProperties ++ dtimProperty ++ itimProperty ++ beuProperty)
}
}

Expand Down