Communication interface for serial transmission of variable length data tokens

Abstract: A communication interface for interconnecting a computer with at least one other device has a link output circuit and a link input circuit. A link output on one device is connected to a link input on another device by a data line 25 and a parallel strobe line 26. Data is transmitted on the data line 25 in serial bit strings forming a succession of tokens of predetermined lengths. Signal transitions are provided on the parallel strobe line 26 where no signal transition occurs on the data line 25. Each token includes a bit indicating the length of the token and a parity bit providing a check on bits in a preceding token.

Description: The invention relates to communication interfaces and is particularly applicable to communication interfaces for use with computer apparatus and the transmission of messages between computers or computers and other devices connected thereto. Computer devices and other integrated circuit devices may need to transmit messages or to receive messages from other devices. In some cases the message transmission may occur between two interconnected devices or between a large number of devices forming a network. In such a network one or more of the devices may be in the form of computer apparatus and other devices may comprise a variety of peripheral equipment. Such networks may include routing switches to permit a wide range of interconnections throughout the network. The transmission of data between such connected devices can be accomplished by using parallel data buses or serial communication wires. Complications arise in controlling buses in such network connections and furthermore the speed of operation is particularly limited where a plurality of devices are connected in the network. US-A-3 889 236 discloses a bidirectional communication interface using four unitdirectional signal wires between computer devices. It is an object of the present invention to provide a simple high speed interface between such communicating devices. It is an object to permit high speed operation without loss of data and to permit messages of variable length to be transmitted in multiple packet form. This is advantageous in permitting any interface to handle packets of different messages in succession before completing transmission of all packets of any one message. It is an object of the invention to provide a bidirectional communication interface using four unidirectional signal wires. The invention provides a communication interface for use in a communication system interconnecting a computer with at least one other device, said interface comprising output circuitry for outputting messages and input circuitry for inputting messages, said output circuitry including control circuitry and encoding circuitry for providing two parallel outputs one in the form of a data signal and the other in the form of a strobe signal, and said input circuitry including decoding circuitry having two inputs, a first input to receive a data signal and a second input to receive a strobe signal, said decoding circuitry being arranged to respond both to data and strobe signals to decode data encoded in said data signal, characterised in that the data signal comprises a serial bit pattern providing a sequence of signal transitions only when the data changes and said strobe signal has signal transitions only at bit boundaries where there is no transition on the parallel data signal, thereby avoiding simultaneous transitions in the bit patterns representing message data and strobe signals The invention also provides a method of effecting communication between at least two interconnected devices, at least one of which devices comprises a computer, said method comprising establishing parallel data signal and strobe signal communication paths between two link interfaces each connected to a respective one of said devices, outputting a data signal on the data signal path from one link interface and outputting a strobe signal on the strobe signal path from the said one link interface, inputting said data and strobe signals in parallel at the other link interface and responding to both said data and strobe signals to decode data encoded in the data signal, characterised in that the data signal comprises a serial bit pattern providing a sequence of signal transitions only when the data changes and said strobe signal has signal transitions only at bit boundaries where there is no transition on the parallel data signal, thereby avoiding simultaneous transitions in the parallel data and strobe signals. Preferably the method includes establishing four unidirectional communication paths between each pair of link interfaces, said four paths comprising a first parallel pair of data and signal paths in one direction and a second parallel pair of data and signal paths in the opposite direction. Preferably data is output by a link interface in tokens of predetermined bit length. Preferably data is output by a link interface in tokens of more than one predetermined bit length. Preferably the method includes generating a flag bit for inclusion in each token to identify the token as a data token or a control token. Preferably said parity bit and flag bit are located at first and second bit positions respectively in each token. Preferably the method includes forming two successive control tokens to form a compound token, the first of said control tokens having a bit pattern indicating that a further token is required to determine the control indicated by the compound token. Preferably messages are transmitted between connected link interfaces in variable length packets, each packet comprising a multiple number of tokens, each token being of a predetermined bit length and providing an end of packet token at the end of each packet. Preferably an end of message token is included at the end of a last packet in a message. Preferably the method includes forming flow control tokens for outputting by a link interface, outputting data from a first interface to a second interface, outputting a flow control token from said second interface to said first interface to indicate to the first interface that further data tokens may be output to the second interface. Preferably the method includes maintaining a count which is adjusted by output of tokens by an outputting link interface, inhibiting further output of data tokens from said link interface when the count reaches a predetermined number and adjusting said count in response to input of a flow control token from a connected interface to permit output of further data tokens. Preferably each link interface is arranged to output data tokens of a predetermined bit length longer than a second predetermined bit length for control tokens. Preferably each link interface is arranged to output control tokens of two types, one for controlling operation of a connected link interface and a second for use by said device connected to the second link interface. Preferably each link interface is arranged in its input circuitry to store data tokens and control tokens of said second type. Preferably the method includes transferring data tokens and control tokens of said second type from a store in the link interface to a said device connected to the link interface by use of a synchronised handshake. Preferably a link interface is arranged to output a packet which includes in one or more data tokens an address of a communication channel to be used in a said device connected to a link interface arranged to receive said packet. The method may include effecting bidirectional communication between a plurality of devices included in a network having a plurality of microcomputers and at least one routing switch. An embodiment of the invention will now be described by way of example and with reference to the accompanying drawings in which: Figure 1 is a block diagram of a network having a plurality of link interfaces in accordance with the present invention, Figure 2 is a schematic view of one link interface in accordance with the invention, Figure 3 shows in more detail the link output of the arrangement shown in Figure 2, Figure 4 shows in more detail the link input of the arrangement shown in Figure 2, Figure 5 shows the bit pattern on data and strobe lines for two successive tokens obtained by use of the apparatus shown in Figure 2, Figure 6 shows an output on the data and strobe lines during the last four bits of a Data Alignment Token, Figure 7 shows an input on the data and strobe lines following an output as shown in Figure 6, and Figure 8 shows an alternative input on the data and strobe lines following an output as shown in Figure 6. The network shown in Figure 1 comprises a plurality of microcomputers 11, 12, 13 and 14 which may each comprise a single integrated circuit microcomputer such as that shown in our US Patent 4680698. The network may also include other equipment such as a microprocessor 15, peripheral units 16 and 17 and a disk controller 18 controlling a disk 19. The network also includes a routing switch 20 which may be as described in our European Patent Application Publication No 0405990. Each of the microcomputers 11-14 has a plurality of link units 21 each providing a communication interface connected by four unidirectional signal wires 23 forming a bidirectional communication with a connected link unit 21 on another device in the network. In the example shown the microprocessor 15 is connected to a bus 22 connected to a link unit 21. Some of the devices such as microcomputer 12 and disk controller 18 are connected directly by four signal wires 23 whereas other devices are connected through the routing switch 20. Each of the microcomputers 11, 12, 13, 14, microprocessor 15 and peripheral units 16 and 17 and disk controller 18 acts as a host device in relation to the link unit 21 which enables input to and output from the host device. Each of the link units 21 is similar and their construction and operation will be described in more detail below. Each is arranged to enable bidirectional communication between pairs of devices in the network. The communication is such as to transmit variable length messages which may be divided into a succession of packets. Each set of signal wires 23 includes a first parallel pair of wires 25 and 26 forming respectively a data signal path and a parallel strobe signal path in one direction between a pair of connected link units 21. The second pair of wires forms a data signal path and parallel strobe signal path in the opposite direction between the same pair of link units 21. Messages are passed between connected link units 21 by serial bit strings which are encoded on the data signal paths 25 and parallel signals on the strobe signal path 26 are used in decoding the messages received on the data signal path 25. The bit strings are transmitted in tokens each token being of a predetermined bit length. In this particular example two different token lengths are used. The first called data tokens are each 10 bits long and the second type are control tokens each 4 bits long. Examples of each are shown in Figure 5 where token N is an example of a data token and the next successive token N+1 is a example of a control token. For both types of token the first bit location shown at the left hand side of the token in Figure 5 is a parity bit for the token. The second bit location is a flag to indicate whether the token is a data token or a control token. In the case of a data token the next 8 bit locations may contain any data required in the message. In the case of control tokens the first two bits are the same as already described for a data token and the last two bits contain a control indication. The strobe signal which is transmitted in parallel with the data signal is also shown in Figure 5 and this is arranged so that when tokens are transmitted on the data line 25 forming part of a message, the strobe line 26 has signal transitions only at bit boundaries where there is no transition on the parallel data signal. Although both types of token are each of a predetermined bit length, any desired number of tokens may be transmitted in succession to form a single packet. The end of a packet can be marked by transmission of a control token indicating the end of the packet. It may be desirable in some cases for a link or a routing switch to handle packets of a different message (possibly transmitted between a different pair of devices) before completing transmission of a first message. By arranging for the message to be transmitted in packets it is possible to stop transmission of one message at the end of a packet and to resume transmission of that message at a later time by one or more subsequent packets ending with an end of message token when the message is complete. This permits the multiplexing of a plurality of messages through a single link. The protocol used for the output of tokens on the data signal path 25 in accordance with this example are as follows: Function Abbreviation Bit pattern Data byte POXXXXXXXX Flow control Token FCT P100 End of Packet EOP P101 End of message EOM P110 Escape ESC P111 Data Alignment DAT ESC PO11 Null NULL ESC P100 Spare ESC P1xx The above Table indicates the bit patterns for a data token in order to transmit a data byte and subsequently four control tokens in the form of a flow control token, an end of packet token, an end of message token and an escape token. P indicates a parity bit in each token. The data token has the second bit location with the flag set at 0 whereas the control tokens have the second bit flag set to 1. The purpose of the escape token is to form a compound control token consisting of two successive four bit tokens. The escape token is clearly marked by its flag as a control token and the third and fourth bit locations of the escape token indicate that the token which follows will be a four bit token used for control purposes and not data. The subsequent token which is used to form a compound token with the escape token may either be a data alignment token or a null token or a spare token. In the above Table the control tokens form two different types. Flow control tokens and compound tokens formed by use of the escape token each form a first type. These control tokens of the first type are only used by the link interface itself for control purposes. The flow control token is used to control the rate of outputting of tokens by one link to ensure that a store in a receiving link is not overfilled. The data alignment tokens are used to adjust the alignment of the data and strobe signals when input by a link. Null tokens are normally transmitted when no other tokens are being sent. Control tokens of the second type consist of the end of packet token and end of message token and these together with data tokens are required by the host device which is connected to the link interface and these are consequently stored in a store in the link until transferred with a synchronised handshake system to the host. Similarly control tokens of the first type are generated by the link interface itself whereas data tokens and control tokens of the second type are generated by the host device and transmitted to the link through a synchronised handshake system. When any of the tokens (except the DAT token) listed in the above table are output on the data signal path 25, the strobe signal path 26 will output a signal consisting of signal transitions at each bit boundary in the data signal where there is no change in signal level in the data signal. When a DAT token is output the strobe signal follows the normal procedure for bit boundaries after bit positions 1, 2, 3, 4, and 5 of the DAT token but at the bit boundaries after bit positions 6 and 7 it follows the inverse of normal in that it causes simultaneous transitions 140 a and 140 b on both the data and strobe paths after bit 6 and no transition on either path after bit 7. This provides a single indentifiable edge on both signal paths after bit 6 which is used for alignment purposes. This is shown in Figure 6 which illustrates the last four bit positions of a compound token forming a DAT token. The arrangement of the link interfaces will now be described with reference to Figures 2, 3 and 4. Each link unit 21 has an output unit 30, an input unit 31, a flow control unit 32 and control circuitry 33. The output unit 30 is shown in more detail in Figure 3. A host interface 34 is provided to connect the output unit to the host device such as the microcomputer 11 in Figure 1. The interface 34 is connected to the host by a data bus 35 arranged to provide eight parallel bits of data. To permit synchronised handshake communication with the host the interface 34 also has an input 36 to receive a data valid signal from the host and an output 37 to provide an acknowledgement signal when it has received a byte of data from the host. The interface 34 has a clock signal input 38 and a reset input 39. The interface 34 also has an input 40 from the flow control unit 32 to inhibit data output if sufficient tokens have already been output without receiving a flow control token at the corresponding input. The interface 34 also provides a Token Sent output 41 to the flow control unit 32. Data is presented to the interface 34 along with a data valid signal from the host. When the output logic 30 is ready to accept that data it signals by means of an acknowledgement signal on line 37 to the host. If the host and the output unit 30 are operating in different clock regimes it is necessary to synchronise the data valid signal 36 and acknowledgement signal 37. Data received by the interface 34 is loaded into a parallel register 42 and it will be understood that the data in this register will either be a data token of the type previously described or a control token EOP or EOM. In order to output a token one of a plurality of Token Request latches 43 must be set and to send any of the tokens which are received through the interface 34, an input is provided on line 44 as an input to the Token Request latches 43. The latches 43 also provide an output on line 43 a to the interface 34 to indicate when a data token has been sent. The Token Request latches 43 also have three inputs 45, 46 and 47 for sending respectively a DAT, FCT and NULL token. inputs 45 and 47 come from the control circuitry 33 whereas input 46 comes from the flow control unit 32. The latches 43 also provide an output 48 to the flow control unit 32 to indicate when an FCT has been sent. To send a token the appropriate input to the latches 43 is asserted and if the signal is valid on the falling edge of the clock signal which is also fed to the latches then the appropriate latch is set and it is reset by an input 49 when the token has been sent. The NULL request 47 is held high during normal operation so that a NULL token is sent if no other token is required to be sent. The latch circuitry 43 is connected by eight lines, (four Token Request to the Prioritiser 50 and four Token Prioritised to the Latches 43), to a token prioritiser 50 and it also provides a signal on line 51 to a token sequencer 52 whenever a latch is set. The token prioritiser 50 receives the outputs from the Token Request latches 43 and contains logic circuitry to prioritise the requests from the latches 43 in the order DAT, FCT, DATA, NULL. This allows control when more than one latch request is made at the same time. The token prioritiser 50 provides four separate outputs (Token Prioritised) depending on which latch has been set and there are connected to a control code ROM 53 which also acts as a data multiplexor. The ROM 53 is programmed with bit patterns for the control codes ESC, DAT, FCT and NULL. These are the control tokens which are generated solely within the link logic whereas all other tokens are input from the host through the interface 34. If the latch 43 has been set to indicate that a data token (that is a token fed through the interface 34) is to be sent then the contents of the data register 43 are gated to the output of the ROM circuit 53 which is connected to an output shift register 54. The output consists of eight bits (only two of which are used for the tokens EOP and EOM) and a control or data flag signal on line 55. This is also fed as an input 56 to a sequencer 57. The register 54 receives the data in parallel and outputs it in serial form with the control or data flag preceding the eight data bits. The output is fed on line 58 to a parity generator 59. The parity generator contains a resettable latch with an output fed back to the input via an exclusive OR gate. The parity generator 59 has a parity reset input 60 from the sequencer 57 and an enable parity out input on line 61 from the sequencer 57. This has the effect of responding to each bit in a token which is fed through the generator 59 from the register 54. The parity signal is output after the control or data flag of the next token is input to the parity generator. The parity bit thereby provides an indication of the number of O's or I's which have been output since the last control or data flag up to and including the next control or data flag. It will be seen that each parity bit provides a check on the bits following a control or data flag in one token up to and including the control or data flag of the next token. In the system described which uses variable length tokens the control or data flag is the means of indicating the bit length of the token. It is therefore important to have a-parity check which includes a check on the control or data flag itself without including data bits that follow the control or data flag. In this way, if the parity check on the bit string including the control or data flag indicates no error, then the control or data flag is accepted as correctly identifying the bit length of the next token. This in turn results in the correct number of bits being taken into account in carrying out the next parity check. In other words the bit which indicates the token length must be checked prior to the data bits of that token so that there is no uncertainty as to how many bits should be assessed in making the next parity check. Having carried out the parity check it is important for the parity bit to be located at a known position in each token. That known position must remain constant whatever the length of the token and must therefore be located within the shortest bit length of any token used. For this reason the example described locates the parity bit in the first bit position of each token although it provides a parity check on the control or data flag which is in the second bit location of that token and on all bits in the preceding token which followed the control or data flag of the preceding token. The output of the parity generator 59 since the last control or data flag and including the control or data flag of the next token. The parity generator is enabled by a signal on line 61 to provide an output with the parity bit output following the last data bit. This parity bit thereby forms the first bit of a subsequent token. The output of the parity generator 59is fed to a data/strobe encoder 62. This is a state machine which obeys the following equations: On reset Data(0) = 0, Strobe(0) = 0 Strobe(n+1) = Strobe(n) EXOR NOT(Data(n+1) EXOR Data(n) EXOR InvertStrobe) The InvertStrobe signal is normally at logic 0. It is only asserted during the special bit in the Data Alignment Token. The encoder 62 is enabled by an input on line 63 from the sequencer 57 and it receives an invert strobe input 64 from a DAT generator 65 when a DAT token is to be sent. In normal operation the encoder 62 responds to the bit string received from the parity generator 59 and generates a strobe signal output 26 in parallel with the data signal output 25. These outputs are respectively fed through output drivers 67 and 68 which are clocked by the clock of the output link. The output drivers 67 and 68 are identical and clock simultaneously to minimise misalignment between the data and strobe signals. The effect of the encoder 62 is to provide a strobe signal in parallel with the data signal such that when any tokens other than DAT tokens are being output signal transitions occur on the strobe line 26 only at bit boundaries when there is no transition on the parallel data signal 25. A typical data and strobe signal chain is illustrated in Figure 5. The sequencer 57 is a state machine which supplies strobe signals to the output shift register 54, parity generator 59, encoder 62 and token sequencer 52. When initiated by a start signal on an input 70 from the token sequencer 52 in response to a latch 43 being set, it causes a token to be latched into the output shift register 54 by an input signal on line 71. After the token is latched in the register the sequencer provides an input on line 72 to cause the register 54 to shift the flag and data bits serially along line 58 through the parity generator 59. The sequencer receives an input on line 56 indicating whether the token is a four or ten bit token so as to control the number of bits that are shifted out of the register 54. When the appropriate number of bits for the token have been sent the sequencer 57 provides an output on line 74 to the token sequencer 52 to signal that a further token can now be sent. The Token Sequencer 52 provides an Enable signal on line 75 to the Token Prioritiser 50 after a signal on line 74 so that the Token Prioritiser 50 then calculates the highest priority token and at the same time, the Token Request Latches (43) signal to the Token Sequencer via line (51) that there is a token to send. This causes the Token Sequencer 52 to signal to the Token Prioritiser on line 75 (Enable) to hold its outputs in order that the token can be sent. Sequencer 52 is a state machine controlling the sending of each token. A cycle of operation for the sequencer 52 is initiated by any input on line 51 from the latches 43. If the token prioritiser 50 indicates that the set latch requires an ESC token then a signal is provided on line 76 to the token sequencer 52 which provides an output on line 77 to the ROM 53. The Token Sequencer 52 then signals to the Sequencer 57 on line 70 which sends the Escape Token. The Sequencer 57 then signals back to the token sequencer 52 on line 74 that the token has been sent. The token sequencer then removes the Send ESC Token signal 77 and signals the Sequencer 57 to send second four bit token. The Sequencer 57 then sends the second four bit token and then signals back to the Token Sequencer. The token sequencer 52 then resets the latch by a signal on line 49. In order to allow alignment of the data and strobe signals at a link input, DAT tokens may be sent and these generate special outputs on lines 25 and 26 by use of the DAT generator 65. The Sequencer 57 receives an input 79 from the ROM 53 when the token to be sent is a DAT token. The signal on line 79 is used by the Sequencer 57 to distinguish DAT tokens from other tokens. For DATs, the Sequencer 57 will send a four bit rather than ten bit token when the C/D Flag 56 is zero and will signal to the DAT Generator 65 on line 73 at the start of the second four bit token. The sequencer 57 will then wait for a response from the DAT generator on line 80 before proceeding with the next token. The DAT generator 65 then inverts the strobe signal during the third bit of the token following the ESC token as a result of an invert strobe signal on line 54 fed to the encoder 62. Furthermore the generator 65 provides a WAIT signal on line 80 to the sequencer 57 so as to inhibit operation of the sequencer 57 for a number of bit periods following the token so that the output on the data and strobe lines is held in the constant state. Whenever a data token, EOP token or EOM token is output by the link a signal is fed on line 41 through a divide by eight unit 81 to an output token counter 82 in the flow control unit 32. The counter 82 has the function of limiting the number of tokens that may be output by a link until a FCT token has been received by the link input from the link interface receiving the output. This prevents a store in the receiving link interface overflowing due to receipt of too many output tokens. Whenever an FCT token is received at the link input the counter 82 is incremented and after eight tokens sent by the link output the signal on line 41 causes a decrement of the count in the counter 82. Whenever the counter reaches zero an output is provided on line 40 through a synchroniser 83 so as to inhibit further output of data from the interface 34. In this way, the counter 82 provides an indication of the buffer spaces available in a link input at the other end of the link and the number of spaces is counted down with each token which is output, and incremented by eight on receipt of an FCT token. All units in the link output shown in Figure 3 have reset inputs and receive clock pulses from a clock provided for the output circuitry of the link interface. The input circuitry and flow control unit 32 are shown more fully in Figure 4. The link input 31 is clocked entirely by the data and strobe signals on lines 25 and 26. The signals are input respectively through delay units 90 and 91 of which the delay may be adjusted by a delay adjustment circuit 92. The data and strobe signals are then detected by use of a data rising edge detector 95, a data falling edge detector 96, a strobe rising edge detector 97, a strobe falling edge detector 98. When edges are detected outputs on lines connected to an arbiter circuit 99 are asserted. The detectors are reset by four signals fed respectively to the detectors from a bit delay circuit 100. The bit delay circuit is responsive to outputs from the arbiter circuit 99 and reset the edge detectors after a required bit delay. The arbiters 99 inputs the output from the four edge detectors and queues the inputs so as to output them one at a time. The arbiter 99 has fouroutputs leading to a data/clock extractor 101 and the four outputs are controlled so that only one output is high at any one time and this corresponds to the first input that was asserted. The extractor 101 in combination with the arbiters 99 and edge detectors operate to compare the signals on the data and strobe lines 25 and 26 and decode the data so as to provide a data output 102 and a clock signal 103. The extractor 101 includes a latch which is reset by the rising and falling data outputs from the arbiter 99. The output of the latch is the recovered data signal and to clock the reset of the input logic, the clock signal on 103 operates at half the bit rate which is recovered by the decoding. Each time a new output from the arbiters 99 is received the output of a latch in the extractor 101 is flipped. The delay lines 90 and 91 are provided in order for the decoder to function correctly and allow the data and strobe signals to be aligned to within a bit period. To allow this alignment DAT tokens are sent by the output circuit of a connected link interface. These cause simultaneous transitions on both the data and strobe lines 25 and 26. The tokens are decoded by the input and produce one of two results depending on whether the data signal is ahead of or behind the strobe signal. The data token is output as PO11 but any relative delay between the data and strobe signals may cause the token to be input as PO11 if the strobe is ahead of the data (Delay Strobe) or as POO1 if the data is ahead of the strobe (Delay Data). Figure 7 shows the position for the last four bits of a data token where the data signal is input late relative to the strobe signal and so the edge 140 b leads the ledge 140 a . This is decoded as PO11 by determing the signal level on the data line after transitions on either line. Figure 8 shows the equalivent position when the strobe signal is input late relative to the data signal. Edge 140 b follows edge 140 a . This is decoded as POO1 by determining the signal level on the data line after transitions on either line. On reset of the delay units 90 and 91 they are both set to minimum delay. Receipt of a Delay Strobe token causes the delay 91 in the strobe signal path to decrease by a small fixed amount unless it is already zero in which case the delay in the data signal path 90 is increased. Receipt of a Delay Data signal causes the opposite effect. In this way at all times at least one of the delay lines is at a minimum delay. The data and clock signals 102 and 103 are each connected to a parity checker 105, a token synchroniser 106 and an input shift register 107. The register 107 consists of two chains of master-slave latches. One chain is clocked on the rising edge of the clock and the other on the falling edge. The token synchroniser 106 extracts the control/data flag in the second bit position of each token and counts out the appropriate number of bits for that token which will either be four or ten depending on whether the token is a data or control token. It provides strobe signals on line 108 a to latch 4 bit tokens from register 107 into a token input register 109 and on line 108 b to latch 10 bit tokens from register 107 into token input register 109 as well as providing a strobe signal on line 110 to the parity checker 105 so that the parity checker 105 identifies the parity bit at the beginning of each token and compares this with the number of bits which have been transmitted on line 102 from the last control or data flag in the previous token. If a parity error occurs an output is provided on line 111. This is fed back through an input 112 to the token synchroniser 106 to halt the input. Detection of a parity error may be used to switch on a warning light or to halt the system or to activate the system to recover from the error by rebooting or otherwise. When a complete token has been shifted into the register 107 the token synchroniser will have counted the correct number of bits for that token and will then latch the contents into the register 109. A Token Valid signal is then provided on line 112 from the token synchroniser 106 to a control code detector 113 which receives the token from the register 109 and identifies the bit pattern of those tokens which are control tokens for use within the link. These tokens are NULL, FCT, DAT and ESC. Any other tokens such as a data token, EOP or EOM are output from the detector 113 on line 115 and written into a FIFO 116 under control of a signal 113 a from the detector 113. A signal 113 b from the detector 113 to the token synchroniser 106 indicates when an ESC token has been received. This is required by the token synchroniser to determine the length of the following token. If the detector 113 detects an FCT token it provides an output on line 117 to the output token counter 82. This indicates that the receiving link is now ready to receive more tokens (in this example each flow control token indicates that the receiving link can now take eight more tokens). The signal on line 117 therefore increments the counter 82 ensuring that no inhibit output is provided on line 40. The FIFO 116 is a store allowing in this example the buffering of eight tokens. To improve band width this buffering may be increased in this example to sixteen tokens. The FIFO 116 provides an interface with the host receiving the message and outputs data on a bus 124 to the host as well as a Data Valid signal on line 125. Transfer of data from the FIFO 116 to the host is effected in a synchronised handshake operation and an acknowledgement signal is provided on line 126 to the FIFO 116 when the host has received the data. When the host acknowledges receipt of a token on line 116 this confirms that the FIFO 116 now has further space by the removal of that token and a signal is provided on line 127 to the flow control unit 32. The signal on line 127 passes through a divide by eight unit 128 and is fed to an input token counter 129. This counter 129 counts tokens as they are input into the host from the link. When eight tokens have been counted by the unit 128 the counter 129 is incremented. This counter 129 has a count equals zero detector which is synchronised to the link output clock by a unit 130 and supplies a signal on line 46 requesting that an FCT token be sent. The counter 129 also receives an input on line 41 from the output interface 34 to confirm that an FCT token has been sent thereby decreasing the count in the counter 129. The signal on line 125 from the FIFO 116 is used to indicate that the FIFO is not empty and this signal is synchronised with the host clock by a synchronise circuit 131. The acknowledgement signal on line 126 need not be synchronised with the link input 31. If the Detector 113 detects a DAT token as POO1 which will occur if the Data is ahead of the strobe signal, the Detector 113 provides an invert parity signal on line 104 to the parity checker 105. This is because the change in the input of the DAT token would cause a parity error relative to the output of the token and this parity inversion still allows the parity check to be valid. It will be understood that the above arrangement provides a simple high speed interface between communicating devices in a network. It allows the transmission of messages in variable length packets and has the ability to send control tokens as wel as data tokens, these control tokens being used to control flow between two connected links as well as controlling operation within the links themselves. The use of the data and strobe signals where the strobe signal has transitions only at bit boundaries where no transition occurs on the data signal provides improved operation at high bit frequencies without loss of data when decoding the tokens. Automatic alignment of the data and strobe signals can be achieved by use of the DAT tokens and to cater for large misalignments which are greater than one bit period the system may be operated by sending a number of alignment tokens at a lower speed and after preliminary alignment switching to the operating speed and sending further DAT tokens to effect alignment at the high operating speed. Furthermore, the provision of a parity bit in each token is particularly advantageous in providing adequate checks when operating at high speed. Each parity bit is in a fixed position in each token which in this example is the first bit in each token. The parity bit in each token provides a check on the preceding token in that it provides an indication of the number of bits which have been transmitted since and including the last data or control flag. The invention is not limited to the details of the foregoing example. In the above example each data or control flag is a single bit forming a bit length indicator for the variable length token but each token may include more than one bit to indicate the token length. The interface described above may be used in a computer network with addressable communication channels including virtual channels as described in our copending UK Patent Application No 8915136.9. In such cases a packet may include in one or more data tokens the address of a channel or virtual channel to be used in effecting the communication. The State Tables setting out the transition states of the state machines above are as follows: In the following state tables, the following conventions are used. Outputs are a function of the state and not of inputs, unless explicitly stated otherwise (e.g. Strobe = InvertStrobe). When a state has no valid inputs, the state machine remains in the current state. Where a state is specified as 'Any' and there is a valid input, then the specified state transition overrides all other transitions e.g. if, in the following table, 'Reset' is asserted, then the state machine will make a transition to state '00' irrespective of the other inputs. Key ∼ NOT ∧ AND ∨ OR = Assigment. e.g. A = B means output A takes the value of input B; A = 0 means output A is set to 0. Clocking In this example, all the output state machines are synchronous. The link input contains synchronous and asynchronous state machines. The synchronous state machines in the link input are responsive to both edges of the clock. Data/Strobe Encoder (62) Token Sequencer (52) State Outputs Inputs Next State Any Any Reset Waiting for Token Waiting for token EnablePrioritiser Any Request GotToken ∼ Any Request WaitingForToken GotToken ResetRequest EscapeCommand Escaped Token ∼ EscapeCommand StartState EscapedToken SendESCToken, Start NextToken StartState ∼ NextToken EscapedToken StartState Start ∼ NextToken Startstate NextToken Waiting For Token Data Alignment Token Generator (65) State Outputs Inputs Next State Any Any Reset Waiting for StartDAT Waiting for StartDAT StartDAT 1 1 2 2 Wait 3 3 Wait, InvertStrobe 4 4 Wait 5 5 Wait 6 6 Wait WaitingForStartDAT Parity Generator (59) Token Request Latches (43) This is actually 4 identical, separate state machines, one for each of DAT FCT Data and Null. The state table for one of these is shown below. 'Send' corresponds to SendDAT SendFCT etc., TokenRequest corresponds to DATRequest etc. (inputs to the Token Prioritiser), TokenSent corresponds to FCTSent etc. and TokenPrioritised corresponds to DATPrioritised, FCTPrioritied etc. (outputs from the Token Prioritiser). There is an additional piece of logic for generating the 'AnyRequest' signal. AnyRequest = NullRequest∨FCTRequest∨DATRequest∨DataRequest Sequencer (57) Host I/F (34) Control Code Rom & Mux (53) Output Shift Register (54) In the following state table, d0-7 and 'Control' are boolean variables that are sampled when specified as inputs to the state machine i.e. their values are unchanged in states 'C' through '7'. State Outputs Inputs Next State Any Any Load, C d0-7,Control C Control Shift 0 0 d0 Shift 1 1 d1 Shift 2 Load, C d0-7,Control 2 d2 Shift 3 3 d3 Shift 4 4 d4 Shift 5 5 d5 Shift 6 6 d6 Shift 7 7 d7 Shift Hold Hold 0 Hold Token Prioritiser (50) The edge detectors, arbiters and data/clock extrtactor are asynchronous state machines and therefore change state as soon as an input changes. The other state machines are clocked at half the baud rate (i.e.50MHz for 100MBaud) and are synchronous. Edge Detector (Asynchronous) (95-98) In the following table, Reset = Main Reset ∨ ResetEdgeDetector. This edge detector detects rising edges. Falling edge detectors have the input from the delay lines inverted. Arbiters (Asynchronous) (99) There are 6 arbiters one between each pair of inputs Arbiter Input 1 Input 2 Output 1 Output 2 1 DataRising Data Falling DataRising1 Data Falling1 2 DataRising StrobeRising DataRising2 StrobeRising1 3 DataRising StrobeFalling DataRising3 StrobeFalling1 4 DataFalling StrobeRising DataFalling StrobeRising2 5 DataFalling StrobeFalling DataFalling StrobeFalling2 6 StrobeRising StrobeFalling StrodeRising3 StrobeFalling3 The state table for one of the arbiters is shown below :- State Outputs Inputs Next State 00 Input 1 High 10 Input 2 High 01 01 Output2 Input 1 High 11 (2 first) Input 2 Low 00 10 Output1 Input 1 Low 00 Input 2 High 11 (1 first) 11 (1 first) Output1 Input 1 Low 01 Input 2 Low 10 11 (2 first) Output2 Input 1 Low 01 Input 2 Low 10 The outputs from the individual arbiters are combined as follows to give the four outputs from the arbiters module in the diagram. DataRisingArbitrated = DataRising1∧DataRising2∧DataRising3 DataFallingArbitrated = DataFalling1∧DataFalling2∧DataFalling3 StrobeRisingArbitrated = StrobeRising1∧StrobeRising2∧StrobeRising3 StrobeFallingArbitrated = StrobeFalling1∧StrobeFalling2∧StrobeFalling3 Data/Clock Extractor (Asynchronous) (101) State Outputs Inputs Next state Any Any Reset Data0Strobe0 Data0Strobe0 Data = 0, Clock = 0 DataRisingArbitrated Data1Strobe0 StrobeRisingArbitrated Data0Strobe1 Data0Strobe1 Data = 0, Clock = 1 DataRisingArbitrated Data1Strobe1 StrobeFallingArbitrated Data0Strobe0 Data1Strobe1 Data = 1, Clock = 0 DataFallingArbitrated Data0Strobe1 StrobeFallingArbitrated Data1Strobe0 Data1Strobe0 Data = 1, Clock = 1 DataFallingArbitrated Data0Strobe0 StrobeRisingArbited Data1Strobe1 The Clock output is delayed relative to the data output to allow for the set up time of the shiftregister, paritychecker and token synchroniser. The following state machines are synchronous and can change state on both rising and falling clock edges. Parity Checker (Synchronous) (105) The ResetParity signal is asserted during the last bit of each token. When this occurs, the state (together with the data and InvertParity inputs,) is used to determine if there has been a parity error. Token Synchroniser (Synchronous) (106) State Outputs Inputs Next State Any Any Reset ResetState ResetState FirstParity FirstParity ResetParity Data = 0 DataFlag Data = 1 ControlFlag NextParity ResetParity, TokenValid ∼ Data ∧ ∼ ESCCode DataFlag Data ∨ ESCCode ControlFlag DataFlag Data0 Data0 ∼ ParityError Data1 ParityError Halt Data1 Data2 Data2 Data3 Data3 Data4 Data4 Data5 Data5 Data6 Data6 Data7 Data7 LatchLongToken NextParity ControlFlag Control0 Control0 Control1 Control1 LatchShortToken NextParity Halt ∼ Reset Halt Control Code Detector (Synchronous) (113) CONTROL STATE TABLE (33) This is an example of the type of control state machine that might be used.The link is first switched to a slow clock and a number (in this case 100) Data Alignment Tokens are sent. The link is then switched to a higher speed. Data Alignment Tokens are then sent periodically.

Claims: A communication interface for use in a communication system interconnecting a computer (11) with at least one other device (13), said interface (21) comprising output circuitry (30) for outputting messages and input circuitry (31) for inputting messages, said output circuitry including control circuitry (33) and encoding circuitry (62) for providing two parallel outputs one in the form of a data signal (25) and the other in the form of a strobe signal (26), and said input circuitry including decoding circuitry (101) having two inputs, a first input (90) to receive a data signal and a second input (91) to receive a strobe signal, said decoding circuitry (101) being arranged to respond both to data and strobe signals to decode data encoded in said data signal, characterised in that the data signal comprises a serial bit pattern providing a sequence of signal transitions only when the data changes and said strobe signal has signal transitions only at bit boundaries where there is no transition on the parallel data signal, thereby avoiding simultaneous transitions in the bit patterns representing message data and strobe signals. A communication interface according to claim 1 in which said control circuitry is arranged to output data in said data signal in tokens of predetermined bit length. A communication interface according to claim 2 in which the control circuitry is operable to output tokens of more than one predetermined bit length. A communication interface according to claim 3 wherein each token includes a flag to indicate the token bit length. A communication interface according to any one of the preceding claims in which said control circuitry includes a parity bit generator to generate a parity bit for inclusion in each token. A communication interface according to any one of the preceding claims in which said control circuitry includes a flag bit generator to generate a flag bit for inclusion in each token to identify each token as a data token or a control token. A communication interface according to claim 6 in which said flag bit provides an indication of the token length. A communication interface according to claim 6 or claim 7 in which the control circuitry is arranged to provide control tokens and data tokens each having a respective predetermined bit length, each data token having a greater bit length than a control token. A communication interface according to any one of the preceding claims in which the input circuitry includes delay circuitry connected between each of said two inputs and said decoder and means for varying the delay on one or both of said inputs prior to decoding. A communication interface according to any one of the preceding claims in which the output circuitry includes flow control means for generating flow control tokens for outputting to a connected communication interface and said input circuitry includes means responsive to input of a flow control token to control operation of the output circuitry in outputting further data signals. A communication interface according to claim 10 in which said input circuitry includes store means for holding a plurality of data signals and said flow control means is responsive to the contents of said register means. A method of effecting communication between at least two interconnected devices, at least one of which devices comprises a computer (11), said method comprising establishing parallel data signal and strobe signal communication paths (25,26) between two link interfaces (21) each connected to a respective one of said devices, outputting a data signal (25) on the data signal path from one link interface and outputting a strobe signal (26) on the strobe signal path from the said one link interface, inputting said data and strobe signals (25,26) in parallel at the other link interface (21) and responding to both said data and strobe signals to decode data encoded in the data signal, characterised in that the data signal comprises a serial bit pattern providing a sequence of signal transitions only when the data changes and said strobe signal has signal transitions only at bit boundaries where there is no transition on the parallel data signal, thereby avoiding simultaneous transitions in the parallel data and strobe signals. A method according to claim 12 further comprising establishing four unidirectional communication paths between each pair of link interfaces, said four paths comprising a first parallel pair of data and signal paths in one direction and a second parallel pair of data and signal paths in the opposite direction. A method according to claim 12 or 13 wherein data is output by a link interface in tokens of predetermined bit length. A method according to claim 14 wherein data is output by a link interface in tokens of more than one predetermined bit length. A method according to any one of claims 12 to 15 further including generating a flag bit for inclusion in each token to identify the token as a data token or a control token. A method according to claim 16 further comprising forming two successive control tokens to form a compound token, the first of said control tokens having a bit pattern indicating that a further token is required to determine the control indicated by the compound token. A method according to any one of claims 12 to 17 wherein messages are transmitted between connected link interfaces in variable length packets, each packet comprising a multiple number of tokens, each token being of a predetermined bit length and providing and end of packet token at the end of each packet. A method according to claim 18 further comprising including an end of message token at the end of a last packet in a message. A method according to any one of claims 12 to 19 including forming flow control tokens for outputting by a link interface, outputting data from a first interface to a second interface, outputting a flow control token from said second interface to said first interface to indicate to the first interface that further data tokens may be output to the second interface. A method according to claim 20 further comprising maintaining a count which is adjusted by output of tokens by an outputting link interface, inhibiting further output of data tokens from said link interface when the count reaches a predetermined number and adjusting said count in response to input of a flow control token from a connected interface to permit output of further data tokens. A method according to any one of claims 12 to 21 wherein each link interface is arranged to output data tokens of a predetermined bit length longer than a second predetermined bit length for control tokens. A method according to any one of claims 12 to 22 wherein each link interface is arranged to output control tokens of two types, a first type for controlling operation of a connected link interface and a second type for use by said device connected to the second link interface. A method according to claim 23 wherein each link interface is arranged in its input circuitry to store data tokens and control tokens of said second type. A method according to claim 24 including transferring data tokens and control tokens of said second type from a store in the link interface to a said device connected to the link interface by use of a synchronised handshake. A method according to any one of claims 12 to 25 wherein a link interface is arranged to output a packet which includes in one or more data tokens an address of a communication channel to be used in a said device connected to a link interface arranged to receive said packet. A method according to any one of claims 12 to 26 comprising effecting bidirectional communication between a plurality of devices included in a network having a plurality of microcomputers and at least one routing switch.

Inventors: SIMPSON ROBERT J, SIMPSON, ROBERT J.
Applicants: SGS THOMSON MICROELECTRONICS, STMICROELECTRONICS LIMITED
Application year: 1991
Main classification: H04L1
IPC codes: H04L29, G06F13, G06F15, H04L1, H04L7