Skip to content
This repository has been archived by the owner on Jun 16, 2024. It is now read-only.

Commit

Permalink
SimPlatform: fix up!
Browse files Browse the repository at this point in the history
  • Loading branch information
kivikakk committed May 29, 2024
1 parent 2795646 commit f7ffc3e
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions src/test/scala/ee/hrzn/chryse/platform/SimPlatform.scala
Original file line number Diff line number Diff line change
@@ -1,27 +1,34 @@
package ee.hrzn.chryse.platform

import chisel3._
import ee.hrzn.chryse.ChryseApp
import ee.hrzn.chryse.platform.PlatformBoard
import ee.hrzn.chryse.platform.PlatformBoardResources
import ee.hrzn.chryse.platform.resource

final case class SimPlatform() extends PlatformBoard[SimPlatformResources] {
val id = "sim"
val clockHz = 1_000_000

val nextpnrBinary = "xxx"
val nextpnrArgs = Seq()
val packBinary = "xxx"
val programBinary = "xxx"

val resources = new SimPlatformResources
type TopPlatform[Top <: Module] = SimTop[Top]

override def apply[Top <: Module](genTop: => Top) = {
// TODO: detect when `this` isn't the same as the Platform the Top was
// constructed with. Resources won't match if so.
resources.setNames()
new SimTop(this, genTop)
}
override def yosysSynthCommand(top: String): String = ???

override def build(
chryse: ChryseApp,
topPlatform: SimTop[_],
jsonPath: String,
): String = ???

override def program(binPath: String): Unit = ???

val id = "sim"
val clockHz = 1_000_000

val resources = new SimPlatformResources
}

class SimPlatformResources extends PlatformBoardResources {
Expand Down

0 comments on commit f7ffc3e

Please sign in to comment.