Skip to content

Commit

Permalink
cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
Dolu1990 committed Feb 8, 2024
1 parent baaadd0 commit 0a0b2be
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main/scala/naxriscv/platform/asic/NaxAsicGen.scala
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ import spinal.lib._
import spinal.lib.eda.bench.Rtl

object NaxAsicGen extends App{
var target = "asic"
var ramBlocks = "inferred"
var regFileFakeRatio = 1
var withLsu = true
var withIoFf = false
var blackBoxCombRam = false

assert(new scopt.OptionParser[Unit]("NaxAsicGen") {
help("help").text("prints this usage text")
opt[Unit]("sky130") action { (v, c) => target = "sky130" }
opt[Unit]("sky130-ram") action { (v, c) => ramBlocks = "sky130" }
opt[Int]("regfile-fake-ratio") action { (v, c) => regFileFakeRatio = v }
opt[Unit]("no-lsu") action { (v, c) => withLsu = false }
opt[Unit]("io-ff") action { (v, c) => withIoFf = true }
Expand Down Expand Up @@ -63,8 +63,8 @@ object NaxAsicGen extends App{
case _ =>
}

target match {
case "asic" => l.foreach {
ramBlocks match {
case "inferred" => l.foreach {
case p: FetchCachePlugin => p.wayCount = 1; p.cacheSize = 256; p.memDataWidth = 64
case p: DataCachePlugin => p.wayCount = 1; p.cacheSize = 256; p.memDataWidth = 64
case p: BtbPlugin => p.entries = 8
Expand All @@ -84,8 +84,8 @@ object NaxAsicGen extends App{
l
}

var spinalConfig = target match {
case "asic" => SpinalConfig()
var spinalConfig = ramBlocks match {
case "inferred" => SpinalConfig()
case "sky130" => SpinalSky130()
}

Expand Down

0 comments on commit 0a0b2be

Please sign in to comment.