We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 956a2fd commit 3ffbab8Copy full SHA for 3ffbab8
src/param/DesignParam.scala
@@ -3,12 +3,13 @@ package param
3
4
import SpadeConfig._
5
case class DesignParam(
6
- wordWidth:Int = option[Int]("word"),
+ wordWidth:Int = option[Int]("word"), // bit
7
vecWidth:Int = option[Int]("vec"),
8
clockFrequency:Int = 1000000000, //Hz
9
burstSize:Int = 512, // bit
10
topParam:TopParam = defaultTopParam
11
) extends Parameter {
12
def burstSizeWord = burstSize / wordWidth
13
def burstSizeByte = burstSize / 8
14
+ def bytePerWord = designParam.wordWidth / 8
15
}
0 commit comments