tilelink2 Nodes: appease the PC police
This commit is contained in:
parent
54b73aef57
commit
4e40f9bb59
@ -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)]
|
||||||
|
Loading…
Reference in New Issue
Block a user