1
0

connect testharness components via member functions (#236)

to prevent code duplication for new testbenches
This commit is contained in:
Yunsup Lee
2016-09-01 18:38:39 -07:00
committed by Andrew Waterman
parent 08089f695d
commit 4a7972be31
6 changed files with 51 additions and 52 deletions

View File

@ -2,8 +2,7 @@ package junctions
import Chisel._
import cde.{Parameters}
class JtagIO(drvTdo : Boolean = false) extends Bundle {
class JTAGIO(drvTdo: Boolean = false) extends Bundle {
val TCK = Clock(OUTPUT)
val TMS = Bool(OUTPUT)
val TDI = Bool(OUTPUT)
@ -11,6 +10,5 @@ class JtagIO(drvTdo : Boolean = false) extends Bundle {
val TRST = Bool(OUTPUT)
val DRV_TDO = if (drvTdo) Some(Bool(INPUT)) else None
override def cloneType = new JtagIO(drvTdo).asInstanceOf[this.type]
override def cloneType = new JTAGIO(drvTdo).asInstanceOf[this.type]
}