1
0

regfield: More explanatory requires so I don't have to RTFC and figure out what width actually was (#855)

This commit is contained in:
Megan Wachs 2017-07-10 21:07:50 -07:00 committed by Wesley W. Terpstra
parent 287219da06
commit 177ccbb663

View File

@ -75,7 +75,7 @@ object RegWriteFn
case class RegField(width: Int, read: RegReadFn, write: RegWriteFn, name: String, description: String) case class RegField(width: Int, read: RegReadFn, write: RegWriteFn, name: String, description: String)
{ {
require (width > 0) require (width > 0, s"RegField width must be > 0, not $width")
def pipelined = !read.combinational || !write.combinational def pipelined = !read.combinational || !write.combinational
} }