Shadow access port integrated circuit
The disclosure describes a novel method and apparatus for providing a shadow access port within a device. The shadow access port is accessed to perform operations in the device by reusing the TDI, TMS, TCK and TDO signals that are used to operate a test access port within the device. The presence and operation of the shadow access port is transparent to the presence and operation of the test access port. According to the disclosure, the shadow access port operates on the falling edge of the TCK signal while the test access port conventionally operates on the rising edge of the TCK signal.
1. An integrated circuit comprising:
(a) a TCK lead, a TMS lead, a TDI lead, and a TDO lead;
(b) a test access port circuit having:
(i) a test TCK input coupled to the TCK lead, a TMS input coupled to the TMS lead, a TDI input coupled to the TDI lead, a TDO output coupled to the TDO lead;
(ii) a data register and a test instruction register that are coupled to the TDI input and that are selectively coupled to the TDO output; and
(iii) a test state machine that is coupled to the test TCK input, the TMS input, the data register and the test instruction register, the test state machine changing states upon a rising edge of a clock signal on the test TCK lead;
(c) an inverter having an input coupled to the TCK lead and an inverted TCK output;
(d) a shadow access port circuit having:
(i) a shadow TCK input coupled to the inverted TCK output of the inverter, a TMS input coupled to the TMS lead, a TDI input coupled to the TDI lead, a TDO output coupled to the TDO lead;
(ii) a scan register and a shadow instruction register that are coupled to the TDI input and that are selectively coupled to the TDO output, the scan register having a scan data bus input, a scan data bus output, and a scan control bus input; and
(iii) a shadow state machine that is coupled to the shadow TCK input, the TMS input, the scan register and the shadow instruction register, the shadow state machine changing states upon a falling edge of a clock signal on the shadow TCK lead; and
(e) debug circuitry having a shadow bus input coupled to the scan data bus output and a shadow bus output coupled to the scan data bus input.
2. The integrated circuit of claim 1 in which the test state machine of the test access port circuit steps through the states of SELECT-DR, CAPTURE-DR, SHIFT-DR, EXIT1-DR, PAUSE-DR, EXIT2-DR, and UPDATE-DR.
3. The integrated circuit of claim 1 in which the shadow state machine of the shadow access port circuit steps through the states of SELECT-DR, CAPTURE-DR, SHIFT-DR, and UPDATE-DR without shifting through states of EXIT1-DR, PAUSE-DR, or EXIT2-DR.
4. The integrated circuit of claim 1 in which the test state machine of the test access port circuit has a RESET state and a RUN TEST/IDLE state.
5. The integrated circuit of claim 1 in which the shadow state machine of the shadow access port circuit has a RESET state and a RUN TEST/IDLE state.
6. The integrated circuit of claim 1 , wherein the shadow access port has a debug control output.
7. The integrated circuit of claim 6 , wherein the debug circuitry has a debug control input coupled to the debug control output of the shadow access port.
8. The integrated circuit of claim 6 , wherein the debug control output includes a test clock output, a CAPTURE-DR output, a SHIFT-DR output, and an UPDATE-DR output.