Skip to content

Commit 3ffbab8

Browse files
committed
add bytePerWord
1 parent 956a2fd commit 3ffbab8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/param/DesignParam.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@ package param
33

44
import SpadeConfig._
55
case class DesignParam(
6-
wordWidth:Int = option[Int]("word"),
6+
wordWidth:Int = option[Int]("word"), // bit
77
vecWidth:Int = option[Int]("vec"),
88
clockFrequency:Int = 1000000000, //Hz
99
burstSize:Int = 512, // bit
1010
topParam:TopParam = defaultTopParam
1111
) extends Parameter {
1212
def burstSizeWord = burstSize / wordWidth
1313
def burstSizeByte = burstSize / 8
14+
def bytePerWord = designParam.wordWidth / 8
1415
}

0 commit comments

Comments
 (0)