S2021A [AMCC]

Telecom Circuit, 1-Func, BICMOS, CBGA225, CERAMIC, PGA-225;
S2021A
型号: S2021A
厂家: APPLIED MICRO CIRCUITS CORPORATION    APPLIED MICRO CIRCUITS CORPORATION
描述:

Telecom Circuit, 1-Func, BICMOS, CBGA225, CERAMIC, PGA-225

电信 信息通信管理 电信集成电路
文件: 总38页 (文件大小:168K)
中文:  中文翻译
下载:  下载PDF数据表文档文件
®
APPLICATION NOTE  
HIPPI  
S2020/S2021 SOURCE DEVICE STATE MACHINES  
Sharp all share this feature. Even if the external data  
source memory had “correct” parity available at the in-  
puts of the S2020, the two clock period parity error  
would be observed.  
S2020 HIPPI SOURCE CONNECT CONTROL  
The S2020 Source Device meets the signalling protocol  
for the Hippi-Source as determined by ANSI X3.183-  
1991 HiPPI-PH Mechanical Electrical and Signalling  
Protocol Specification. As the Source, the S2020 func-  
tions as the initiator and controller of all data transfers  
on the Hippi channel.  
The first function that must be performed after the  
power-up initialization of the S2020 (RESET Mode 0) is  
to determine the status of the Destination to Source  
Interconnect [DSIC] signal. That signal, generated by  
the remote HIPPI Destination, is an input signal from  
the HIPPI Channel to the S2020 and must be in the  
logic low (active) state for any control or data transfer  
functions to be valid on the HIPPI Channel.  
The RESET Command (Mode 0) initializes all internal  
state machines in the S2020 and clears all data and  
parity bit registers to zero. The only function that is not  
cleared or held at an initialized state is the clock control  
which generates the internal 25 MHz and the external  
RDCLK signal. The RESET Command provides phase  
control of the internal and external clocks.  
The filtered and inverted state of the DSIC input is avail-  
able at the Destination Available [DSTAV] output. Since  
the S2020 has the capability of switching its own  
Source to Destination output signal to the inactive state  
during Reset and Board Test modes, the Device must  
be placed in the Wait for Destination mode (Mode 2)  
immediately after RESET to allow the filter to recognize  
either the static low (active) DSIC input or the high to  
low transition of the DSIC input.  
If the RESET Command is placed on the MODE(2:0)  
inputs while the RDCLK output is in the logic high state,  
there will be no change in the continuous 25 MHz signal  
observed at the RDCLK output. If, however, the RESET  
Command is placed on the MODE(2:0) inputs while the  
RDCLK output is in the logic low state, the RDCLK  
output will go high after the next rising edge of the 50  
MHz input, remain high for two cycles of the 50 MHz  
input and then produce a rising edge on the third 50  
MHz falling edge applied to the S2020. From that point  
until the next application of the RESET Command the  
RDCLK (and the internal clocks) will be a continuous 25  
MHz signal synchronized to the 50MHZ input rising  
edge.  
If the S2020 is placed directly from the RESET Mode  
into the Operational Mode (Mode 3), the DSTAV output  
will not correctly respond to the DSIC input state, even  
if the DSIC input is already in the active low condition  
when the RESET to Operational mode change is made.  
The Wait for Destination mode avoids possible control  
ambiguities in systems where both Source and Destina-  
tion have active control of their respective Interconnect  
signals.  
This “phase slip on low” function can be used to unam-  
biguously set the phase relation between the 50 MHz  
input and the RDCLK output. Since most of the Host  
interface control inputs are required to be synchronous  
with the 25 Mhz RDCLK output, this phase slip control  
gives the user the capability of aligning the S2020’s  
timing to the 50 MHz and 25 MHz used in the external  
Host circuitry.  
With the S2020 in the Wait for Destination mode (Mode  
2), the observation of an active high state on the  
DSTAV output indicates that the internal reset and ini-  
tialization cycle of the entire HIPPI Channel (both  
Source and Destination) is complete. The S2020 may  
now be legally placed in the Operational mode, and the  
internal Connect State Machine of the S2020 will be  
placed in the {IDLE} state.  
It should be noted that while the RESET Command  
clears the Parity Error bit (INPRR output), the internal  
data and parity registers have also been cleared. This  
“zero data/zero parity” condition is a Parity Error with  
respect to the HIPPI odd byte parity convention. If a  
parity correct word is present at the inputs of the S2020  
at the time the RESET state is exited, there will be a  
two clock period parity error bit on the INPRR output. If  
the attached FIFO has also been cleared during the  
RESET Command, the INPRR bit will remain high until  
three clocks after the first read cycle of the FIFO.  
If there is any interruption of the DSIC input greater  
than the filter integration time (four clock cycles), the  
Connect State Machine will be forced to the  
{LOSTDEST} state. This will immediately stop any cur-  
rent data transfer, and cause the REQUEST, PACKET  
and BURST signals on the HIPPI Channel to go to the  
inactive state. The DSTAV signal will go low to indicate  
this condition to the Source Host System. The only re-  
covery from this condition is the RESET and WAIT se-  
quence described above. It is the responsibility of the  
Source Host System to exercise a reasonable “time-  
out” if the remote Destination does not generate a  
stable active low state on the DSIC signal.  
While there are some differences in FIFO or “FIFO  
equivalent” memory structures that have been success-  
fully used with the S2020, the available or announced  
synchronous clocked FIFOs from IDT, Cypress and  
www.amcc.com  
1
HIPPI  
S2020/S2021 SOURCE DEVICE STATE MACHINES  
The S2020 distinguishes between Connect Accept and  
Connect Reject conditions in accordance with the  
HIPPI Specification. If the CONNECT signal from the  
HIPPI Channel is detected for less than four clock  
cycles (160 nsec) it is ignored and the S2020 remains  
in the {REQ} state.  
Once the DSTAV signal is observed at an active high  
state and the Operational Mode (Mode 3) is com-  
manded, the S2020 is ready to initiate a Connection  
Request sequence. The design of the S2020 is opti-  
mized to use the external synchronous FIFO as the  
source of the I-Field Word as well as the PKTAV and  
SHBST signals used to flag the I-Field Word. If the I-  
Field and/or the two control signals are not placed in the  
FIFO, care must be taken that their timing is controlled  
to meet the specification of the Data Sheet. Failure to  
honor that timing will cause erroneous and unpredict-  
able operation of the FIFO with resultant data loss.  
If the CONNECT signal is detected for more than three  
and less than twenty clock cycles with no activity de-  
tected on the READY signal, The Destination is judged  
to have issued an active Connect Rejection. In that  
case the S2020 will place a logic high on the CNOUT  
output and a logic low on the ACREJ output. This con-  
dition will persist until the Host returns the CNREQ  
signal to the low state or the Host executes the Mode 0  
Reset sequence.  
The S2020 acts as a continuously running, two register  
deep pipeline. In the HIPPI application, the only point at  
which a data word is held static for multiple clock cycles  
is the output register of the FIFO. The NREN output of  
the S2020 is applied to the Not Read Enable input of  
the FIFO to control this register.  
The READY signal is also monitored to determine the  
Connect Accept or Connect Reject status. If the  
READY signal is detected two or more clock cycles  
after the detection of CONNECT signal, the Connec-  
tion is considered as accepted and the 11 pattern is  
posted to the CNOUT and ACREJ outputs. If the Desti-  
nation drops the CONNECT signal at this point while  
the CONREQ input remains high, the {DESTERR}  
state is entered.  
It should be also noted that for the recommended FIFO  
and most equivalents, the operation of writing into the  
FIFO from the Host System does not directly write any  
data into the FIFO’s output register. The data in the  
output register is indeterminate (it may be zero if the  
entire system including the FIFO was initialized, other-  
wise it is usually the last transmitted data word.)  
If a READY signal is detected during the Connect Re-  
quest cycle or later at any time while in the {CON-  
NECTED} state, the Ready counter in the S2020 will  
be incremented by one. This counter and a similar  
Burst counter (incremented at the last word of every  
Burst) are compared to generate, when not equal, the  
external DTREQ signal. This inequality is also used  
internally by the S2020 to automatically control the flow  
of Bursts in response to received READYs. Both  
counters are cleared to zero at Reset Mode or at the  
termination of the current {CONNECTED} state.  
Placing the I-Field and the two signals defining the I-  
Field in the FIFO eliminates any ambiguity as to the  
previous contents or state of the FIFO. If the FIFO has  
been filled with data, and the Not Empty output of the  
FIFO is connected to the DATAV input of the S2020,  
then a high signal on the CNREQ input and the high  
signal already at the DATAV input will cause an active  
low on the NREN output. The NREN signal will remain  
low for at least one cycle of the 25 MHz RDCLK until  
the 01 condition is observed on the PKTAV and SHBST  
inputs respectively.  
If the I-Field is to be sourced from a register separate  
from the FIFO, the NREN signal must be blocked to  
avoid erroneously advancing the FIFO.  
The detection of the 01 condition will asynchronously  
raise the NREN signal to the inactive state, locking the  
current data word (assumed by its PKTAV/SHBST label  
to be the I-Field) in the output register of the FIFO. Two  
clock cycles later, this data is available at the HIPPI  
Channel outputs and the REQUEST signal is asserted  
on the HIPPI Channel.  
Care must also be taken to control the FIFO in order to  
recognize the beginning of the Burst data if the PKTAV  
and SHBST are not used to delimit the data.  
Once the Connection is established, the S2020 waits  
in the {IDLE} state until both BSTAV and DATAV input  
signals are asserted before starting any further data  
transfers. The BSTAV is used to initiate the search of  
the FIFO for the first word of the Burst and Packet. It  
should be noted that the BSTAV signal must be set  
high before the S2020 can attempt to read in the  
PKTAV signal.  
The REQUEST signal will remain active on the HIPPI  
Channel until the CNREQ input is returned to the logic  
low state. The S2020 will make no more read requests  
of the FIFO until the Destination has responded with a  
Connect Accept or a Connect Reject. This status is  
indicated by the CNOUT and ACREJ signals. If both of  
these outputs are at logic high, the Connection has  
been accepted and recognized at both Source and  
Destination.  
www.amcc.com  
2
HIPPI  
S2020/S2021 SOURCE DEVICE STATE MACHINES  
Figure 0. S2020 50 MHz / RDCLK RESYNCH at MODE = 0 RESET (Corrected Version)  
Q1  
MSEL(2:0)  
D1  
Y0  
RESET  
Q1N  
Y7  
CLK  
RDCLK  
50MHZ  
25MHZ (Internal)  
"I"  
C
D
D
Q
CLK  
A
QN  
RST  
B
25MHZ  
CLK  
QN  
MSEL(2:0) = 000  
MSEL = X  
MSEL 0  
50MHZ  
RESET  
A
B
C
25 MHz (internal)  
25MHZ  
RDCLK  
www.amcc.com  
3
HIPPI  
S2020/S2021 SOURCE DEVICE STATE MACHINES  
The S2020 sets the PACKET signal on the HIPPI Chan-  
nel prior to setting the BURST signal as required by the  
HIPPI Standard. If the external DTREQ signal is low  
(Burst and Ready counters are equal), there are no “un-  
answered” READYs. In this case the S2020 will pause in  
the {PENDBST} state until a READY signal is detected  
and the Ready counter is incremented.  
son between the Ready Counter and the Last Burst  
Register is used to prevent the Ready Counter from  
being incremented to a value greater than the old Burst  
Count. Thus the Ready Counter is prevented from  
“wrapping around” after receiving more than 65,535 un-  
answered READY signals from the Destination.  
The 65,536th and subsequent READY signals will be  
disregarded until at least one more Burst is completed,  
the Burst Counter incremented, the Last Burst Register  
updated, and the comparator conditions re-enable the  
incrementing of the Ready Counter.  
This function allows the Destination to “meter” the trans-  
mission of HIPPI Bursts on a one-by-one basis. A logic  
high on the DTREQ signal indicates that the S2020 is  
allowed to proceed, setting the BURST signal active  
and reading the next word of the Burst from the FIFO.  
If the Host decides to terminate the Packet while in the  
inter-Burst state, a single word must be loaded in the  
FIFO with the accompanying PKTAV bit set to 0. While  
the data at the inputs of the S2020 will appear at the  
HIPPI Channel outputs, the inactive BURST signal will  
cause the Destination to ignore that data. The low  
PKTAV read from the FIFO will again vector the S2020  
to the inter-packet {IDLE} state.  
While this process when started proceeds automati-  
cally, the Host system can observe its progress via the  
DTREQ output.  
The BSTAV should not be placed in the FIFO as a  
data bit, since it is used along with the DATAV signal  
to start and stop transmission gracefully at even Burst  
boundaries.  
After the last Packet of the transmission is completed,  
the Source Host may terminate the connection by plac-  
ing a logic low on the CNREQ input. The S2020 will  
deassert the REQUEST signal on the HIPPI Channel,  
enter the {TERMCON} state and remain there until the  
Destination deasserts the CONNECT signal. At that point  
the {IDLE} state will be re-entered.  
In all cases the BSTAV must be synchronized with the  
25 MHz RDCLK for reliable operation of the S2020. The  
rising edge of BSTAV asynchronously controls the lead-  
ing edge of the low active NREN signal.  
Once the Connection is established and the first Packet  
and Burst are started, the S2020 Source Device will  
generate properly formatted Bursts with the appropriate  
LLRC word and inter-burst idle cycles as long as the  
FIFO has data and the PKTAV and BSTAV signals  
remain high. The BSTAV signal is used to pause at the  
even 256 word Burst boundaries while the Host System  
“refills” the FIFO.  
As an alternative, the Host may issue a Mode 0 Reset  
command to terminate the Connection. The REQUEST  
signal will similarly be deasserted and the {INIT} state  
will be entered until the Destination deasserts CON-  
NECT and the Host System deasserts CNREQ. It is  
recommended that the first method be used for graceful  
termination since the path through the {TERMCON}  
state allows the Host to monitor the CONNECT signal  
status via the CNOUT output.  
The BSTAV signal must be set for at least the first word  
of the Burst. Once started the Burst will continue until  
256 words are transmitted unless the SHBST signal is  
set active, the PKTAV signal is set inactive, or the  
DATAV signal is set low inactive. The word being read  
from the FIFO at the time that any one of these three  
events occurs becomes the last word of the Burst. The  
last word is transmitted, followed immediately by the  
LLRC for that Burst, and the S2020 pauses and waits  
for both the DATAV and BSTAV to be true (active high).  
The HIPPI Source device connect control State Ma-  
chine (SM) controls the Connection state of the HIPPI  
channel to which it is attached. The Connect Control  
SM has inputs from the Source Host and form the  
HIPPI channel (remote Destination). Based on the cur-  
rent set of inputs and the last state of this circuit, the  
next Connect state is entered and a related set of out-  
puts is generated to the Source Host and to the HIPPI  
channel (remote Destination).  
If the Burst was terminated due to an inactive PKTAV,  
the S2020 will wait for DATAV and BSTAV in the internal  
inter-packet {IDLE} state. Inter Burst pauses within a  
Packet cause the S2020 to wait in the {LLRC} state.  
For this discussion all external device signal names  
shall be CAPITALIZED and underlined, the SM input  
‘alphabet’ or decode names shall be in double quotes  
(“), and all internal state names shall be enclosed in  
curly brackets ‘{}’.  
Each time a Burst reaches the last word condition, the  
Burst Counter is incremented and the previous value of  
the Burst Counter is saved in an internal Last Burst  
Register. In addition to the comparison between the  
Ready Counter and the Burst Counter used to control  
the FLOWON and DTREQ signals, a second compari-  
www.amcc.com  
4
HIPPI  
S2020/S2021 SOURCE DEVICE STATE MACHINES  
CONNECT SM EXTERNAL INPUTS  
{IDLE} The IDLE state: This is the first operational state  
entered from {INIT} (above). The main entrance to  
this state is when this circuit is in the {INIT} state  
and the inputs specify “I”. While in this state, both  
Source and Destination are ready and waiting for a  
connection to be established.  
MSEL2-0 Mode SELect lines 2-0 from the Source  
Host. Although there are eight possible modes for  
the Source device selected by these signals, only  
modes 0 (RESET), 2 (WAIT), and 3 (OPERA-  
TIONAL) are part of this discussion.  
{REQ} The REQuest state is entered from the {IDLE}  
state when the Source Host initiates a HIPPI con-  
nection by asserting CNREQ. This state is exited  
when the Source Host drops CNREQ (abort) or  
when CON goes active, indicating a Destination re-  
sponse to the connect request.  
CNREQ CoNnect REQuest signal from the Source  
Host. A ‘1’ on this signal indicates the Source  
Host’s request to either initiate a connection or  
maintain the current connection on the HIPPI chan-  
nel.  
A ‘0’ on this signal indicates the Source Host’s re-  
quest to either terminate the current connection or  
maintain a disconnected state on the HIPPI chan-  
nel.  
{CON1} The CONnect1 state is entered from the  
{REQ} state for one cycle when CON first goes  
active, indicating a Destination response to the con-  
nect request. From this state, the request may be  
aborted, or the response will continue to be pro-  
cessed.  
DSIC Destination to Source InterConnect signal from  
the HIPPI channel. A ‘0’ on this signal indicates the  
presence of a functioning Destination on the HIPPI  
channel. A ‘1’ on this signal indicates the absence  
of a functioning Destination on the HIPPI channel.  
{CONn, 1<n<16} These 14 states differentiate be-  
tween a CONNECT ACCEPT and a CONNECT  
REJECT response from the Destination. Being in  
one of these states implies that CON has been  
active (from the Destination) for 2 to 15 consecutive  
cycles. Receiving “CR” (inactive CON) in one of  
these states is a CONNECT REJECT. Receiving a  
“RDY” in one of these states indicates a CONNECT  
ACCEPT. Receiving “DR” in one of these states  
indicates that the Source Host wishes to abort the  
request.  
CON CONnect signal from the HIPPI channel. The  
functions of this signal are defined in the HIPPI-PH  
spec.  
RDY ReaDY signal from the HIPPI channel. The func-  
tions of this signal are defined in the HIPPI-PH  
spec.  
NOTE: The input signals from the HIPPI channel go  
through a digital ‘filter’ in the Source device. This filter  
circuit resolves metastability (of the asynchronous sig-  
nals) and filters out any signal state changes which are  
less than two cycles in duration.  
{CON16} CONnect 16 state is entered for one cycle  
when the sixteenth consecutive cycle of an active  
CON from the Destination is received. Receiving  
“C” or “RDY” in this state constitutes a CONNECT  
ACCEPT. Receiving a “CR” in this state indicates a  
CONNECT REJECT response from the Destina-  
tion. NOTE: The ‘filter’ circuit that the CON signal  
goes through effectively truncates the end of an  
active CONNECT signal, thereby allowing this state  
machine to wait 16 cycles (rather than 17) to deter-  
mine if the Destination response is ACCEPT or RE-  
JECT. Receiving “DR” in this state indicates that  
the Source Host wishes to abort the connect  
requets operation.  
CONNECT SM INTERNAL STATES  
The defined states and brief descriptions of each state  
follow.  
{INIT} The INITialization state is the state from which  
the rest of the functional connect states are en-  
tered. The main entrance to this state is when the  
inputs specify “RST”, i.e., modes 0 or 2 with DSIC =  
0 (active). The “RST” input indicates that the HIPPI  
Destination is present and that the Source Host is  
holding this device in a RESET or WAIT mode. It is  
intended that the Source Host enter the OPERA-  
TIONAL mode (3) when DSIC becomes active and  
when the Source Host is ready to enter the opera-  
tional* states of this CONNECT SM (for HIPPI con-  
nections).  
{CONNECTED} CONNECTED state is entered when a  
valid connection is established across the HIPPI  
channel between the Source and Destination. Re-  
ceiving a “CR” in this state indicates an illegal termi-  
nation, initiated by the Destination. Receiving a  
“DR” in this state results in a connection termina-  
tion, initiated by the Source Host.  
* The operational states of this CONNECT SM are all but {INIT}, {LOSTDEST}, and {NODEST}.  
www.amcc.com  
5
HIPPI  
S2020/S2021 SOURCE DEVICE STATE MACHINES  
Figure 1. S2020 Connect SM Input Decode Alphabet  
{INT. STATE}  
D C A  
n
state number  
DSTAV  
CNOUT  
ACREJ  
IC OUTPUTS  
}
Key to S2020 Connect SM State  
Transition Diagram  
RDY  
CON  
CNREQ  
MODES  
0 or 2  
DSIC  
INPUT  
CODE  
DESCRIPTION  
"I"  
0
0
0
0
0
0
1
1
0
0
0
0
0
1
1
0
0
0
1
1
1
X
X
X
0
1
0
1
1
X
X
X
X
X
X
0
1
X
X
X
IDLE  
"DR"  
"CR"  
"C"  
"RDY"  
"RST"  
"ND"  
"LD"  
DISCONNECT REQUEST  
CONNECT REQUEST  
CONNECTED  
READY RECEIVED ReaDY  
NO DESTINATION ReSeT  
NO DESTINATION  
LOST DESTINATION  
www.amcc.com  
6
HIPPI  
S2020/S2021 SOURCE DEVICE STATE MACHINES  
Figure 2. S2020 Connect SM State Transition Diagram  
"DR" + "CR" + "C" + "RDY" + "RST  
"ND" + "RST"  
"RST"  
"RST"  
{LOSTDEST}  
0 0 1  
0
{INIT}  
1 0 1  
2
"I" + "DR"  
"LD"  
"RST"  
"LD"  
" I "  
"ND"  
"ND"  
"I" + "DR"  
{IDLE}  
1 0 1  
3
"I" +  
"DR" +  
"C" + "RDY"  
{NODEST}  
0 0 1  
1
"CR"  
"CR"  
4
"ND"  
"RST" • "LD" • "ND"  
" I "  
{REQ}  
FROM  
"RST"  
"DR"  
"RDY"  
"CR"  
1 0 1  
3,4,5,  
6-19, 20,  
21, 22,  
23, 24,  
25, 26,  
2 7  
{DSTERR}  
1 0 1  
27  
"C"  
5
"I" + "DR"  
{ABORT}  
1 0 1  
24  
{CON1}  
1 0 1  
"C" + "RDY"  
"RDY"  
"CR" +  
"C" +  
"RDY"  
{REJECT}  
1 1 0  
25  
"C"  
"CR"  
{CONn} 6-19  
1 0 1  
{SRCERR}  
1 0 1  
26  
"RST"  
• "LD"  
• "ND"  
"CR"  
"C"  
"CR"  
"C" + "RDY"  
"CR" +  
"C" +  
"RDY"  
{ILLTERM}  
1 0 1  
22  
{CON16}  
1 0 1  
20  
" I "  
"I" + "DR"  
"RDY"  
"C" + "RDY"  
{TERMCON} 23  
1 1 1  
"CR"  
"CR"  
{CONNECTED} 21  
1 1 1  
"I" +  
"DR"  
"C" + "RDY"  
"DR"  
www.amcc.com  
7
HIPPI  
S2020/S2021 SOURCE DEVICE STATE MACHINES  
{ILLTERM} ILLegal TERMination state is entered  
when “CR” is received while in the {CONNECTED}  
state (i.e., the Destination drops CONNECT while a  
valid HIPPI connection exists). This state is exited  
when the Source Host drops CNREQ.  
{DSTERR} The DeSTination ERRor state is entered  
when CON or RDY go active illegally; RDY should  
not be active during the {REQ} or {CON1} states,  
and neither CON or RDY should be active during  
the {ILLTERM} state. While in the {DSTERR} state,  
the Source device will report the error by asserting  
the SQERR output. The SeQuence ERRor will be  
further identified as a DeSTination ERRor by clear-  
ing SRNDS to a ‘0’.  
{TERMCON} TERMinate CONnection state is entered  
when “DR” is received while in the {CONNECTED}  
state (i.e., the Source Host drops CNREQ while a  
valid HIPPI connection exists). This circuit remains  
in this state until the Destination drops CONNECT.  
CONNECT SM EXTERNAL OUTPUTS  
In addition showing the state transitions resulting from  
external inputs to the Source chip, Figure 2 also shows  
the external output signals for each defined state.  
{ABORT} The ABORT state is entered when “I” or  
“DR” are received while a connection is being re-  
quested (Source Host drops CNREQ before the  
HIPPI connection is established). This state is ex-  
ited when the Destination drops CONNECT (if it  
was active).  
DSTAV DeSTination AVailable signal to the Source  
Host. A ‘1’ on this signal indicates the presence of  
a functioning Destination on the HIPPI channel. A  
‘0’ on this signal indicates the absence of a func-  
tioning Destination on the HIPPI channel.  
{REJECT} The REJECT state is entered when the  
Destination’s response to a connect request results  
in more than two (2) but less than 17 consecutive  
cycles of “C” (active CON). This state is exited  
when the Source Host drops CNREQ.  
CNOUT CoNnect OUT signal to the Source Host. This  
signal, along with the ACREJ signal (below), indi-  
cates the current connection state on the HIPPI  
Channel. During a Connect Request, a ‘1’ on this  
signal indicates the receipt of a valid response to  
the Source (from the Destination) for the Connect  
Request. A ‘0’ on this signal, during a Connect Re-  
quest, indicates no response (yet) from the Desti-  
nation.  
{LOSTDEST} The LOST DESTination state is non-  
operational, and is entered when the HIPPI Inter-  
connect Destination-to-Source signal goes inactive  
during any of the operational states. This circuit  
remains in this state until the Source Host system  
forces a RESET or a WAIT mode (MSEL2-0 in-  
puts).  
After a connection is accepted, this signal shall be  
the same state as CONNECT on the HIPPI chan-  
nel, and therefore will indicate to the Source Host  
an illegal termination (termination initiated by the  
Destination), or the acknowledgment by the Desti-  
nation of a normal termination.  
{NODEST} The NO DESTination state is non-opera-  
tional, and is entered anytime there is no Destina-  
tion-to-Source Interconnect signal while the Source  
Host is forcing a RESET or WAIT mode via the  
MSEL2-0 inputs. This state is exited only by “RST”  
(the HIPPI Interconnect Destination-to-Source sig-  
nal going active while still in the RESET or WAIT  
mode).  
ACREJ ACcept/REJect signal to the Source Host. This  
signal, along with the CNOUT signal (above), indi-  
cates the Destination’s response to the Source’s  
Connect Request. A ‘1’ on this signal when CNOUT  
goes active during a Connect Request indicates an  
ACCEPTed connection. A ‘0’ on this signal when  
CNOUT goes active during a Connect Request in-  
dicates a REJECTed connection.  
{SRCERR} The SouRCe ERRor state is entered when  
CNREQ goes active illegally. This is possible dur-  
ing the {ABORT} and {TERMCON} states, where  
this circuit is waiting for the channel to go idle after  
a Source initiated termination. While in this state,  
the Source device will report the error by asserting  
the SQERR output. The SeQuence ERRor will be  
further identified as a SouRCe ERRor by setting  
SRNDS to a ‘1’.  
2.0 S2020 HIPPI DATA/FIFO CONTROL  
The HIPPI Source device Host Data/FIFO State Ma-  
chine (SM) is part of the Host Data/FIFO Control Block.  
The State Machine controls the flow of data and status  
from the Source Host FIFO to the S2020 Source de-  
vice. The Data/FIFO SM also controls the generation of  
the HIPPI channel control signals to properly delimit the  
data and respond to the data transfer commands of the  
Source Host system.  
www.amcc.com  
8
HIPPI  
S2020/S2021 SOURCE DEVICE STATE MACHINES  
The Host Data/FIFO SM has inputs from the Source  
Host system, the Connect Control State Machine and  
the internal Flow control circuit. Based on the current  
set of inputs and the last state of this state machine, the  
next Data/FIFO state is entered and a related set of  
outputs is generated to the Source Host and to the  
HIPPI channel.  
DATAV DATa AVailable signal from the Source Host:  
Indicates the availability of at least one more data  
word, or I-Field in the Source Host FIFO. A ‘1’ on  
this signal will enable the Source device to advance  
any pending operation that requires more data from  
the Host. A ‘0’ on this signal will prevent the ad-  
vancement of any such operations, and will legally  
terminate the current data Burst being transferred  
across the HIPPI channel.  
As before, all external device signal names shall be  
CAPITALIZED and underlined, the SM input ‘alphabet’  
or decode names shall be in double quotes (“), and all  
internal state names shall be enclosed in curly brackets  
‘{}’. Signals internal to the Source device other than  
previously defined state names shall be in caret brack-  
ets ‘< >’.  
Internal Inputs  
<FLOWON> Flow control signal from the READY/  
BURST counter block: Indicates the current capac-  
ity of the HIPPI channel (Destination) to accept a  
HIPPI Burst. A ‘1’ on this signal enables the trans-  
mission of one Burst to be initiated, if available from  
the Source Host system. A ‘0’ on this signal allows  
the completion of any Burst that has been initiated,  
but disables any subsequent Bursts. The state of  
this signal is observable at the DTREQ (DaTa  
REQuest) output of the Source Device.  
HOST DATA/FIFO SM INPUTS  
External Inputs  
PKTAV PacKeT AVailable signal from the Source  
Host: Indicates the current delimiting of data across  
the HIPPI channel. A ‘1’ on this signal indicates the  
Source Host’s request to either initiate a Packet or  
maintain the current Packet on the HIPPI channel.  
A ‘0’ on this signal indicates the Source Host’s re-  
quest to terminate the current Packet.  
<CONREQ> Connect request signal from the Connect  
Control State Machine: This signal is active for any  
of the Connect SM states {REQ} thru {CON16} dur-  
ing a normal HIPPI channel Connection Request se-  
quence. When active, this signal allows the Data/  
FIFO SM to read the I-Field from the Source Host  
FIFO, and then present the I-Field data and the REQ  
signal to the HIPPI channel.  
BSTAV BurST AVailable signal from the Source Host:  
Indicates the availability of other controls and data  
from the Source Host system. A ‘1’ on this signal  
will enable the Source device to initiate a new read  
sequence from the Source Host FIFO. A ‘0’ will  
disable the initiation of any new read sequences.  
This signal must not go active until at least one  
valid HIPPI Burst is available from the Source Host.  
If this signal goes inactive after a Burst read se-  
quence has begun, the current burst will be com-  
pletely read, but subsequent read operations will be  
disabled.  
<CNNECTED> Connected signal from the Connect  
Control State Machine: This signal is active only for  
the {CONNECTED} state. A ‘1’ on this signal en-  
ables all the HIPPI data delimiting and transfer  
functions. A ‘0’ will disable all delimiting and trans-  
fer functions.  
<256THWRD> The Terminal Count signal from the 8-  
bit word counter of the Host Data/FIFO Control  
Block: This signal indicates that the 256th word of  
the current Burst is being transferred from the FIFO  
to the Source device. A ‘1’ on this signal will legally  
terminate the current Burst. A ‘0’ will allow the  
Source device to transfer at least one more data  
word.  
SHBST SHort BurST signal from the Source Host:  
Indicates the end of a HIPPI data Burst with a  
length shorter than 256 words. A ‘1’ on this signal  
during an active Packet will terminate the current  
burst with the current word being the last word of  
the burst, and will initiate the completion and sub-  
sequent transmission of the LLRC word. A ‘0’ on  
this signal will allow the Source device to transfer at  
least one more data word from the Source Host  
FIFO to the HIPPI channel unless the current word  
is the 256th word of the current Burst.  
<RESET> The Reset signal from the Clock Control  
Block: This signal is the registered decode of the  
MSEL2-1 for the Mode = 0 state. A ‘1’ on this signal  
indicates the Reset state for the entire Source de-  
vice including the Host Data/FIFO SM. A ‘0’ on this  
signal will enable all other inputs to the SM.  
www.amcc.com  
9
HIPPI  
S2020/S2021 SOURCE DEVICE STATE MACHINES  
{WAITPKT} The WAIT PacKeT state is entered when  
HOST DATA/FIFO SM INTERNAL STATES  
there is no active Packet and the decode of “DRDY” is  
true, indicating that both BSTAV and DATAV were  
asserted from the Source Host system.  
The defined states are as follows:  
{INIT} The INITialization state is the entry point of the  
Host Data/FIFO SM. This state is unconditionally  
entered by a “RST” decode of the inputs. The state  
is also entered by a “DSCN” decode representing  
the disconnected state of the HIPPI channel. This  
state remains active if a “CNRQ” decode is true  
while the “NODT” decode remains false, indicating  
a Connection request without Data available from  
the FIFO. The state is exited to the {RDIFL} state  
by the decode of “CNRQ” and “DTAV” both true.  
The decode of “CON” in this state is a Destination  
error and the {DESTERR} state is entered.  
This state will read one word from the Source Host  
FIFO. If the “NPIF” decode is detected at the read  
(ie. PKTAV not asserted) then the {IDLE} state is  
entered. This loop of {IDLE}-{WAITPKT} will ad-  
vance the FIFO up to the next valid Packet.  
Any data words not delimited by PKTAV will appear  
at the HIPPI channel, but the PKT and BST signals  
on the HIPPI channel remain inactive. If the PKTAV  
is asserted at the read, the {PENDBST} state is  
entered.  
{PENDBST} The PENDing BurST state is entered  
when the Source Host system has a Burst of data  
to send. No read operations are performed in this  
state. If the “FLOF” decode is true (indicating that  
the Destination is not Ready for a Burst), this state  
is maintained. When the “FLOF” decode is false  
then this state is exited. If the PKTAV signal is  
deasserted, the {SRCERR} state is entered. If the  
pending Burst has only one word either by the as-  
sertion of SHBST in the first word or by the  
deassertion of DATAV (the last word in the FIFO  
was read), then the {LSTWD} state is entered. If the  
Burst has more than one word, then the {BURST}  
state is entered.  
{RDIFL} The ReaD I-FieLd state is entered when a  
Connect request is is initiated by the Source Host  
system and there is data available from the Source  
Host. When in this state the FIFO read function is  
active resulting in an active low level on the NREN  
output. The read operations of the FIFO will con-  
tinue until the “IFLD” decode is true, at which point  
the {PSTIFLD} state is entered. The decode of  
“RST” or “DSCN” will exit this state back to the  
{INIT}. The decode of “CON” in this state will force  
entry to the {DESTERR} state.  
{PSTIFLD} The PoST I-FieLd state is entered when an  
I-Field is successfully read from the Source Host  
system. While in this state, the I-Field data is pre-  
sented to the HIPPI channel and the REQ signal is  
asserted on the HIPPI channel. Although the NREN  
signal remains inactive, the internal data and parity  
pipeline remains active. If the I-Field was presented  
from the FIFO, the FIFO output register is stable  
with that data. If the FIFO data outputs were dis-  
abled, any other data applied to the Source device  
inputs (ie. via 3-state multiplexing) would appear at  
the HIPPI channel outputs two 25MHz clock cycles  
later. The decode of “DSCN” or “RST” will force  
entry to {INIT}. The decode of “CON” indicates suc-  
cessful connection to the HIPPI channel, and the  
{IDLE} state will be entered.  
{BURST} The BURST state is entered when every-  
thing is prepared for transmission; a valid connec-  
tion is established on the HIPPI channel, the  
Source Host system has at least one Burst avail-  
able, a Packet is currently active, and the Destina-  
tion is capable of receiving at least one complete  
Burst. In this state, Source Host system read op-  
erations are performed continuously until the the  
Packet is terminated, the 256th word is read, the  
SHBST signal is asserted, or the Source Host FIFO  
runs out of data. When any of these terminating  
conditions occur, the {LSTWD} state is entered.  
{LSTWD} The LaST WorD state is entered when the  
last word of the current Burst has been read from  
the Source Host system. No read operations are  
performed in this state. This state is only one cycle  
in duration, and except for error conditions, the  
{LLRC} state is next.  
{IDLE} The IDLE state is maintained when there is a  
Connection established, but there is no Packet and  
no data to transmit. No read operations are per-  
formed on the FIFO in this state. When “DRDY”  
indicates that Data and Burst are available, the  
{WAITPKT} state is entered.  
www.amcc.com  
10  
HIPPI  
S2020/S2021 SOURCE DEVICE STATE MACHINES  
{LLRC} The LLRC state is entered after the {LSTWD}  
DATA/FIFO SM EXTERNAL OUTPUTS  
state. This state will deassert the BST signal on the  
HIPPI channel while completing and posting the  
LLRC word to the channel. If the current Packet  
has been terminated by the Source Host system  
(PKTAV was deasserted at the read of the last  
word of the Burst), then the {IDLE} state will be  
entered. If the “DRDY” decode is true (BSTAV and  
DATAV are both asserted), and the current Packet  
is to be continued, then the {WTBST} state is en-  
tered. If the current Packet is to be continued, but  
the “DRDY” decode is false, then this state is main-  
tained. No read operations are performed in this  
state.  
REQ REQuest signal to the HIPPI channel. The func-  
tions of this signal are defined in the HIPPI-PH  
spec.  
BRST BuRST signal to the HIPPI channel. The func-  
tions of this signal are defined in the HIPPI-PH  
spec.  
PKT PacKeT signal to the HIPPI channel. The func-  
tions of this signal are defined in the HIPPI-PH  
spec.  
NREN Not Read ENable signal to the Source Host  
system FIFO. This is an active low signal to be  
used to enable the FIFO to load a new data word  
into its output register. This signal is controlled not  
only by the state of the Data/FIFO SM, but also by  
the inputs PKTAV, SHBST, DATAV and BSTAV.  
{WTBST} The WaiT BurST state is entered after one  
Burst is complete and the “DRDY” decode is true.  
One read operation is performed in this state. If  
PKTAV is asserted at that read operation, then the  
{PENDBST} state is entered. If PKTAV was  
deasserted at the read, then the {IDLE} state is  
entered.  
As an example, in the {RDIFL} state, the detection  
of the “IFLD” decode (PKTAV =’0', SHBST = ‘1’)  
will asynchronously deassert (raise to logical ‘1’)  
the NREN signal prior to the next rising edge of  
RDCLK such that the tagged data remains held in  
the FIFO’s output buffer. Similarly, the “DRDY” de-  
code asynchronously controls the assertion of  
NREN on the transition from the trapped {IDLE}  
state to the {WAITPKT} state.  
{SRCERR} The SouRCe ERRor state is entered if the  
PKTAV changes from a “1” to a “0” and the “FLOF”  
decode is false during the {PNDBST} state.  
This state is exited to the {INIT} state when the  
HIPPI Connection is broken or if the <RESET> sig-  
nal is true. The state is exited to the {DSTERR}  
state if the “CNRQ” decode is true. This error state  
is reported to the Source Host system by setting  
both SQERR and SRNDS output to logical “1”.  
{DSTERR} The DeSTination ERRor state is entered if  
the <CONREQ> signal is received while a valid  
HIPPI Connection is already established. The most  
likely cause of this error is an unstable signal on the  
HIPPI channel from the Destination. This state is  
also entered if CON is asserted when not expected  
(during the {INIT} or {RDIFL} states). This state is  
exited by either the “RST” or “DSCN” decodes be-  
ing true, either of which force the {INIT} state. This  
error state is reported to the Source Host system by  
setting the SQERR output to “1” and the SRNDS  
output to “0”.  
www.amcc.com  
11  
HIPPI  
S2020/S2021 SOURCE DEVICE STATE MACHINES  
Figure 3. Data/FIFO SM Input Decode Alphabet  
<FLOWON>  
BSTAV  
DATAV  
<256THWORD>  
SHBST  
PKTAV  
<CNNECTED>  
<CONREQ>  
<RESET>  
INPUT DESCRIPTION  
0
1
2
3
4
5
6
7
8
"FLOF"  
"NODT" X X X X X X  
"DRDY" X X X X X X  
"DTAV"  
"256W" X X X X X  
"SBST"  
"IFLD"  
"PKT"  
"NPKT"  
"NPIF"  
"CON"  
"CNRQ" 0 1 X X X  
"DSCN" 0 0 0 X X  
"RST"  
X X X X X  
X
X
X 0  
FLOW OFF  
NO DATA  
DATA READY  
DATA AVAILABLE  
256th WORD  
SHORT BURST  
I-FIELD  
PACKET  
NO PACKET  
NO PACKET OR I-FIELD  
CONNECTED  
CONNECT REQUEST  
DISCONNECTED  
RESET  
0 X X  
1
1
X X X  
X X X  
X X X  
X X X  
X X X  
1 X  
0 X  
X X X X X X  
1
X
X
X
X
X X X  
X X X  
X X X  
X X X  
X X X  
1 1  
0 1  
1 0  
0 0  
9
0 X X X X X  
10  
11  
12  
13  
0 0 1 X X  
X
X
X
X
X X X  
X X X  
X X X  
X X X  
1 X X X X  
www.amcc.com  
12  
HIPPI  
S2020/S2021 SOURCE DEVICE STATE MACHINES  
Figure 4. S2020 Data/FIFO Interface SM State Transition Diagram  
"CNRQ"•"NODT" + "DSCN" + "RST"  
"DSCN" + "RST"  
From 8  
FROM 1; 2  
{INIT}  
"CON" + "CNRQ"  
"DSCN" + "RST"  
0
00000  
"CON"  
{DESTERR}  
10  
"CNRQ"•"NODT"  
00000  
"CNRQ"•"IFLD"  
"CON"  
{RDIFL}  
10000  
1
"CNRQ"  
"DSCN" + "RST"  
From 3, 4, 5, 6,  
7, 8, 9 or 11  
"CNRQ"•"IFLD"  
"CNRQ"  
{PST IFL}  
& REQ  
2
00001  
"DSCN" + "RST"  
"CON"  
3
"CON" • "NPIF"  
"CON" • "NPIF"  
"CON"•"DRDY"  
{IDLE}  
00001  
"CON" • "DRDY"  
"CON" • "NPIF"  
{WAITPKT}  
10001  
4
From 8  
From 9  
"CON" • "NPIF"  
To 5  
From 5, 6, 7, 8, 11  
ON CONN REQ STATE  
www.amcc.com  
13  
HIPPI  
S2020/S2021 SOURCE DEVICE STATE MACHINES  
Figure 4. S2020 Data/FIFO Interface SM State Transition Diagram (continued)  
3, 4, 5, 6, 7, 8, 9, or 11  
go to 0 on "DSCN" + "RST"  
FROM 4  
TO 3  
or go to 10 on "CNRQ"  
"CON"•"NPIF"  
"CON"•"NPIF"  
"CON"•"NPIF"  
{PENDBST}  
"CON" •  
{WTBST}  
11001  
{SRCERR}  
5
9
"FLOF"  
"CON"•"FLOF"  
•"NPIF"  
11  
01001  
00000  
"CON"•"PKT"•"NODT"•"FLOF"  
"CON"  
"CON"•"PKT"•"256W"•"NODT"  
{BURST}  
11111  
"CON"•"FLOF" •  
("SBST"+"PKT"•"NODT")  
6
"CON"• ("PKT" + "256W" + "NODT")  
{LSTWD}  
01111  
7
TO 3  
"CON"•"NPIF"  
"CON"  
"CON"•"NPIF"•"DRDY"  
{LLRC}  
01001  
8
{STATE}  
STATE #  
X X X X X  
"CON"•"NPIF"•"DRDY"  
HIPPI REQ  
LLRC ENAB.  
HIPPI BURST  
HIPPI PACKET  
FIFO READ = (NREN)  
www.amcc.com  
14  
HIPPI  
S2020/S2021 SOURCE DEVICE STATE MACHINES  
If the process that empties the FIFO is faster than the  
data rate of the HIPPI Channel, the RDYIN input may  
be driven by a free-running TTL signal at a frequency  
less than or equal to 12.5 MHz. In that configuration the  
Buffer counter will quickly fill to 65,535.  
S2021 HIPPI DESTINATION CONNECT  
CONTROL  
S2021 HIPPI Destination Device Normal  
Functional Sequence  
After a connection is accepted, the READY signals are  
continuously generated at the maximum rate allowed  
by the HIPPI Standard (160 ns asserted, 160 ns  
deasserted) and counted in the internal READY  
Counter until the two counters are equal. If a continu-  
ous toggling signal is applied to RDYIN, 65,535 READY  
pulses will be sent at the maximum rate. From that  
point on each received Burst will allow one and only  
one READY pulse to be generated.  
The S2021 Destination Device responds to Connection  
and data transfer requests received from the HIPPI  
Source.  
The RESET Command (Mode 0) initializes all internal  
registers and state machines of the S2021. The Reset  
Command also places all Host side TTL outputs in the  
high-impedance state and the HIPPI Channel outputs  
(CONNECT and READY) in the deasserted state. The  
Destination to Source Interconnect output (DSIC) is  
also placed in the high logic low state. If the circuit  
recommended on page 19 of the S2020/S2021 Device  
Specification is used, this will result in a high inactive  
level on the HIPPI Channel DSIC signal.  
When an active REQUEST is detected on the HIPPI  
Channel the {REQCON} state and the {IFIELD} state  
are entered. The data on the HIPPI Channel is pre-  
sented at the outputs of the S2021 along with a logic  
high on the CONRQ output.  
After the RESET Command initialization is complete the  
Device should be placed in the operational state through  
the Mode 5 Command. The Host system should place a  
logic low signal on the CONIN input. The SRCAV output  
should then be monitored to determine the status of the  
Source Driving the HIPPI Channel.  
The SELB outputs assume the 001 code for the HIPPI  
I-Field. At this point the Host system must decide to  
either accept or reject the connection. The Host system  
must place a logic high on the CONIN input while hold-  
ing the ACCRJ at logic high to accept the connection. If  
ACCRJ is held low when CONIN is asserted the con-  
nection will be rejected. For applications where all  
REQUESTs must be accepted, the CONRQ output  
may be connected directly to the CONIN input and the  
ACCRJ input held high.  
If this signal is at a logic 0, either the Source to Destina-  
tion Interconnect (SDIC) is inactive or one of the Chan-  
nel Control signals (REQUEST, PACKET or BURST)  
from the Source is active. A logic 1 on the SRCAV  
output indicates the presence of a functional Source  
capable of initiating data transfers.  
If the REQUEST is rejected (CONIN =1, ACCRJ =0)  
the S2021 will assert the CONNECT signal on the  
HIPPI Channel for four clock cycles and then deassert  
the CONNECT signal for four cycles. If at the end of this  
sequence the Source has deasseted the REQUEST  
signal the S2021 will return to either the {IDLDSAB}  
state (CONIN=1) or the {IDLENAB} state (CONIN=0).  
When the {IDLENAB} state is reached the S2021 is  
able to process another Connection Request from the  
Source.  
In the initialized but not connected condition, the S2021  
cycles through the {DISCON0-2} state sequence. This  
is monitored by the host system by observing the 5,6,7  
repeating sequence on the SELB(2:0) outputs and the  
appropriate internal status words on the data outputs.  
At this point the Host system may initialize the internal  
Buffer Counter of the S2021 with the number of Burst-  
sized (256 word) buffer blocks available in the external  
FIFO and memory system. This is accomplished by  
placing a rising edge signal on the RDYIN input for  
each buffer block to be counted. Thus, if the available  
FIFO is 4K words deep, and the process that empties  
the FIFO is slower than the data rate of the HIPPI  
Channel, 16 pulses would be supplied to the RDYIN  
input.  
If the Host system has accepted the connection request  
(CONIN=1, ACCRJ=1) the S2021 will return to the  
{DISCON0-2} sequence until the CONNECT signal has  
been asserted for four clock cycles. At that point the  
S2021 enters the {IDLE} state (SELB=3) and remains  
there until the Source asserts the PACKET signal on  
the HIPPI Channel.  
During the disconnected condition, the state of the  
Buffer counter can be monitored by observing its con-  
tents in the lower half of the Flow status Word 2 which  
is presented to the outputs during the SELB=7 state.  
The Buffer Counter has a capacity of 2exp16 - 1 counts  
(65,535 buffers). Inputs to RDYIN greater than this will  
be ignored.  
When the PACKET signal is detected from the Chan-  
nel, the S2021 responds by placing a logic 1 on the  
PKOUT output and waits for a Burst data transfer to  
begin. The SELB bus remains in state 3. If the Source  
drops the PACKET on the Channel without beginning a  
Burst, i.e. attempts to form an “empty” Packet, the  
S2021 will detect a Sequence Error.  
www.amcc.com  
15  
HIPPI  
S2020/S2021 SOURCE DEVICE STATE MACHINES  
The detected Sequence Error will force the CONNECT  
to deassert, issue one Sequence Error word on the  
data outputs (SELB=4), and then return to the  
{DISCON0-2} sequence with its accompanying  
SELB5,6,7 sequence.  
Packet or end the Connection by deasserting the RE-  
QUEST signal. It should be noted that the Source may  
deassert the REQUEST signal at the same time as it  
deasserts the PACKET signal. In either case the S2021  
returns to the SELB5,6,7 sequence (internal states  
{DISCON0-2}).  
In the normal data transfer procedure, the Source will  
follow the asserted PACKET by asserting the BURST  
signal at least one clock cycle later. If the BURST is  
asserted at the same time as or before PACKET, the  
Sequence Error process described above will occur.  
The value in the BURST Counter is loaded into the  
READY Counter, since the previous difference between  
these two counters represents the READYs that were  
“lost” or unanswered by the now disconnected Source.  
A legally asserted and detected Burst will cause the  
S2021 to place a logic 1 on the BROUT output, place  
the SELB bus to state 0, and place the received data  
and parity bits on the data and parity outputs as the first  
word of the Burst.  
Unless the Destination Host System resets the flow  
counters (NRRDY set to logic 0) or resets the S2021  
(Mode 0 Reset) The available Buffer count is preserved  
for the next Connection.  
The HIPPI Destination device Connect Control State  
Machine (SM) controls the Connection state of the  
HIPPI channel to which it it is attached. The Connect  
Control SM has inputs from the Destination Host and  
from the HIPPI channel (remote Source). Based on the  
current set of inputs and the last state of this circuit the  
next Connect state is entered and a related set of out-  
puts is generated to the Destination Host and to the  
HIPPI channel (remote Source).  
The S2021 will continue to place received data and  
parity on the outputs (with SELB=0) until the Source  
deasserts the BURST signal. The S2021 makes no dis-  
tinction between short Bursts (less than 256 words),  
normal Bursts (exactly 256 words), or “extended” Bursts  
(greater than 256 words). As long as the Source pro-  
vides an LLRC word calculated with a modulo 256 word  
count in accordance with the HIPPI Specification, the  
S2021 will process the Burst without error.  
The Burst is ended when the S2021 detects that the  
Source has deasserted the BURST signal on the HIPPI  
Channel. The data and parity word received with the  
deasserted BURST are placed on the outputs as the  
LLRC word (SELB=2). The received LLRC word is  
compared with the LLRC internally calculated and any  
mismatch will set the RLLER output to logic 1 at the  
next clock cycle.  
For this discussion, all external device signal names  
shall be CAPITALIZED and underlined, the SM input  
‘alphabet’ or decode names shall be in double quotes  
(“) and all internal state names shall be  
enclosed in curley brackets ‘{}’. Signals internal to the  
Destination device other than previously defined state  
names shall be in caret brackets ‘< >’.  
CONNECT STATE MACHINE EXTERNAL  
INPUTS  
As each Burst is completed, the internal Burst Counter  
is incremented by one as described above. During the  
inter-Burst idle time the SELB bus is placed in state 3  
and the general operational status word appears on the  
data outputs. That status word allows the comparison  
flags for the Flow Control circuit to be observed.  
MSEL2-0 Mode SELect lines 2 - 0 from the Destination  
Host system. Although there are eight possible  
modes for the Destination device selected by these  
signals, only modes 0 (RESET) and 5(OPERA-  
TIONAL) are part of this discussion.  
The ALLBSTS flag is 1 when the READY and BURST  
counters are equal. The 64KBFRS flag is 1 when the  
Last Burst and Buffer counters are equal. The  
ALLRDYS flag is one when the READY and Buffer  
counters are equal.  
SDIC Source to Destination InterConnect signal. A ‘0’ on  
this signal indicates the presence of a functioning  
Source on the HIPPI channel. A ‘1’ on this signal  
indicates the absence of a functioning Source on the  
HIPPI channel. This signal is debounced and in-  
verted to form <NRAWSDIC> (active high). A ‘1’ on  
this input (or ‘0’ on the <NRAWSDIC> signal) is suffi-  
cient to force the internal “DSBL” decode indepen-  
dent of other inputs.  
The S2021 will continue to process received Bursts un-  
til the Source deasserts the PACKET signal. The inter-  
Packet condition will also result in the general  
operational status word appearing at the outputs (with  
SELB=3).  
At this point the Source may elect to start another  
www.amcc.com  
16  
HIPPI  
S2020/S2021 SOURCE DEVICE STATE MACHINES  
Figure 4B. S2021 Destination FIFO Interface  
www.amcc.com  
17  
HIPPI  
S2020/S2021 SOURCE DEVICE STATE MACHINES  
REQ REQuest signal from the HIPPI channel. The  
functions of this signal are defined in the HIPPI-PH  
spec. When debounced and synchronized as  
<SYNCREQ> this signal is used in the input ‘alpha-  
bet’ decoder for the Connect Control SM.  
{IDLDSAB} THE IDLe DiSABled state is entered from  
the {DISABLED} state, the {IDLENAB} state, and  
from the {REJCOMPL} state when the “IDSB” de-  
code is true. This state will persist until the “IDSB”  
decode is false. The normal exit from this state is to  
the {IDLENAB} state if the “IENB” decode is true.  
The “DSBL” decode will force exit to the {DIS-  
ABLED} state. Any other decode forces the  
{HANGERR} state.  
CONIN CONnect IN signal from the Destination Host  
system. This signal when asserted during a Connec-  
tion Request cycle, indicates an active response to  
the Request by the Destination Host system.  
{IDLENAB} The IDLe ENABled state is entered from  
the {DISABLED} state, the {IDLENAB} state, and  
from the {REJCOMPL} state when the “IENB” de-  
code is true. This state will persist until the “IENB”  
decode is false. This state is exited to the  
{REQCON} state if the “RQCN” decode is true, the  
{ACC0} state if the “CNAC” decode is true, the  
{REJ0} state if the “CNRJ” decode is true, and the  
{IDLDSAB} state if the “IDSB” decode is true.  
If this signal is asserted prior to the detection of a  
Connection Request cycle, the “IDSB” decode inhibits  
response to Requests from the HIPPI channel.  
If this signal remains low after an asserted REQ  
from the HIPPI channel, the channel remains ‘hung’  
in the Connection Request state until the Remote  
Source exercises a time-out of the unanswered re-  
quest. The CONIN signal may be tied directly to the  
CONRQ output, and the ACCRJ used as the active  
Connection control by the Destination Host system.  
{REQCON} The REQuest CONnection state is entered  
from the {IDLENAB} state at the detection of an  
asserted REQ from the HIPPI channel while  
CONIN is deasserted (“RQCN” decode is true).  
This state will persist while “RQCN” remains true. If  
the REQ is deasserted, this state is exited to the  
{IDLENAB} state. This state is exited to the {ACC0}  
state if the “CNAC” decode is true, the {REJ0} state  
if the “CNRJ” decode is true, the {IDLENAB} state if  
the “IENB” decode is true and the {IDLDSAB} state  
if the “IDSB” decode is true.  
ACCRJ ACCept/not ReJect signal from the Destination  
Host system. This signal together with the CONIN  
signal described above, control the Destination  
device’s response to a Connection Request (as-  
serted REQ) from the HIPPI channel remote  
Source. If a ‘1’ is placed on this input, the accompa-  
nying active CONIN is considered as an accep-  
tance response to the Connection Request. If a ‘0’  
is placed on this input, the asserted CONIN will  
result in an active Rejection of the Connection Re-  
quest (the CON signal to the HIPPI channel will be  
asserted for four clock cycles only, then  
deasserted). The active Rejection avoids possible  
‘hung’ conditions on the HIPPI channel.  
{ACC0-3} The ACCept 0 through ACCept 3 states are  
entered at {ACC0} from either {IDLENAB} or  
{REQCON} when the “CNAC” decode is true.  
These states are then sequenced in order unless  
overridden by a “DSBL” decode. The CON signal is  
asserted on the HIPPI channel for these states.  
This sequence is exited to the {CONNECTED}  
state if the “DSBL” decode remains false.  
CONNECT STATE MACHINE INTERNAL  
INPUTS  
{CONNECTED} The CONNECTED state is entered  
when a valid Connection is established across the  
HIPPI channel between the Destination and the  
Source. This state enables the output of the RDY  
signals on the HIPPI channel to initiate the transfer  
of Burst data from the remote Source. This state  
will persist while either the “CNAC” or the “CNRJ”  
decodes are true and the “DSBL” decode remains  
false. The CON signal on the HIPPI channel re-  
mains asserted while in this state. This state is ex-  
ited to the {REJCOMPL} state if the “RQCN”  
decode is true, the {DISCON0} state if the “IENB”  
decode is true, and the {INCOMPDCON} state if  
the “IDSB” decode is true.  
<RSTCON> ReSeT CONnection signal from the internal  
Data/FIFO Control SM. This signal is asserted dur-  
ing error states of the DATA/FIFO SM. When as-  
serted, this signal is sufficient to force the internal  
“DSBL” decode independent of other inputs.  
CONNECT SM INTERNAL STATES  
{DISABLED} The DISABLED state of the Connect SM  
is forced by the decode of “DSBL” from the input  
‘alphabet’. “DSBL” will force this state from all other  
states of the Connect SM. While in this state the  
SRCAV output is held to ‘0’. This state is exited to  
the {IDLDSAB} state if the “IDSB” decode is true  
(CONIN asserted with no REQ active). The  
{IDLENAB} state will be entered if the “IENB” de-  
code is true.  
www.amcc.com  
18  
HIPPI  
S2020/S2021 SOURCE DEVICE STATE MACHINES  
Figure 5. S2021 Connect SM Input Decode Alphabet  
HIPPI SDIC ACTIVE  
<RESET> [MODE = 0]  
<RSTCON>  
(From host controller SM)  
<SYNCREQ>  
(From HIPPI REQ)  
CONIN  
ACCRJ  
INPUT  
CODE  
DESCRIPTION  
X
X
X
0 0 0 0 1  
1 0 0 0 1  
0 1 0 0 1  
IDLE, REQUESTS ENABLED  
IDLE, REQUESTS DISABLED  
REQUEST CONNECTION  
CONNECT REJECT  
CONNECT ACCEPT  
SEQUENCE ERROR  
RESET  
"IENB"  
"IDSB"  
"RQCN"  
"CNRJ"  
"CNAC"  
0 1 1 0 0 1  
1 1 1 0 0 1  
X X X  
X X X X  
X X X X X  
1 X X  
1 X  
"DSBL"  
{
0
NO SOURCE  
www.amcc.com  
19  
HIPPI  
S2020/S2021 SOURCE DEVICE STATE MACHINES  
Figure 6. S2021 Connect SM State Transition Diagram  
"RQCN" + "CNAC" + "CNRJ"  
"IDSB"  
"DSBL"  
"DSBL"  
{WAITIDLE}  
0 0 0  
2
{DISABLED}  
0
"IDSB"  
0 0 0  
"IDSB"  
"IENB"  
"IENB"  
"IDSB"  
"IDSB"  
{IDLENAB}  
1 0 0  
4
"IENB"  
{IDLDSAB}  
1 0 0  
5
"IENB"  
"RQCN"  
"RQCN"  
{REQCON}  
1 1 0  
6
"IDSB"  
"IENB"  
"CNRJ"  
"CNRJ"  
"CNAC"  
"CNAC"  
{REJ 0-3}  
1 1 1  
8 - 11  
{ACC O}  
1 1 1  
16  
{REJ 4-6}  
1 1 0  
12-14  
{ACC 1-2}  
1 1 1  
17-18  
{REJ 7}  
1 1 0  
15  
{ACC 3}  
1 1 1  
19  
From  
24  
To 7  
From  
7
Input code "DSBL" forces  
STATE 0 from all other states  
"RQCN",  
"CNRJ",  
"CNAC"  
To 24  
To 25  
From  
24  
From  
23  
www.amcc.com  
20  
HIPPI  
S2020/S2021 SOURCE DEVICE STATE MACHINES  
Figure 6. S2021 Connect SM State Transition Diagram (continued)  
To 4  
To 2  
To 5  
To 4  
From 5  
From 19  
From 15  
"RQCN",  
"CNRJ",  
"CNAC"  
"CNRJ",  
"CNAC"  
"RQCN"  
{CONNECTED}  
111  
25  
{REJCOMPL}  
110  
24  
"IENB"  
"IENB"  
"IDSB"  
"IDSB"  
"IDSB"  
{INCOMPDCON}  
101  
26  
"IENB"  
{DISCON 0}  
100  
20  
"RQCN", "CNRJ", "CNAC"  
7
{HANGERR}  
100  
{DISCON 1,2} 21-22  
100  
{DISCON 3}  
100  
23  
States 1, 3, 27  
are not used  
state number  
{state}  
X X X  
| | |  
n
CONNECT (HIPPI)  
CONRQ  
SRCAY  
www.amcc.com  
21  
HIPPI  
S2020/S2021 SOURCE DEVICE STATE MACHINES  
{REJ0-3} The REJect 0 through REJect 3 states are  
entered at {REJ0} from either {IDLENAB} or  
{REQCON} when the “CNRJ” decode is true.  
These states are sequenced in order unless over-  
ridden by a “DSBL” decode. The CON signal is  
asserted on the HIPPI channel for these states,  
providing the minimum four clock cycle response  
for an active Connection Reject. This sequence is  
exited to the {REJ4} state if “DSBL” remains false.  
{WAITIDLE} The WAIT IDLE state is entered from the  
{HANGERR} state if the “DSBL” decode remains  
false. This state persists if either the “RQCN”,  
“CNAC” or “CNRJ” decodes are true. This state is  
exited to the {IDLENAB} state if the “IENB” decode  
is true.  
3.4 CONNECT SM EXTERNAL OUTPUTS  
SRCAV SouRCe AVailable signal to the Destination  
Host sytem. A “1” on this signal indicates that the  
HIPPI channel, from the remote Source through the  
local Destination device is available.  
{REJ4-7} The REJect 4 through REJect 7 states are  
entered at {REJ4} from {REJ3}. These states are  
sequenced in order unless overridden by a “DSBL”  
decode. The CON signal is deasserted for these  
states, defining the active Connection Reject. This  
sequence is exited to the {REJCOMPL} state if  
“DSBL” remains false.  
A “0” on this signal indicates that either the SDIC is  
inactive, the Destination device is in a Reset or test  
mode, or that the Data/FIFO SM is in an Error  
state.  
{REJCOMPL} The REJect COMPLete state is entered  
from the {REJ7} state if “DSBL” decode is false, or  
from the {CONNECTED} state if the “RQCN” de-  
code is true. This state persists while “RQCN”.  
“CNRJ” or “CNAC” are true. This state is exited to  
the {IDLENAB} state if the “IENB” decode is true, or  
to the {IDLDSAB} state if the “IDSB” decode is true.  
CONRQ CONNect ReQuest signal to the Destination  
Host system. A “1” on this signal indicates that the  
REQ signal from the HIPPI channel has been as-  
serted and recognized by the Destination device. A  
“0” on this signal occurs when the REQ signal is  
deasserted.  
This signal when active indicates the time during  
which the CONIN input may be used to actively  
accept or reject a Connection Request.  
{DISCON0-3}  
The DISCONnect  
0
through  
DISCONnect 3 states are entered in sequence  
from the {CONNECTED} state or from the  
{INCOMPDCON} state when the “IENB” decode is  
true. These states are sequenced in order unless  
overridden by a “DSBL” decode.  
CON CONnect signal to the HIPPI channel. The func-  
tions of this signal are defined in the HIPPI-PH  
spec.  
4.0 S2021 HIPPI DATA/FIFO CONTROL  
The function of this sequence is to assure that at  
least four clock cycles of deasserted CON on the  
HIPPI channel to recognize the Disconnected con-  
dition of the channel. This sequence is exited to the  
{IDLENAB} state if the “IENB” decode is true.  
The HIPPI Destination device Host Data/FIFO State  
Machine’ (SM) is part of the Host Data/FIFO Control  
Block’. The State Machine controls the flow of data and  
status from the HIPPI channel, through the S2021 Des-  
tination device to the Destination Host FIFO and the  
associated status registers.  
{INCOMPDCON} The INCOMPlete DisCONnect state  
is entered from the {CONNECTED} state if the  
“IDSB” decode is true (REQ on the HIPPI channel  
is deasserted, but CONIN remains asserted). This  
state persists if the “IDSB” decoode remains true.  
This state is exited to the {DISCON0} state if the  
“IENB” decode is true, or to the {HANGERR} state  
if either the “RQCN”, “CNAC” or “CNRJ” decodes  
are true.  
The Data/FIFO SM also provides addressing control to  
vector data and status words to their appropriate regis-  
ters.  
The Host Data/FIFO SM has inputs from the HIPPI  
channel and the Connect Control SM. Based on the  
current set of inputs and the last state of this state  
machine, the next Data/FIFO state is entered and a  
related set of outputs is generated to the Destination  
Host system.  
{HANGERR} The HANG ERRor state is entered from  
from either the {IDLDSAB} or {INCOMPDCON}  
states if either the “RQCN”, “CNAC” or “CNRJ” de-  
codes are true. These decodes represent errone-  
ous sequences of the Host or channel control  
signals. This state is exited after one clock cycle to  
the {WAITIDLE} state.  
As before, all external device signal names shall be  
CAPITALIZED and underlined, the SM input ‘alphabet’  
or decode names shall be in double quotes (“), and all  
internal state names shall be enclosed in curly brackets  
‘{}’. Signals internal to the Source device other than  
previously defined state names shall be in caret brack-  
ets ‘< >’.  
www.amcc.com  
22  
HIPPI  
S2020/S2021 SOURCE DEVICE STATE MACHINES  
HOST DATA/FIFO SM INPUTS  
EXTERNAL INPUTS  
{IDLE} The IDLE state is entered from the {DISCON0-  
2'} state sequence, the {INTRPKT} state or the  
{ENDBPKT} state if the “IDLG” decode is true. In  
addition to the standard transitions, this state is ex-  
ited to the {HSEQER} state if the “DXFR” decode is  
true, to {ILLINPT} if the “HIFL” decode is true, and  
to the {BGNPKT} state if the “GLRC” decode is  
true. In this pre- and inter-packet state the general  
op status word is presented on the data outputs of  
the Destination device.  
BRST BuRST signal from the HIPPI channel. The  
functions of this signal are defined in the HIPPI-PH  
spec.  
PKT PacKeT signal from the HIPPI channel. The func-  
tions of this signal are defined in the HIPPI-PH  
spec.  
4.1.2 INTERNAL INPUTS  
{BGNPKT} The BeGiN PacKeT state is entered from  
the {IDLE} state, the {INTRPKT} state or the  
{ENDBPKT} state if the “GLRC” decode is true. In  
addition to the standard transitions, this state is ex-  
ited to the {HSEQER} if the “IDLG” decode is true,  
to the {ILLINPT} state if the “HIFL” decode is true,  
to the {PKTNBST} state if the “GLRC” decode is  
true, and to the {DTATRNSF} state if the “DXFR”  
decode is true. In this state the general op status  
word is presented on the data outputs of the Desti-  
nation device.  
<NXTST6> State 6 signal from the Connect Control  
SM: This signal is active when the Connect Control  
SM is in the {REQCON} state. This signal indicates  
the reception of an I-Field’ from the HIPPI channel.  
<NXTST25> State 25 signal from the Connect Control  
SM: This signal is active when the Connect Control  
SM is in the {CONNECTED} state. This signal al-  
lows the Data/FIFO SM to process Packet and  
Burst delimited data from the HIPPI channel.  
4.2 HOST DATA/FIFO SM INTERNAL  
STATES  
{PKTNBST} The PacKeT No BurST state is entered  
from the {BGNPKT} state if the “GLRC” decode is  
true. This state persists if the “GLRC” decode re-  
mains true. In addition to the standard transitions,  
this state is exited to the {HSEQER} state if the  
“IDLG” decode is true, to the {ILLINPT} state if the  
“HIFL” decode is true, and to the {DTATRNSF}  
state if the “DXFR” decode is true. In this state the  
general op status word is presented on the data  
outputs of the Destination device.  
The defined states of the Data/FIFO SM are as follows:  
{DISCON0-2} The DISCONnected 0 through  
DISCONnected 2 states are repetitively sequenced  
if the “DISC” input decode is true. This sequence is  
entered at {DISCON0} if the Mode 0 Reset is com-  
manded via the MSEL0-2 inputs. While in this Se-  
quence, the Idle/Disabled status word, the flow  
status word 1, and the flow status word 2 are pre-  
sented in sequence on the data outputs of the Des-  
tination device. In addition to the standard  
transitions, this state sequence is exited to the  
{HSEQER} state if the “GLRC” or “DXFR” decodes  
are true, to the {IFIELD} state if the “HIFL” decode  
is true, or to the {IDLE} state if the “IDLG” decode is  
true.  
{DTATRNSF} The DaTA TRaNSFer state is entered  
from the {BGNPKT} state, the {PKTNBST} state , or  
the {IBSTGP} state if the “DXFR” decode is true.  
this state persists if the “DXFR” decode remains  
true. In this state Burst data is received and pre-  
sented to the data outputs of the Destination de-  
vice. In addition to the standard transitions, this  
state is exited to the {HSEQER} state if the “IDLG”  
decode is true, to the {ILLINPT} state if the “HIFL”  
decode is true, or to the {LLRCCH} state if the  
“GLRC” decode is true.  
{IFIELD} The I-FIELD state’ is entered from the  
{DISCON0-2} state sequence if the “HIFL” decode  
is true. This state persists if the “HIFL” decode re-  
mains true. In addition to the standard transitions,  
this state is exited to {HSEQER} if the “GLRC” or  
“DXFR” decodes are true or to the {ILLINPT} state  
if the “IDLG” decode is true. The normal functional  
exit is the standard “DISC” to {DISCON0}. In this  
state the received I-Field from the HIPPI channel is  
presented on the data outputs of the Destination  
device.  
{LLRCCH} The LLRC CHaracter state is entered from  
the {DTATRNSF} state if the “GLRC” decode is  
true. In this state the received LLRC character from  
the HIPPI channel is presented on the data outputs  
of the Destination device. During this state, the in-  
ternally calculated LLRC character is compared to  
the received character and the result of this com-  
parison is presented one clock cycle later on the  
RLLER output of the Destination device. In addition  
www.amcc.com  
23  
HIPPI  
S2020/S2021 SOURCE DEVICE STATE MACHINES  
Figure 7. S2021 Data/FIFO SM Input Decode Alphabet  
<RSTCON>  
DTVAL  
BROUT  
SELB2  
SELB1  
SELB0  
PKTOUT  
XXXX  
XXX  
n
{STATE}  
HIPPI INPUT  
BRST  
HIPPI INPUT  
PKT  
<NXTST6>  
{REQCON}  
<NXTST25>  
CONNECT CONTROLLER  
CONNECT CONTROLLER  
{CONNECTED}  
DESCRIPTION  
DISCONNECTED  
I-FIELD PRESENT  
IDLE/GAP  
ILLEGAL  
GAP/LLRC  
DATA TRANSFER  
CONNECT CONTROL ERROR  
0 0 X X  
0 1 X X  
1 0 0 0  
1 0 0 1  
1 0 1 0  
1 0 1 1  
1 1 X X  
"DISC"  
"HIFL"  
"IDLG"  
"HERR"  
"GLRC"  
"DXFR"  
"CERR"  
www.amcc.com  
24  
HIPPI  
S2020/S2021 SOURCE DEVICE STATE MACHINES  
Figure 8. S2021 Host Data/FIFO SM State Transition Diagram  
"CERR"  
OVERFLOW  
RESET  
"CERR"  
0011  
{ILLINPT}  
100  
14  
0010  
{DISCON0}  
101  
0011  
{HSEQER}  
100  
0
13  
"CERR"  
"HERR" +  
"GLRC" +  
"DXFR"  
"HIFL"  
"IDLG"  
"DISC"  
"HERR" +  
"DXFR"  
"HERR" +  
"GLRC" +  
"DXFR"  
"HIFL" + "CERR"  
0010  
{DISCON1}  
110  
0000  
{IDLE}  
011  
4
0010  
{IFIELD}  
001  
3
1
"IDLG"  
"DISC"  
"IDLG"  
"HIFL"  
"GLRC"  
"HIFL"  
"GLRC"  
"HIFL" + "CERR"  
"DISC"  
111  
"IDLG" +  
"CERR"  
"IDLG" + "HERR"  
1010  
{BGNPKT}  
011  
5
0010  
{DISCON2}  
2
"DISC"  
"DISC"  
"DISC"  
"HERR" +  
"GLRC" +  
"DXFR"  
"CERR"  
"GLRC"  
"DISC"  
1000  
"GLRC"  
"HERR"  
"GLRC"  
011  
{IBSTGP}  
7
1000  
{PKTNBST}  
011  
6
"HIFL" + "CERR"  
"HIFL" + "CERR"  
"IDLG" + "HERR"  
"GLRC"  
"IDLG"  
From  
10, 12  
"DISC"  
"IDLG"  
To 12  
"HIFL" +  
"CERR"  
"DXFR"  
To 8  
"DXFR"  
To 8  
"GLRC"  
From 11  
"DISC"  
From  
9, 10,  
11, 12  
"HIFL" + "CERR"  
From 11, 12  
From 11, 12  
From 8,  
9, 10  
www.amcc.com  
25  
HIPPI  
S2020/S2021 SOURCE DEVICE STATE MACHINES  
Figure 8. S2021 Host Data/FIFO SM State Transition Diagram (continued)  
To 5  
To 0  
From 6  
To 13  
To 4  
To 14  
From 7  
To 13  
To 14  
"DISC"  
"DXFR"  
"IDLG"  
To 7  
"HIFL" + "CERR"  
"DXFR"  
"DXFR"  
"GLRC"  
1110  
{DTATRNSF}  
000  
8
0010  
{INTRPKT}  
011  
12  
"HIFL" +  
"CERR"  
"IDLG" + "HERR"  
"IDLG"  
"HERR" + "DXFR"  
"DISC"  
"GLRC"  
"HIFL" + "CERR"  
"DISC"  
1010  
{LLRCCH}  
010  
9
"HERR" +  
"DXFR"  
"GLRC"  
"CERR"  
"GLRC"  
"IDLG"  
"CERR"  
1010  
{ENDBST}  
011  
11  
0010  
{ENDBPKT}  
011  
10  
"HERR"  
"HERR" + "DXFR"  
"DXFR"  
"DISC"  
"IDLG"  
"DISC"  
"GLRC"  
"IDLG"  
"GLRC"  
"IDLG"  
"GLRC"  
"DISC"  
www.amcc.com  
26  
HIPPI  
S2020/S2021 SOURCE DEVICE STATE MACHINES  
to the standard transitions, this state is exited to the  
{HSEQER} state if the “DXFR” decode is true, to  
the {ILLINPT} state if the “HIFL” decode is true, to  
the {ENDBPKT} state if the  
{ILLINPT} The ILLegal INPuT signals state is entered  
from all other states except the {HSEQER} state if  
the “CERR” decode is true. For specific states other  
decodes incorrect that state will also force the  
{ILLINPT} state. In this state the Sequence Error  
status word is presented to the data outputs of the  
Desination device. During this state the  
<RSTCON> signal is generated to force the reset  
of the Connect Control SM and abandon the com-  
promised HIPPI Connection. This state is exited to  
the {DISCON0} state unconditionally on the next  
clock cycle.  
“IDLG” decode is true, or to the {ENDBST} state if  
the “GLRC” decode is true.  
{ENDBST} The END BurST state is entered from the  
{LLRCCH} state if the “GLRC” decode is true. In  
this state the general op status word is presented  
on the data outputs of the Destination device. In  
addition to the standard transitions, this state is ex-  
ited to the {ILLINPT} state if the “HIFL” decode is  
true, to the {DTATRNSF} state if the “DXFR” de-  
code is true, to the {IBSTGP} state if the “GLRC”  
decode is true, or to the {INTRPKT} state if the  
“IDLG” state is true.  
4.3 HOST DATA/FIFO SM EXTERNAL OUT-  
PUTS  
PKOUT PacKet OUT signal to the Destination Host  
system. A ‘1’ on this signal indicates the detection  
and sychronization of an asserted PKT signal from  
the HIPPI channel. A ‘0’ indicates the end of a  
HIPPI Packet.  
{IBSTGP} The Inter BurST GaP state is entered from  
the {ENDBST} state if the “GLRC” decode is true.  
This state persists if the “GLRC” decode remains  
true. In this state the general op status word is  
presented on the data outputs of the Destination  
device. In addition to the standard transitions, this  
state is exited to the {ILLINPT} state if the “HIFL”  
decode is true, to the {DTATRNSF} state if the  
“DXFR” decode is true, or to the {INTRPKT} state if  
the “IDLG” decode is true.  
BROUT BuRst OUT stignal to the Destination Host  
system. A ‘1’ on this signal indicates the detection  
and synchronization of an asserted BRST signal  
from the HIPPI channel. A ‘0’ indicats a deasserted  
BRST signal.  
DTVAL DaTa VALid signal to the Destination Host  
system. This signal is at a ‘1’ when new data or  
status is available on the data outputs of the Desti-  
nation device. This signal is at ‘0’ in the {IDLE},  
{IBSTGP}, and {PKTNBST} states.  
{INTRPKT} The INTeR PacKeT state isentered from  
the {IBSTGP} state or from the {ENDBST} state if  
the “IDLG” decode is true. In this state the general  
op status word is presented on the data outputs of  
the Destination device. In addition to the standard  
transistions, this state is exited to the {HSEQER}  
state if the “DXFR” decode is true, to the {ILLINPT}  
state if the “HIFL” decode is true, to the {BGNPKT}  
state if the “GLRC” decode is true, or to the {IDLE}  
state if the “IDLG” decode is true.  
SELB0-2 SELect Bus 0, 1, 2 signals’ to the Destination  
Host system. These signals are intended to be the  
primary addressing delimiters of the various status  
and data words presented at the data outputs of  
the Destination device. The functions of these sig-  
nals are described in the S2020/S2021 Preliminary  
Device Specification.  
{HSEQER} The HIPPI SEQuence ERror state is en-  
tered unconditionally if the OVERFLOW condition  
occurs (Burst received when Burst and Ready  
counters are equal). The {HSEQER} is also entered  
from all states except {ILLINPUT}. For specific  
states other decodes incorrect that state will also  
froce the {HSEQER} state. In this state the Se-  
quence Error status word is presented to the data  
outputs of the Desination device. During this state  
the <RSTCON> signal is generated to force the  
reset of the Connect Control SM and abandon the  
compromised HIPPI Connection. This state is ex-  
ited to the {DISCON0} state unconditionally on the  
next clock cycle.  
www.amcc.com  
27  
HIPPI  
S2020/S2021 SOURCE DEVICE STATE MACHINES  
Figure A-1. Source Flow Diagram  
S1100  
Power-up or system  
master reset  
S1110  
Check for  
MODE 0 THEN MODE 2  
CON SM: {NODEST}  
H D/F SM: {INIT}  
INTERCONNECT = true  
MODE 3  
CON SM: {INIT}  
H D/F SM: {INIT}  
S1120  
Inform SMT that  
INTERCONNECT = true  
S1130  
Idle, wait for a ULP  
connection request  
MODE 2  
CON SM: {INIT}  
H D/F SM: {INIT}  
CON SM: {IDLE}  
H D/F SM: {INIT}  
S1140  
Wait for  
INTERCONNECT = true  
S1150  
Source ULP requests a  
connection  
MODE 0 THEN MODE 2  
CON SM: {NODEST}  
H D/F SM: {INIT}  
CON SM: {REQ}  
H D/F SM: {RD IFL},  
{PST IFL}  
S1160  
Inform SMT that  
INTERCONNECT went  
false  
S1170  
S1180  
Connection in process,  
wait for destination  
CON SM: {LOST DEST}  
H D/F SM: {DESTERR}  
Connection request  
aborted by source  
CON SM: {REQ}  
H D/F SM: {PST IFL}  
CON SM: {ABORT}  
H D/F SM: {INIT}  
S1190  
Destination responded with  
CONNECT = true  
S1200  
Destination rejected the  
connection request  
CON SM: {CON 1-16}  
H D/F SM: {PST IFL}  
CON SM: {REJECT}  
H D/F SM: {PST IFL}  
S1210  
Destination accepted the  
connection request  
CON SM: {CONNECTED}  
H D/F SM: {IDLE}  
From  
S1230  
From  
S1260  
To  
S1280  
To  
S1220  
www.amcc.com  
28  
HIPPI  
S2020/S2021 SOURCE DEVICE STATE MACHINES  
Figure A-1. Source Flow Diagram (continued)  
From  
S1190  
From  
S1210  
To  
S1130  
To  
S1160  
S1220  
S1230  
Connected and waiting for  
a packet  
The destination  
deasserted CONNECT  
CON SM: {CONNECTED}  
H D/F SM: {WAITPKT}  
CON SM: {ILLTERM}  
H D/F SM: {INIT}  
S1260  
S1250  
S1240  
Wait for destination to  
disconnect  
Source ULP ends the  
packet  
Source ULP starts a  
packet  
"LD"  
CON SM: {INIT}  
H D/F SM: {INIT}  
H D/F SM: {SRC ERR}  
if no burst, else PASS  
H D/F SM: {PEND BST}  
S1270  
S1280  
Connection broken by Source  
ULP, or CONNECT = false  
Wait for burst and READY,  
end of packet  
CON SM: {ILLTERM} or  
{TERMCON}  
H D/F SM: {INIT}  
H D/F SM: {WTBST}  
H D/F SM: {PEND BST}  
S1290  
S1300  
S1310  
Send remainder of burst  
Burst setup and send first  
word  
Send LLRC  
H D/F SM: {LLRC}  
H D/F SM: {BURST}  
{LSTWD}  
H D/F SM: {BURST}  
www.amcc.com  
29  
HIPPI  
S2020/S2021 SOURCE DEVICE STATE MACHINES  
Figure A-2. Destination Flow Diagram  
D1610  
D1600  
Check for  
INTERCONNECT = true  
Power-up or system  
master reset  
CON SM: {IDLENAB}  
H D/F SM: {DISCON 0-2}  
MODE 0 THEN MODE 5  
D1620  
D1630  
Inform SMT that  
INTERCONNECT = true  
Idle, wait for a source  
connection request  
CON SM: {IDLENAB}  
H D/F SM: {DISCON 0-2}  
CON SM: {IDLENAB}  
H D/F SM: {DISCON 0-2}  
D1640  
D1650  
Wait for  
INTERCONNECT = true  
Source is requesting a  
connection  
COM SM: {DISABLED}  
H D/F SM: {DISCON 0-2}  
CON SM: {REQCON}  
H D/F SM: {IFIELD}  
D1660  
Inform SMT that  
INTERCONNECT went false  
D1680  
D1670  
Wait for destination ULP to  
respond  
Source aborted the  
connection request  
CON SM: {DISABLED}  
H D/F SM: {DISCON 0-2}  
CON SM: {REQCON}  
H D/F SM: {IFIELD}  
CON SM: {IDLENAB}  
H D/F SM: {DISCON 0-2}  
D1700  
D1690  
Destination rejected the  
connection request  
Inform ULP that connection  
completed  
CON SM: {REJ 0-7}  
H D/F SM: {DISCON 0-2}  
CON SM: {ACC 0-3}  
H D/F SM: {DISCON 0-2}  
D1720  
D1710  
The Source deasserted  
REQUEST  
Connected and waiting for  
a packet  
CON SM: {DISCON 0-3}  
H D/F SM: {DISCON 0-2}  
CON SM: {CONNECTED}  
H D/F SM: {IDLE}  
D1750  
From  
D1730  
To  
D1750  
To  
D1740  
From  
D1750  
www.amcc.com  
30  
HIPPI  
S2020/S2021 SOURCE DEVICE STATE MACHINES  
Figure A-2. Destination Flow Diagram (continued)  
From  
D1700  
From  
D1710  
From  
D1710  
To  
D1720  
To  
D1660  
To  
D1710  
D1740  
Start of packet  
D1730  
D1750  
End of packet or Source  
deasserted REQUEST  
CON SM: {CONNECTED}  
H D/F SM: {INTRPKT}  
OR  
CON SM:  
{CONNECTED}  
H D/F SM: {BGNPKT}  
Wait for source to  
disconnect  
CON SM: {REJCOMPL}  
H D/F SM: {DISCON 0-2}  
CON SM:  
{INCOMPDCON}  
H D/F SM: {DISCON 0-2}  
D1760  
D1770  
Wait for a burst, or end  
of packet  
H D/F SM: {PKTNBST}  
OR  
The destination ULP broke  
the connection  
H D/F {IBSTGP}  
CON SM: {REJCOMPL}  
H D/F SM: {DISCON 0-2}  
D1780  
Receive the data burst  
H D/F SM: {DTATRNSF}  
D1790  
D1800  
Inform ULP of burst  
received  
Receive the LLRC  
H D/F SM: {LLRC CH}  
H D/F SM: {ENDBST}  
www.amcc.com  
31  
HIPPI  
S2020/S2021 SOURCE DEVICE STATE MACHINES  
SELECT = 0: HIPPI CHANNEL DATA  
DOUT0-31  
3
1
3
0
2
9
2
8
2
7
2
6
2
5
2
4
2
3
2
2
2
1
2
0
1
9
1
8
1
7
1
6
1
5
1
4
1
3
1
2
1
1
1
0
0
9
0
8
0
7
0
6
0
5
0
4
0
3
0
2
0
1
0
0
BYTE 0  
BYTE 1  
BYTE 2  
BYTE 3  
D
2
8
D
2
7
D
2
6
D
2
5
D
2
4
D
2
0
D
1
9
D
1
8
D
1
7
D
1
6
D
1
2
D
1
1
D
1
0
D
0
9
D
0
8
D
0
4
D
0
3
D
0
2
D
0
1
D
0
0
D
3
1
D
3
0
D
2
9
D
2
3
D
2
2
D
2
1
D
1
5
D
1
4
D
1
3
D
0
7
D
0
6
D
0
5
HOST DATA BUS FORMAT IN FUNCTIONAL MODE  
SELECT = 1: HIPPI I-FIELD  
DOUT0-31  
3
1
3
0
2
9
2
8
2
7
2
6
2
5
2
4
2
3
2
2
2
1
2
0
1
9
1
8
1
7
1
6
1
5
1
4
1
3
1
2
1
1
1
0
0
9
0
8
0
7
0
6
0
5
0
4
0
3
0
2
0
1
0
0
BYTE 0  
BYTE 1  
BYTE 2  
BYTE 3  
D
2
8
D
2
7
D
2
6
D
2
5
D
2
4
D
2
0
D
1
9
D
1
8
D
1
7
D
1
6
D
1
2
D
1
1
D
1
0
D
0
9
D
0
8
D
0
4
D
0
3
D
0
2
D
0
1
D
0
0
D
3
1
D
3
0
D
2
9
D
2
3
D
2
2
D
2
1
D
1
5
D
1
4
D
1
3
D
0
7
D
0
6
D
0
5
HOST DATA BUS FORMAT IN FUNCTIONAL MODE  
www.amcc.com  
32  
HIPPI  
S2020/S2021 SOURCE DEVICE STATE MACHINES  
SELECT = 2: HIPPI BURST LLRC WORD  
DOUT0-31  
3
1
3
0
2
9
2
8
2
7
2
6
2
5
2
4
2
3
2
2
2
1
2
0
1
9
1
8
1
7
1
6
1
5
1
4
1
3
1
2
1
1
1
0
0
9
0
8
0
7
0
6
0
5
0
4
0
3
0
2
0
1
0
0
BYTE 0  
BYTE 1  
BYTE 2  
BYTE 3  
D
2
8
D
2
7
D
2
6
D
2
5
D
2
4
D
2
0
D
1
9
D
1
8
D
1
7
D
1
6
D
1
2
D
1
1
D
1
0
D
0
9
D
0
8
D
0
4
D
0
3
D
0
2
D
0
1
D
0
0
D
3
1
D
3
0
D
2
9
D
2
3
D
2
2
D
2
1
D
1
5
D
1
4
D
1
3
D
0
7
D
0
6
D
0
5
HOST DATA BUS FORMAT IN FUNCTIONAL MODE  
www.amcc.com  
33  
HIPPI  
S2020/S2021 SOURCE DEVICE STATE MACHINES  
SELECT 3: GENERAL OPERATIONAL STATUS  
DOUT0-31  
3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0  
1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0  
R E  
PARITY  
ERROR  
BYTE  
IC SYNC/RESYNC PHASE STATUS  
CONDENSED FLOW STATUS  
E R  
S R  
Y O  
N R  
C
(NOT)  
PHASE  
BITS  
NPHST(0:7)  
NUMBER  
FLOW  
LIMITS  
0
2 1 0 2 1 0 2 1 0 3 2 1  
1
7 6 5 4 3 2 1 0  
0
BRST(0:15)  
BFR(0:15)  
BRDV(0:15)  
F
A
Z
S
E
L
ALLBRSTS  
64KBFRS  
ALLRDYS  
UNDERRUN STATE  
ADD STATE  
SAFE STATE  
HYSTERESIS STATE  
DROP STATE  
DANGER STATE  
OVERRUN STATE  
RESYNC STATE  
NSAFE  
NDROP  
NHYST  
NDANGER  
OVERRUN  
DATERR  
HOST DATA BUS FORMAT IN FUNCTIONAL MODE  
www.amcc.com  
34  
HIPPI  
S2020/S2021 SOURCE DEVICE STATE MACHINES  
SELECT 4: SEQUENCE ERROR STATUS  
DOUT0-31  
3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0  
1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0  
LLRC BURST  
COUNTER  
LAST CONTROLLER  
INPUTS  
LAST DATA BUS CONTROLLER STATE  
X
E
R
R
WORD(0:7)  
NDBUSC(0:6  
)
NDBUST(0:14)  
'0'  
14 13 12 11 10 9 8 7  
6
5
4
3
2
1
0
7
6
5
4
3
2
1
0
6
5
4
3
2
1
0
DISCON. STATE 0  
DISCON. STATE 1  
DISCON. STATE 2  
I-FIELD  
IDLE  
BEGIN PACKET  
PACKET ONLY  
INTER-BURST GAP  
DATA TRANSFER  
LLRC  
END BURST/PACKET  
END BURST  
INTER-PACKET GAP  
SEQ. ERROR  
ILLEGAL INPUT  
OVERFLOW  
"CERR" - ERROR: CONNECTED, I-FIELD  
"DXFR" - DATA: CONNECTED, PACKET, BURST  
"LLRC" - GAP/LLRC: CONNECTED, PACKET, NO BURST  
"HERR" - ERROR: CONNECTED, NO PACKET, BURST  
"IDLG" - IDLE: CONNECTED, NO PACKET, NO BURST  
"HIFL" - I-FIELD: CONNECT REQUEST  
"DISC" - DISCONNECTED  
HOST DATA BUS FORMAT IN FUNCTIONAL MODE  
www.amcc.com  
35  
HIPPI  
S2020/S2021 SOURCE DEVICE STATE MACHINES  
SELECT 5: IDLE/DISABLED STATUS  
DOUT0-31  
3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0  
1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0  
CONNECT CONTROLLER STATE  
HIPPI  
CHANNEL  
CONTROLS  
NCST(0:27)  
27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10  
9
8
7
6
5
4
3
2
1
0
DISABLED  
NOT USED  
WAIT FOR IDLE  
NOT USED  
IDLE, ENABLED  
IDLE DISABLED  
REQ. CONNECT  
HANG ERROR  
REJECT 0  
REJECT 1  
REJECT 2  
REJECT 3  
REJECT 4  
REJECT 5  
REJECT 6  
REJECT 7  
ACCEPT 0  
ACCEPT 1  
ACCEPT 2  
ACCEPT 3  
DISCONNECT 0  
DISCONNECT 1  
DISCONNECT 2  
DISCONNECT 3  
REJ. COMPL.  
CONNECTED  
INCOMP DCON.  
(ERROR)  
SDIC  
DSICOUNT  
SYNCREQ  
NCONOUT  
HOST DATA BUS FORMAT IN FUNCTIONAL MODE  
www.amcc.com  
36  
HIPPI  
S2020/S2021 SOURCE DEVICE STATE MACHINES  
SELECT = 6: FLOW STATUS WORD 1  
3
1
3
0
2
9
2
8
2
7
2
6
2
5
2
4
2
3
2
2
2
1
2
0
1
9
1
8
1
7
1
6
1
5
1
4
1
3
1
2
1
1
1
0
0
9
0
8
0
7
0
6
0
5
0
4
0
3
0
2
0
1
0
0
READY COUNTER  
BURST COUNTER  
RDY(0:15)  
BRST(0:15)  
15 14 13 12 11 10  
9
8
7
6
5
4
3
2
1
0
15 14 13 12 11 10  
9
8
7
6
5
4
3
2
1
0
www.amcc.com  
37  
HIPPI  
S2020/S2021 SOURCE DEVICE STATE MACHINES  
SELECT 7: FLOW STATUS WORD 2  
DOUT0-31  
3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0  
1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0  
LLRC CHECKER  
PARTIAL TERMS  
Connect Controller  
State Inputs  
BUFFER COUNTER  
Flow  
Controller  
Limits  
BFR(0:15)  
NEPCON(0:6)  
(FOR  
TESTABILITY)  
6
5
4
3
2
1
0 15 14 13 12 11 10 9  
8
7
6
5
4
3
2
1
0
Idle, requests enabled  
"IENB"  
"IDSB"  
"RQCN"  
"CNRJ"  
"CNAC"  
Idle, requests disabled  
request connect  
connect reject  
connect accept  
no channel clock (unused)  
HIPPI disabled (reset, no  
Source, Sequence Error)  
"DSBL"  
LLRC03  
LLRC47  
LLRC813  
LLRC1419  
LLRC2025  
LLRC2631  
ALLBRSTS  
64KBFRS  
ALLRDYS  
HOST DATA BUS FORMAT IN FUNCTIONAL MODE  
www.amcc.com  
38  

相关型号:

S2021B

Telecom Circuit, 1-Func, BICMOS, PQFP208, THERMALLY ENHANCED, PLASTIC, PACKAGE-208
AMCC

S2024B-8

Crossbar Switch, 32-Bit, ECL, PQFP196, HEAT SINK, NON CONDUCTIVE TIE-BAR, LDCC-196
AMCC

S2024C-6

Crossbar Switch, 32-Bit, ECL, PQFP196, LDCC-196
AMCC

S2024C-8

Crossbar Switch, 32-Bit, ECL, PQFP196, LDCC-196
AMCC

S2025A

Crossbar Switch, 32-Bit, ECL, PQFP196, HEAT SINK, LDCC-196
AMCC

S2025C

Crossbar Switch, 32-Bit, ECL, PQFP196, LDCC-196
AMCC

S2025C-15

Crossbar Switch, 32-Bit, CMOS, PQFP196, LDCC-196
AMCC

S2025C-8

Crossbar Switch, 32-Bit, CMOS, PQFP196, LDCC-196
AMCC

S2025G/H

Trigger Device
TECCOR

S2025L

SCRs 1-70 AMPS NON-SENSITIVE GATE
TECCOR

S2025L

SCRs (1 A to 70 A)
LITTELFUSE

S2025L51

Silicon Controlled Rectifier, 25A I(T)RMS, 200V V(DRM), 200V V(RRM), 1 Element, TO-220AB, TO-220, 3 PIN
TECCOR