js_node_struct - 2023.1 English

Standalone Library Documentation: BSP and Libraries Document Collection (UG643)

Document ID
UG643
Release Date
2023-05-16
Version
2023.1 English

JTAG node information

Nodes typically represent a TAP controller. A node can also represent a collection of TAP controllers, i.e. the whole scan chain or a device containing multiple TAP controllers. For scan chains containing JTAG multiplexers a node can represent the branches on the multiplexer.

Declaration

typedef struct
{
  js_port_t * port,
  int is_tap,
  int is_mux,
  int is_branch,
  int is_active,
  uint32_t idcode,
  int irlen,
  const char * name,
  js_node_t ** parent,
  js_node_t ** child_list,
  unsigned int child_count
} js_node_struct;
Table 1. Structure js_node_struct member description
Member Description
port

Associated port

is_tap

Node represents one or more TAP controllerst

is_mux

Node is a multiplexer (child nodes are branches)

is_branch

Node is a branch on a multiplexer

is_active

This branch is part of the scan chain

idcode

IDCODE of the TAP (JS_DUMMY_IDCODE if unknown or NA)

irlen

Instruction register length in bits

name

Name of node

parent

Parent node

child_list

Child nodes

child_count

Child nodes count