Skip to content

Commit

Permalink
add number of vfifo to be a config option
Browse files Browse the repository at this point in the history
  • Loading branch information
yaqiz01 committed Jul 21, 2018
1 parent 4a460c6 commit 979635a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/core/SpadeConfig.scala
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ object SpadeConfig extends prism.GlobalConfig {
register[Int]("argout", default=4, info="number of ArgOut")
register[Int]("tokenout", default=5, info="number of TokenOut")
register[Int]("fifo-depth", default=4, info="Depth of FIFO for all CUs")
register[Int]("vfifo", default=6, info="Number of vector FIFO")
register[Int]("vc", default=64, info="Number of virtual classes per network")

}
6 changes: 3 additions & 3 deletions src/param/routable/CUParams.scala
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ trait CUParam extends Parameter {
case class PCUParam (
numControlFifos:Int=4,
numScalarFifos:Int=6,
numVectorFifos:Int=6,
numVectorFifos:Int=option[Int]("vfifo"),
controlFifoParam:FIFOParam=FIFOParam(size=option("fifo-depth")),
scalarFifoParam:FIFOParam=FIFOParam(size=option("fifo-depth")),
vectorFifoParam:FIFOParam=FIFOParam(size=option("fifo-depth")),
Expand Down Expand Up @@ -65,7 +65,7 @@ case class SCUParam (
case class PMUParam (
numControlFifos:Int=4,
numScalarFifos:Int=6,
numVectorFifos:Int=6,
numVectorFifos:Int=option[Int]("vfifo"),
controlFifoParam:FIFOParam=FIFOParam(size=option("fifo-depth")),
scalarFifoParam:FIFOParam=FIFOParam(size=option("fifo-depth")),
vectorFifoParam:FIFOParam=FIFOParam(size=option("fifo-depth")),
Expand All @@ -85,7 +85,7 @@ case class PMUParam (
case class SramAGParam (
numControlFifos:Int=4,
numScalarFifos:Int=6,
numVectorFifos:Int=6,
numVectorFifos:Int=option[Int]("vfifo"),
controlFifoParam:FIFOParam=FIFOParam(size=option("fifo-depth")),
scalarFifoParam:FIFOParam=FIFOParam(size=option("fifo-depth")),
vectorFifoParam:FIFOParam=FIFOParam(size=option("fifo-depth")),
Expand Down

0 comments on commit 979635a

Please sign in to comment.