Teledyne LeCroy SAS Suite User Manual User Manual
Page 244

Version 6.25
SASSuite User Manual
234
LeCroy Corporation
WF_CREDIT_AVAIL
Credit Available
This function is based on a 10-bit counter whose value can
range from -512 to +511 (twos-complement). This counter
is cleared by sending or receiving an OPEN_ACCEPT
primitive, or by execution of a CLEAR_CREDIT_AVAIL
command in the script.
This counter is incremented by receiving any SAS RRDY
primitive and is decremented by sending SAS SOF. The
wait_for command will wait for this counter to have a posi-
tive value between +1 and +511. This wait_for condition is
intended to be used before sending a SAS frame within a
connection.
ClEAR_CREDIT_AVAIL clears this credit function.
WF_CREDIT_BLOCKED_R
ECEIVED
CreditBlocked Received
This function is based on a flip-flop which is cleared by
sending or receiving an OPEN_ACCEPT primitive. It is set
by receiving a CREDIT_BLOCKED primitive. It is intended
to be used in conjunction with wf_credit_avail to prevent
script hangs in those cases where there is not going to be
any more credit granted.
WF_CREDIT_BLOCKED
primitive
WF_RRDY_NORMAL
primitive
WF_RRDY_RESERVED_0
primitive
WF_RRDY_RESERVED_1
primitive
WF_BREAK
primitive
WF_CLOSE_CLEAR_
AFFILIATION
primitive
WF_CLOSE_NORMAL
primitive
WF_CLOSE_RESERVED_0
primitive
WF_CLOSE_RESERVED_1
primitive
WF_DONE_ACK_NAK_
TIMEOUT
primitive
WaitCommand Name
Description