util: dontTouchPortsExcept
This commit is contained in:
parent
4853d1355f
commit
b77b93b0b4
@ -35,6 +35,11 @@ trait DontTouch {
|
||||
self.getModulePorts.foreach(dontTouch(_))
|
||||
self
|
||||
}
|
||||
|
||||
def dontTouchPortsExcept(f: Data => Boolean): this.type = {
|
||||
self.getModulePorts.filterNot(f).foreach(dontTouch(_))
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
trait Clocked extends Bundle {
|
||||
|
Loading…
Reference in New Issue
Block a user