-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: bump to chisel 6 and fix deprecation warning
- Loading branch information
1 parent
90aaf59
commit 8faa17c
Showing
12 changed files
with
52 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule rocket-chip
updated
10 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,31 @@ | ||
package huancun.utils | ||
|
||
import firrtl.annotations.{Annotation, ModuleName, Named, SingleTargetAnnotation} | ||
import chisel3._ | ||
import chisel3.experimental.ChiselAnnotation | ||
|
||
case class SRAMClkDivBy2Annotation(mod: ModuleName) extends SingleTargetAnnotation[ModuleName] { | ||
override val target: ModuleName = mod | ||
case class SRAMClkDivBy2Annotation(mod: firrtl.annotations.ModuleName) | ||
extends firrtl.annotations.SingleTargetAnnotation[firrtl.annotations.ModuleName] { | ||
override val target: firrtl.annotations.ModuleName = mod | ||
|
||
override def duplicate(n: ModuleName): Annotation = this.copy(n) | ||
override def duplicate(n: firrtl.annotations.ModuleName): firrtl.annotations.Annotation = this.copy(n) | ||
} | ||
|
||
case class SRAMSpecialDepthAnnotation(mod: ModuleName) extends SingleTargetAnnotation[ModuleName] { | ||
override val target: ModuleName = mod | ||
case class SRAMSpecialDepthAnnotation(mod: firrtl.annotations.ModuleName) | ||
extends firrtl.annotations.SingleTargetAnnotation[firrtl.annotations.ModuleName] { | ||
override val target: firrtl.annotations.ModuleName = mod | ||
|
||
override def duplicate(n: ModuleName): Annotation = this.copy(n) | ||
override def duplicate(n: firrtl.annotations.ModuleName): firrtl.annotations.Annotation = this.copy(n) | ||
} | ||
|
||
object CustomAnnotations { | ||
def annotateClkDivBy2(mod: Module) = { | ||
chisel3.experimental.annotate(new ChiselAnnotation { | ||
override def toFirrtl: Annotation = SRAMClkDivBy2Annotation(mod.toNamed) | ||
override def toFirrtl: firrtl.annotations.Annotation = SRAMClkDivBy2Annotation(mod.toNamed) | ||
}) | ||
} | ||
def annotateSpecialDepth(mod: Module) = { | ||
chisel3.experimental.annotate(new ChiselAnnotation { | ||
override def toFirrtl: Annotation = SRAMSpecialDepthAnnotation(mod.toNamed) | ||
override def toFirrtl: firrtl.annotations.Annotation = SRAMSpecialDepthAnnotation(mod.toNamed) | ||
}) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters