api_version = 1
id = 'jtag'
name = 'JTAG'
- longname = 'Joint Test Action Group'
+ longname = 'Joint Test Action Group (IEEE 1149.1)'
desc = 'Protocol for testing, debugging, and flashing ICs.'
license = 'gplv2+'
inputs = ['logic']
{'id': 'tms', 'name': 'TMS', 'desc': 'Test mode select'},
]
optional_probes = [
- # {'id': 'trst', 'name': 'TRST#', 'desc': 'Test reset'},
- # {'id': 'srst', 'name': 'SRST#', 'desc': 'System reset'},
+ {'id': 'trst', 'name': 'TRST#', 'desc': 'Test reset'},
+ {'id': 'srst', 'name': 'SRST#', 'desc': 'System reset'},
+ {'id': 'rtck', 'name': 'RTCK', 'desc': 'Return clock signal'},
]
options = {}
annotations = [
- ['ASCII', 'TODO: description'],
+ ['Text', 'Human-readable text'],
]
def __init__(self, **kwargs):
self.oldpins = pins
# Get individual pin values into local variables.
- # TODO: Handle optional pins (TRST, SRST).
- (tdi, tdo, tck, tms) = pins
+ # Unused probes will have a value of > 1.
+ (tdi, tdo, tck, tms, trst, srst, rtck) = pins
# We only care about TCK edges (either rising or falling).
if (self.oldtck == tck):