Skip to content

Commit

Permalink
add option to set pcu and pmu stages
Browse files Browse the repository at this point in the history
  • Loading branch information
yaqiz01 committed Jan 17, 2019
1 parent 2bc3782 commit 5b35e8b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/core/SpadeConfig.scala
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,7 @@ object SpadeConfig extends prism.GlobalConfig {
register[Int]("vc", default=4, info="Number of virtual classes per network")
register[String]("link-prop", default="db", info="[db-double buffered, cd-credit based]")
register[Int]("flit-width", default=512, info="Flit width for dynamic network")
register[Int]("pcu-stage", default=6, info="Number of stages in PCU")
register[Int]("pmu-stage", default=4, info="Number of stages in PMU")

}
4 changes: 2 additions & 2 deletions src/param/routable/CUParams.scala
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ case class PCUParam (
vectorFifoParam:FIFOParam=FIFOParam(size=option("fifo-depth")),
numCtrs:Int=6,
simdParam:Option[SIMDParam]=Some(DefaultSIMDParam(
numStages=6,
numStages=option[Int]("pcu-stage"),
ops=allOps,
vectorized=true,
numRegs=16,
Expand Down Expand Up @@ -72,7 +72,7 @@ case class PMUParam (
sramParam:SRAMParam=SRAMParam(size=option("pmu-sram-size"),4), // 256 kB
numCtrs:Int=6,
simdParam:Option[SIMDParam]=Some(DefaultSIMDParam(
numStages=4,
numStages=option[Int]("pmu-stage"),
ops=fixOps ++ bitOps ++ otherOps,
vectorized=true,
numRegs=16,
Expand Down

0 comments on commit 5b35e8b

Please sign in to comment.