8e6beb80be
* jtag: Add ucb-art/chisel-jtag to junctions. * jtag: Add missing Utils file for Tristate and NegativeEdgeLatch * jtag: move to a top-level package
14 lines
533 B
Scala
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)
|
|
}
|