The present application is generally related to an interface for communicating data between logic blocks.
When designing electronic devices, data is typically communicated between respective logic devices of a device. However, the timing of the operation of the various devices may vary thereby complicating the exchange of data. Accordingly, it is frequently desirable to provide an interface between logic devices to facilitate data communication.
Some representative embodiments are directed to an interface for communicating data between logic blocks and a method of operation. In some representative embodiments, data is communicated according to “data pull” flow control. Specifically, a pull signal is asserted upon the retrieval of data to indicate that additional data should be made available upon the next clock cycle. In some representative embodiments, one or several delay elements are used by the interface to delay the assertion of a pull signal by a “sink” block from the assertion of a pull signal by the interface to a “source” block. Additionally, in some representative embodiments, one or several register elements are used to hold data until the next assertion of the pull signal by the sink block. A multiplexer is used to control the output from the register elements to the sink block. In alternative embodiments, a look-up table or suitable combinatorial logic is used to control the multiplexer using the history of pull signal assertions by the sink block.
By using the delayed assertions of the pull signal in this manner, data may pass directly from the source block to the sink block when the pull signal is continuously asserted. Also, when the pull signal transitions from being asserted to not being asserted, the delay ensures that a data element from the source will be immediately available upon the next assertion of the pull signal. Specifically, the delayed pull signal causes an additional data element to be obtained from the source block and stored in a register element until the next assertion of the pull signal. Accordingly, the delay of the pull signal in conjunction with the operation of the multiplexer enables data pull flow control to occur in a cascaded manner between multiple logic blocks without restricting the frequencies of the respective pull signals. Additionally, the physical implementation of interfaces may involve substantially less complexity and latency than traditional FIFO interfaces.
Some representative embodiments are directed to interfaces that are compliant with a data pull flow control method. To illustrate an example of data pull flow control, reference is made to
Initially, data Ds is present on the data line. Pull assertion 211 only lasts one clock cycle and, accordingly, only one data element is taken. Specifically, pull assertion 211 occurs to obtain the data from the data line at rising edge 221 thereby causing data Ds to be replaced by data Ds+1. Pull assertion 212 lasts two clock cycles and causes data Ds+1 and Ds+2 to be taken at rising edges 222 and 223, respectively. Likewise, pull assertion 213 lasts three clock cycles and causes data Ds+3 through Ds+5 to be taken.
As seen in
Interface 500 comprises shift register 501 to provide a delay between the assertion of the PullR signal and the assertion of the PullL signal. Additionally, the delayed pull signal is used to control register element 400 and multiplexer 504 via lines 502 and 503 respectively. By using the delayed pull signal in this manner, interface 500 is operable to enable data elements to pass directly from the prior logic block to the subsequent block when the PullR signal is continuously asserted. Also, when the PullR signal transitions from being asserted to not being asserted, the delay ensures that a data element from the prior subsequent block will be immediately available upon the next assertion of the PullR signal. Specifically, the delayed pull signal causes an additional data element to be obtained from the prior logic block and stored in register element 400 until the next assertion of the PullR signal. Accordingly, the delay of the pull signal in conjunction with the operation of multiplexer 504 and register element 400 enables data pull flow control to occur in a cascaded manner without restricting the frequencies of the respective pull signals.
The PullR signal is initially asserted at time 601 and, hence, the logic block that is subsequent to interface 500 retrieves data element DN. The PullL signal is then asserted at the next clock cycle (time 602) due to the delay provided by shift register 501. At that time, multiplexer 504 outputs the value (DN+1) present on its other input (MUX1) which is the DataL signal. Specifically, control line 503 of multiplexer 504 receives the delayed pull signal thereby causing multiplexer 504 to output the value of its second input line. Accordingly, the DataR signal changes value to DN+1. At time 602, the value of register element 400 changes to the value (DN+1) of the DataL signal, because its clock enable signal is the delayed pull signal. Also, at time 602, the PullR signal is no longer asserted.
At time 603, the block preceding interface 500 makes the next data element available (the DataL signal changes to value DN+2). Due to the delay provided by shift register 501, the PullR signal is not asserted. Also, due to the delay provided by shift register 501, multiplexer 504 switches to its first input (MUX0) which is received from register element 400. Register element 400 outputs the value received in the previous cycle (DN+2). Also, because the clock enable signal is no longer provided to register element 400, register element 400 maintains its value and, hence, the DataL signal remains at a value of DN+2.
The effect of multiple cycle assertions of the PullR signal can been seen in reference of times 605-608. Interface 500 operates in substantially the same manner as previously described, except, upon the repetition of the assertion of the PullR signal, multiplexer 504 allows data to flow directly from the prior block to the subsequent block.
As shown in
Interface 800 (as shown in
Because of shift registers 501-1 through 501-4, there is a four clock cycle delay before the assertion of the Pullo signal and the availability of new data. Interface 800 comprises register elements 400-1 through 400-4, shift registers 501-5 through 501-8, look-up table 801, and multiplexer 802 to address the four cycles of delay. Register elements 400-1 through 400-4 enable four data elements to be stored between disjoint assertions of the Pullo signal to enable a data element to be immediately available when needed.
Depending upon the pattern of assertions of the Pullo signal, different patterns of register elements 400 will have valid data. For example, if the Pullo signal has been continuously asserted for a long time, only the output of shift register 501-2 will be associated with valid data. Alternatively, if the Pullo signal has not been asserted for a long time, all of registers elements 400-1 through 400-4 will have valid data. Shift registers 501-5 through 505-8 maintain a history of the recent states of the Pullo signal. The outputs of shift registers 501-5 through 505-8 are provided to look-up table 801. The purpose of look-up table 801 is to identify the proper location of data when the Pullo signal is asserted. Look-up table 801 may be implemented using table 900 shown in
In addition, some representative embodiments may provide an interface for “ambidextrous” interfaces. Ambidextrous interfaces generally refer to interfaces in which data flow control is communicated according to the coincidence of “data valid” signals (data is ready to the communicated) and “data requested” signals (pull signals). Interface 1000 shown in
The internal elements of interface 1000 operate in a similar manner to the internal elements of interface 800. Interface 1000 includes a plurality of register elements 400 (K+L) to hold data when appropriate and to enable data to pass through interface 1000 when appropriate. A subset of register elements 400 may be disposed on both sides of the interface plane between the source device and the sink device. Also, a subset of register elements 400 are coupled to multiplexer 1003. A plurality (K+L) of shift registers 501 buffer DRi signals 1007 and a subset of those shift registers 501 are coupled to binary weight computation logic 1001. From the outputs of the subset of shift registers 501, binary weight computation 1001 determines the location of the next valid data element and controls multiplexer 1003 accordingly. Additionally, a plurality (K+L) of shift registers 501 buffer DRi signals 1007 and a subset of shift registers 501 are coupled to multiplexer 1002. Also, binary weight computation 1001 controls multiplexer 1002 to provide values associated with DVo signal 1008.
Interface 1000 may be considered a general case from which other interfaces may be derived. Specifically, interfaces 500, 700, 800, 1100 and 1200 are all special cases of interface 1000. Also,
By implementing interfaces using delayed assertions of pull signals, some representative embodiments may provide a number of advantages. For example, data may continuously pass from a source block to a sink block when the pull signal is continuously asserted. Also, when the pull signal transitions from being asserted to not being asserted, the delay ensures that a data element from the source will be immediately available upon the next assertion of the pull signal. Specifically, the delayed pull signal causes one or several additional data elements to be obtained from the source block and stored in appropriate register element(s) until the next assertion of the pull signal. Also, by suitably controlling a multiplexer coupled to the register elements, data pull flow control may occur in a cascaded manner between multiple logic blocks without restricting the frequencies of the respective pull signals. Additionally, the physical implementation of interfaces may involve substantially less complexity and latency than traditional FIFO interfaces.