class SwdHostDriver extends AnyRef
SWD host (probe) model for simulation.
The bench owns SWCLK (the DUT clock) and reproduces OpenOCD's bitbang model: the host sets SWDIO while SWCLK is low and samples target data while low; the target acts on rising edges. All values are sent/collected LSB first. Protocol assertions (turnaround positions, no-drive during requests, read parity, WAIT/FAULT data-phase skip) are embedded in the transaction helpers.
- Alphabetic
- By Inheritance
- SwdHostDriver
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
SwdHostDriver(cd: ClockDomain, swdio: TriState[Bool])
Drive the target side of an SWDIO TriState (read = host -> target).
- new SwdHostDriver(cd: ClockDomain, swdioI: Bool, swdioO: Bool, swdioOe: Bool)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @IntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
header(apNdp: Boolean, rnw: Boolean, addr: Int, flipParity: Boolean = false, badStop: Boolean = false, badPark: Boolean = false): Unit
8-bit packet request, LSB first.
8-bit packet request, LSB first. The target must not drive during it.
- def idle(n: Int): Unit
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def lineReset(): Unit
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def ones(n: Int): Unit
- def readAck(): (Int, Boolean)
- def readTargetBit(): (Boolean, Boolean)
-
def
step(bit: Boolean): (Boolean, Boolean)
One SWCLK cycle.
One SWCLK cycle. Host drives
bit; returns (targetData, targetOe) as the host would sample them during the low phase (i.e. what the target registered on the previous rising edge). -
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- def transactRead(apNdp: Boolean, addr: Int): (Int, Option[BigInt])
- def transactWrite(apNdp: Boolean, addr: Int, data: BigInt, flipDataParity: Boolean = false): Int
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated