Skip to content

Commit

Permalink
add quote in spade node util
Browse files Browse the repository at this point in the history
  • Loading branch information
yaqiz01 committed Jul 24, 2018
1 parent 1cfee36 commit 5bff6e6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/node/SpadeNodeUtil.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package spade
package node

import param._
trait SpadeNodeUtil {
trait SpadeNodeUtil extends Logging {

def indexing[T<:SpadeNode](ns:List[T])(implicit design:SpadeDesign):List[T] = {
import design.spademeta._
Expand Down Expand Up @@ -129,4 +129,9 @@ trait SpadeNodeUtil {
def cuOf(n:SpadeNode) = n.collectUp[CU]().headOption

def routableOf(n:SpadeNode) = n.collectUp[Routable]().headOption

override def quote(n:Any) = n match {
case n:SpadeNode => n.qindex
case n => super.quote(n)
}
}

0 comments on commit 5bff6e6

Please sign in to comment.