regfield: More explanatory requires so I don't have to RTFC and figure out what width actually was (#855)
This commit is contained in:
parent
287219da06
commit
177ccbb663
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user