1
0

tilelink2 Nodes: appease the PC police

This commit is contained in:
Wesley W. Terpstra 2016-10-13 10:29:55 -07:00
parent 54b73aef57
commit 4e40f9bb59

View File

@ -31,7 +31,7 @@ object RegMapper
// Create a generic register-based device // Create a generic register-based device
def apply(bytes: Int, concurrency: Int, undefZero: Boolean, in: DecoupledIO[RegMapperInput], mapping: RegField.Map*) = { def apply(bytes: Int, concurrency: Int, undefZero: Boolean, in: DecoupledIO[RegMapperInput], mapping: RegField.Map*) = {
val bytemap = mapping.toList val bytemap = mapping.toList
// Don't be an asshole... // Negative addresses are bad
bytemap.foreach { byte => require (byte._1 >= 0) } bytemap.foreach { byte => require (byte._1 >= 0) }
// Transform all fields into bit offsets Seq[(bit, field)] // Transform all fields into bit offsets Seq[(bit, field)]