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 authored and Wesley W. Terpstra committed 2017-07-10 21:07:50 -07:00
1 parent 287219da06
commit 177ccbb663
1 file changed
+1 -1
+1 -1
View File
@@ -75,7 +75,7 @@ object RegWriteFn
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
}