1
0
rocket-chip/src/main/scala/jtag/package.scala
Megan Wachs 8e6beb80be Add ucb-art/chisel-jtag (#612)
* jtag: Add ucb-art/chisel-jtag to junctions.

* jtag: Add missing Utils file for Tristate and NegativeEdgeLatch

* jtag: move to a top-level package
2017-03-26 18:03:21 -07:00

14 lines
533 B
Scala

// See LICENSE.jtag for license details
import scala.language.implicitConversions
package object jtag {
/** An implicit conversion to allow the instruction map for the TAP generator to be specified as
* an Int instead of BigInt. Scala doesn't seem to want to automatically apply the built-in Int
* to BigInt conversion when used as a Map key.
*
* This is limited to value types of Chain to limit application scope.
*/
implicit def instructionIntKeyToBigInt[V <: Chain](x: (Int, V)) = (BigInt(x._1), x._2)
}