This repository has been archived by the owner on Jun 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cxxrtl: add blackboxes, generate RTLIL via reflection.
- Loading branch information
Showing
5 changed files
with
67 additions
and
14 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
5 changes: 5 additions & 0 deletions
5
src/main/scala/ee/hrzn/chryse/platform/cxxrtl/CXXRTLBlackBox.scala
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package ee.hrzn.chryse.platform.cxxrtl | ||
|
||
import chisel3.BlackBox | ||
|
||
abstract class CXXRTLBlackBox extends BlackBox {} |
5 changes: 4 additions & 1 deletion
5
src/main/scala/ee/hrzn/chryse/platform/cxxrtl/CXXRTLOptions.scala
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,3 +1,6 @@ | ||
package ee.hrzn.chryse.platform.cxxrtl | ||
|
||
final case class CXXRTLOptions(clockHz: Int) | ||
final case class CXXRTLOptions( | ||
clockHz: Int, | ||
blackboxes: Seq[Class[_ <: CXXRTLBlackBox]], | ||
) |
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