This application claims priority to GB Application No. 0624875.1 filed Dec. 13, 2006, the entire contents of which are incorporated herein by reference.
1. Field of the Invention
This invention relates to the field of data processing systems. More particularly, this invention relates to data transfers between initiators and recipients or masters and slaves.
2. Description of the Prior Art
Initiator and recipient devices, such as masters and slaves often operate at different frequencies, the master generally operating at a higher frequency than the slave. This can lead to problems when communicating data between the two devices. This problem is addressed by utilising a clock enable signal which basically acts to enable the input and output of the devices to ensure that data is only transmitted at a frequency governed by the clock enable signal. Thus, the frequency of this signal can be set to account for the lower frequency of the communicating devices and thereby ensure that the data communication is performed at a frequency that allows the lower frequency device to receive data at a rate it can cope with. In the AXI bus produced by ARM® only integer ratios of clock frequencies are allowed between the master and slave.
This severely limits possible frequencies that the slave can operate at. It can operate at the same frequency as the master or at this frequency divided by a factor of 2. This limitation in possible frequencies can be a limiting factor to some performance requirements.
It would be advantageous if more flexibility in clock ratios between the master and slaves could be allowed.
A first aspect of the present invention provides a data processing apparatus comprising at least one initiator operable to communicate with at least one recipient via a bus; said at least one initiator comprising an output port for sending data to said bus and an input port for receiving data from said bus; said data processing apparatus further comprising: an initiator clock signal generator, an initiator output enable signal generator and a initiator input enable signal generator, said initiator being clocked by said initiator clock signal; said output port being clocked by said initiator output enable signal such that said output port is operable to assert data to a write channel on said bus in response to said initiator output enable signal having a first predetermined level and said input port is operable to latch data received on a read channel on said bus in response to said initiator input enable signal having a second predetermined level; wherein said initiator output enable signal generator and initiator input enable signal generator are configured to output signals that are different to each other.
The provision of two enable signals allows intermediate clock ratios and therefore increases the flexibility of the system. A disadvantage is that there are now two additional signals required, however, the two enable signals are simple to generate and in the case of integer clock ratios the input clock enable signal can be made equal to the output clock enable signal and thus, there is backwards compatibility with previous systems having a single clock enable signal and integer frequency ratios.
In some embodiments said at least one recipient is clocked by a clock signal that is slower than said initiator clock signal by a half integer ratio.
The provision of two clock enable signals can easily and effectively support half integer clock signal ratios.
In some embodiments, said initiator output enable signal generator is arranged to generate a signal that has said first predetermined level during a triggering transition of a clock in said recipient and retains said first predetermined level for a clock cycle of said initiator clock.
If data is asserted on the write channel when the clock in the recipient transitions, then this data is valid for the recipient then. Furthermore, by retaining the value for an initiator clock cycle, the next time it becomes valid the initiator will be on a subsequent cycle with the next item of data. Thus, following these rules with the enable signals allows different initiator and recipient frequencies to communicate data.
In some embodiments, said initiator output enable signal is arranged to retain said first predetermined level for two initiator clock cycles where a second triggering transition of said recipient clock cycle occurs during said second initiator clock cycle and to only retain said first predetermined level for a single initiator clock cycle where a second triggering transition of said recipient clock does not occur during said second initiator clock cycle.
If data is to be written to the bus at a suitable rate for the recipient to be able to retrieve and process it, then the initiator output enable signal should take account of the recipient's clock. If the initiator output enable signal stays at the predetermined level allowing writes to the bus for two initiator cycles, then the recipient must transition twice in this time to be able to retrieve the two data items that are to be sent to the bus. Thus the initiator output enable signal is set to stay at the predetermined level for two initiator signals only if the recipient will transition a second time during this time. If not then the initiator output enable signal does not retain the value but transitions again to ensure that the data is asserted at the correct moment for the recipient to be able to receive it.
Although the first predetermined level could be either of the clock levels in some embodiments, said first predetermined level is a high level of said initiator output enable signal, said triggering transition is a rising edge of said recipient clock signal and said initiator clock cycle is from a rising edge to a rising edge.
In some embodiments said initiator input enable signal is arranged to provide a signal that transitions to a second predetermined level during each recipient clock cycle and retains said second predetermined level during a triggering transition of said initiator clock signal.
In order for each data item sent from the recipient to be received then the initiator input enable signal needs to have an enabling value for each clock cycle and needs to retain that value during a triggering transition of the initiator clock signal as this enables the value of that clock cycle to be latched into the initiator. By following such simple rules for the clock enable signals different recipient and initiator clock signals are made possible increasing the flexibility and performance of the system.
In some embodiments, said read enable clock is configured to attain said second predetermined level as close to a rising edge of said recipient as possible.
For some clock ratios, the initiator input enable signal can be asserted at different positions inside a recipient clock cycle, the only requirement being that the initiator input enable signal is valid for only one initiator clock cycle during the recipient clock cycle. In such cases, to make sure data from the recipient are stable, it is better to select to have the master input enable clock valid at the end of the recipient clock cycle where the timing allows such a choice. It should be noted that for a clock ratio of 3/2, there is no choice for the position of the initiator input enable signal, while for clock ratios such as 5/2 and 7/2 such a choice is possible.
In some embodiments, said first predetermined level and said second predetermined level are both the high level of the clock signal.
Depending on the design the recipient and initiator can be configured to react to either the high level or low level of the clock signal. The clock signal generators simply need to know which level they are triggered by and then they can be designed to produce the appropriate signal.
In some embodiments, said recipient is clocked by a clock signal that is an integer number of times said initiator clock and said input clock enable signal generator and said output clock enable signal generator are operable to output substantially identical clock enable signals.
The ability for the recipient and initiator to be able to operate with an integer ratio of clock signals, enables the device to be compatible with some conventional systems which have a single master/slave output enable signal and integer ratios of clock signals.
The above, and other objects, features and advantages of this invention will be apparent from the following detailed description of illustrative embodiments which is to be read in connection with the accompanying drawings.
In
The following
In the second slave clock cycle 2, D1 is output by the slave. In this clock cycle when the master clock goes high at the beginning of this cycle, inclken is low and thus no data is captured in the master. At the end of the slave clock cycle the master clock goes high again and at this point the inclken signal is high and thus D1 is captured by the master.
It should be noted that the capturing of data and the data being valid is shown as occurring slightly after the clock edges that trigger them as there is some delay in the system. These figures are schematic and a skilled person would appreciate that all systems have some delay and that this is not always shown in the figures for the sake of clarity. During the third slave clock cycle, D2 is captured in response to the master clock going high and inclken being high. Thus, as can be seen the data is latched into the master for each slave clock cycle although there is some delay.
Thus, it can be seen from
A further example of this is shown in
Although illustrative embodiments of the invention have been described in detail herein with reference to the accompanying drawings, it is to be understood that the invention is not limited to those precise embodiments, and that various changes and modifications can be effected therein by one skilled with the art without departing from the scope and spirit of the invention as defined by the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
0624875.1 | Dec 2006 | GB | national |
Number | Name | Date | Kind |
---|---|---|---|
5668982 | Davis | Sep 1997 | A |
5909563 | Jacobs | Jun 1999 | A |
5909701 | Jeddeloh | Jun 1999 | A |
6128748 | MacWilliams et al. | Oct 2000 | A |
6256692 | Yoda et al. | Jul 2001 | B1 |
6345330 | Chu | Feb 2002 | B2 |
6584536 | Deng | Jun 2003 | B1 |
6591294 | Kawasaki et al. | Jul 2003 | B2 |
6898726 | Lee | May 2005 | B1 |
7023836 | Badalucco et al. | Apr 2006 | B2 |
7089338 | Wooten et al. | Aug 2006 | B1 |
7219177 | Chang et al. | May 2007 | B2 |
7433972 | Kou | Oct 2008 | B2 |
7600143 | Neuman | Oct 2009 | B1 |
20010007136 | Tamura et al. | Jul 2001 | A1 |
20010007999 | Rasmussen et al. | Jul 2001 | A1 |
20010027503 | Yamato et al. | Oct 2001 | A1 |
20020083359 | Dow | Jun 2002 | A1 |
20020138709 | Ball et al. | Sep 2002 | A1 |
20020145919 | Lamb et al. | Oct 2002 | A1 |
20020162084 | Butts et al. | Oct 2002 | A1 |
20030014681 | McBride et al. | Jan 2003 | A1 |
20030097467 | Sano | May 2003 | A1 |
20030099138 | Kyung | May 2003 | A1 |
20030101299 | Kondo et al. | May 2003 | A1 |
20040064615 | Hammitt et al. | Apr 2004 | A1 |
20040105339 | Iwahashi et al. | Jun 2004 | A1 |
20040141391 | Lee et al. | Jul 2004 | A1 |
20040159546 | Zhang et al. | Aug 2004 | A1 |
20040193936 | Kelly | Sep 2004 | A1 |
20040221084 | Yates et al. | Nov 2004 | A1 |
20040230866 | Yates et al. | Nov 2004 | A1 |
20040234014 | Chen | Nov 2004 | A1 |
20050065745 | Jiang | Mar 2005 | A1 |
20050204077 | Kou | Sep 2005 | A1 |
20050262376 | McBain | Nov 2005 | A1 |
20050268130 | Naruse et al. | Dec 2005 | A1 |
20060038583 | Lim | Feb 2006 | A1 |
20060056257 | Origasa | Mar 2006 | A1 |
20060067156 | Ruckerbauer et al. | Mar 2006 | A1 |
20060106951 | Bains | May 2006 | A1 |
20070070669 | Tsern | Mar 2007 | A1 |
20070156995 | Kaburlasos | Jul 2007 | A1 |
20080059667 | Berenbaum et al. | Mar 2008 | A1 |
20080101147 | Amidi | May 2008 | A1 |
20090009212 | Brox | Jan 2009 | A1 |
20120089754 | Su et al. | Apr 2012 | A1 |
Number | Date | Country |
---|---|---|
1 058 121 | Dec 2000 | EP |
2 398 655 | Aug 2004 | GB |
7-306827 | Nov 1995 | JP |
Entry |
---|
First Office Action dated Jun. 24, 2010 for Chinese Application No. 2007103002140 and English translation. |
Number | Date | Country | |
---|---|---|---|
20080147921 A1 | Jun 2008 | US |