1
0

Ports: Rename the 'fromXYZPort' to 'fromPort' since it's redundant

This commit is contained in:
Megan Wachs
2017-07-25 08:36:28 -07:00
parent 2139ab0d98
commit aa6d911c26
6 changed files with 10 additions and 11 deletions

View File

@ -14,7 +14,7 @@ class SPIPins[T <: Pin] (pingen: ()=> T, c: SPIParamsBase) extends SPIBundle(c)
override def cloneType: this.type =
this.getClass.getConstructors.head.newInstance(pingen, c).asInstanceOf[this.type]
def fromSPIPort(spi: SPIPortIO, clock: Clock, reset: Bool,
def fromPort(spi: SPIPortIO, clock: Clock, reset: Bool,
syncStages: Int = 0, driveStrength: Bool = Bool(false)) {
withClockAndReset(clock, reset) {