1
0
rocket-chip/src/main/scala/jtag/package.scala
Henry Cook 4c595d175c Refactor package hierarchy and remove legacy bus protocol implementations (#845)
* Refactors package hierarchy.

Additionally:
  - Removes legacy ground tests and configs
  - Removes legacy bus protocol implementations
  - Removes NTiles
  - Adds devices package
  - Adds more functions to util package
2017-07-07 10:48:16 -07:00

16 lines
563 B
Scala

// See LICENSE.jtag for license details
package freechips.rocketchip
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)
}