1
0

jtag: Actually apply the sticky bits

This commit is contained in:
Megan Wachs 2016-09-27 16:22:55 -07:00 committed by Andrew Waterman
parent a4b81aebe0
commit 1e43512142

View File

@ -156,10 +156,9 @@ module DebugTransportModuleJtag (
//busy, dtm_resp* is only valid during CAPTURE_DR,
// so these signals should only be used at that time.
// This assumes there is only one transaction in flight at a time.
assign busy = (busyReg & ~dtm_resp_valid); // stickyBusyReg;
assign busy = (busyReg & ~dtm_resp_valid) | stickyBusyReg;
// This is needed especially for the first request.
assign nonzeroResp = (dtm_resp_valid ? |{dtm_resp_bits[DEBUG_OP_BITS-1:0]} : 1'b0);
//stickyNonzeroRespReg;
assign nonzeroResp = (dtm_resp_valid ? | {dtm_resp_bits[DEBUG_OP_BITS-1:0]} : 1'b0) | stickyNonzeroRespReg;
// Interface to DM.
// Note that this means dtm_resp_bits must only be used during CAPTURE_DR.