GB2339369A - Controlling timing of transfer requests within a data processing apparatus - Google Patents

Controlling timing of transfer requests within a data processing apparatus Download PDF

Info

Publication number
GB2339369A
GB2339369A GB9814924A GB9814924A GB2339369A GB 2339369 A GB2339369 A GB 2339369A GB 9814924 A GB9814924 A GB 9814924A GB 9814924 A GB9814924 A GB 9814924A GB 2339369 A GB2339369 A GB 2339369A
Authority
GB
United Kingdom
Prior art keywords
logic unit
bus
transfer request
data processing
clock cycle
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
GB9814924A
Other versions
GB9814924D0 (en
GB2339369B (en
Inventor
San Juan Martin Martin
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ARM Ltd
Original Assignee
ARM Ltd
Advanced Risc Machines Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ARM Ltd, Advanced Risc Machines Ltd filed Critical ARM Ltd
Priority to GB9814924A priority Critical patent/GB2339369B/en
Publication of GB9814924D0 publication Critical patent/GB9814924D0/en
Priority to US09/339,954 priority patent/US6418491B1/en
Priority to JP11194277A priority patent/JP2000112878A/en
Publication of GB2339369A publication Critical patent/GB2339369A/en
Application granted granted Critical
Publication of GB2339369B publication Critical patent/GB2339369B/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4204Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus
    • G06F13/4208Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus being a system bus, e.g. VME bus, Futurebus, Multibus

Description

2339369 P/4396.GB APPARATUS AND METHOD FOR CONTROLLING TIMING OF TRANSFER
REQUESTS WITHIN A DATA PROCESSING APPARATUS
Field of the Invention
The present invention relates to an apparatus and method for controlling timing of transfer requests within a data processing apparatus.
Description of the Prior Art
A data processing apparatus will typically have a number of logic units that are interconnected via a bus, with data being transferable between the logic units via the bus. To effect such a transfer, a first logic unit may output a transfer request on to the bus, this transfer request beingdestined for a second logic unit. The second logic unit will then retrieve the transfer request from the bus and perform an appropriate operation in order to process the transfer request. Logic units that are designed to initiate transfer requests can be referred to as "master" logic units, whilst logic units that are designed to be recipients of such transfer requests can be referred to as "slave" logic units.
The master logic unit initiating a transfer request must drive a number of transfer request signals on to the bus in order to sufficiently define the transfer request to enable the slave logic unit to perform the appropriate operation in response to the transfer request. Hence, the master logic unit will typically output various control signals, for example identifying the type of operation to be performed by the slave logic unit, (e.g. a read or a write operation), the type of transfer (e.g, with regards to addresses, whether the transfer is a sequential, or nonsequential transfer), the size of the access (e.g. word, byte), the operating mode of the master logic units (e.g. supervisor or user mode), etc. Further, the master logic unit will typically output an address signal identifying, the address at which the slave logic unit is to apply the operation.
It will be apparent that the master logic unit will require a certain amount of time to drive the necessary transfer request signals to a valid value on the bus, and that to ensure correct operation, the slave logic unit should not retrieve the signals from the bus, or at least not perform any operation required by the transfer request, P/4396.GB 2 until all of the necessary transfer request signals have been driven on the bus to the correct value by the master logic unit.
Generally a system clock is employed to control the frequency of operation of the various logic units within the data processing apparatus, and the slave logic unit will be arranged to sample the contents of the bus at a particular point in a clock cycle, for example the falling edge of the clock cycle. If all of the master logic units are able to drive the necessary transfer request signals on to the bus during the same clock cycle that they initiate a transfer request, then clearly the slave logic unit can sample the contents of the bus at the end of that clock cycle, and proceed to perform the necessary operation. However, if one or more of the master logic units is not able to output all of the necessary transfer request signals on to the bus during the same clock cycle that it initiates a transfer request, then it is important that the slave logic unit does not perform any operation on the basis of the contents of the bus at the end of that cycle, but rather waits until a subsequent clock cycle before reading the contents of the bus and performing the necessary operation.
Hence, prior art data processing apparatus have typically fallen into two categories. If all of the master logic units within the data processing apparatus are capable of issuing the necessary transfer request signals on to the bus during the same clock cycle that they initiate a transfer request, then the second logic unit is merely arranged to read the contents of the bus at the earliest opportunity, and perform the necessary operation. However, for data processing apparatus where at least one of the master logic units is not able for at least certain types of transfers to reliably provide the necessary transfer request signals on the bus at the end of the clock cycle in which the transfer request is initiated, then for those types of transfer requests a delay is typically inserted into the process, such that the slave logic unit does not read the contents of the bus until the end of the delay.
It will be appreciated that the insertion of a delay for certain types of bus transfers adversely affects the performance of the data processing apparatus. This is particularly true where the processing request happens to be being issued by a master logic unit that can provide the necessary signals on the bus during the same clock cycle that the transfer request is initiated, since the delay is applied irrespective of the P/4396.GB 3 master logic unit issuing the transfer request. In effect, the performance of all of the master logic units is restricted by the performance of the slowest master logic unit in the data processing apparatus.
Further, the above approach can unnecessarily affect the performance of even the slowest logic unit in the data processing apparatus in cases where its signal timing improves. One example of this is when the system is run at a lower clock frequency than originally designed, and, as a result of this, the original timing constraints z:1 disappear.
It is hence an object of the present invention to provide an improved technique for controlling timing of transfer requests within a data processing apparatus.
Summary of the Invention
Viewed from a first aspect, the present invention provides a data processing apparatus, comprising: a bus for interconnecting a number of logic units, data being transferable between the logic units via the bus; a first logic unit for issuing onto a 1 4:1 bus a transfer request and a type signal indicating the type of the transfer request; a second logic unit for receiving the transfer request from the bus and performing an operation in response to the transfer request; the first logic unit being arranged to encode within the type signal a timing indication used to control the timing of the receipt of the transfer request by the second logic unit.
In accordance with the present invention, when the first logic unit issues on to the bus a transfer request, and a type signal indicating the type of the transfer request, it is also arranged to encode within the type signal a timing indication used to control the timing of the receipt of the transfer request by the second logic unit.
Hence, if the first logic unit is able to issue the necessary transfer request signals on to the bus relatively quickly, for example as compared with other logic units within the data processing apparatus, then this can be reflected within the timing indication encoded within the type signal, and can be used to avoid any unnecessary delay in the receipt of the transfer request by the second logic unit. Similarly, if the first logic unit cannot issue the necessary transfer request signals quite so quickly, this can also be reflected within the timing indication encoded within the type signal, and can be used to ensure that an appropriate delay occurs before the transfer request is received P/4396.GB 4 from the bus by the second logic unit.
By this approach, the performance of the data processing apparatus can be increased, since the performance of transfer requests is no longer restricted by the performance of the slowest logic unit that may initiate a transfer request. Instead, the timing of the transfer request can be governed by the actual performance of the logic unit issuing the transfer request, and therefore the data processing apparatus can take advantage of the performance increase available when logic units drive the necessary transfer request signals on to the bus relatively quickly, and hence the standard delay typically inserted by prior art data processing apparatus is not required.
Further, in accordance with the present invention, the performance loss that occurs in prior art systems when sicrnal timing improves under specific circumstances can also be avoided. For example, if the system is run at a lower clock frequency than originally designed, for example as may occur during testing, then a particular logic unit that might normally require a delay to be inserted when it issues a transfer request may no longer need that delay to be inserted because of the reduced clock frequency, and this can be reflected in the timing indication encoded within the type signal issued by that logic unit.
The second logic unit may be arranged to receive the type signal directly, and to determine from the timing indication when to receive the transfer request from the bus. However, in preferred embodiments, the data processing apparatus further comprises a decoder for asserting a select signal to the second logic unit to cause the second logic unit to read the transfer request from the bus, the decoder being arranged to receive the type signal from the bus and to determine from the timing indication when to assert the select signal to the second logic unit.
Hence, in preferred embodiments, the decoder determines from the transfer request signals issued by the first logic unit which logic unit should receive the transfer request, and from the timing indication encoded within -the type signal determines when to inform that logic unit that it should read the transfer request from the bus.
In preferred embodiments, the data processing apparatus further comprises a clock generator for generating a clock signal having a predetermined clock cycle, the P/4396.GB 5 timing indication encoded in the type signal indicating in which clock cycle the transfer request should be received from the bus by the second logic unit.
Preferably, the timing indication identifies whether the transfer request is available to be received from the bus by the second logic unit during the same clock 5 cycle that the type signal is generated by the first logic unit, or in a predetermined "n subsequent clock cycle.
It will be appreciated by those skilled in the art that there are various types of transfer request which may be issued by the first logic unit, and that the timing constraints may be different for different types of transfer request. Certain types of transfer request can inherently be performed quicker than others. For example, burst transfers to sequential addresses, commonly known as sequential transfers, are typically relatively fast, because the siornals output on to the bus are generally related to the signals of the previous transfer and hence little change to the signals is often Z:' 4D required. In contrast, certain types of transfer request, such as non- sequential transfers, in which the address of the transfer is unrelated to the address of the previous transfer, are often relatively slow, since the various transfer request signals to be issued on to the bus are generally unrelated to those of the previous transfer.
- In preferred embodiments, if the transfer request is a non-sequential transfer and the first logic unit is able to drive on to the bus during the same clock cycle that the type signal is generated the transfer request signals required by the second logic unit, the timing indication encoded into the type signal indicates that the transfer request is available to be received from the bus by the second logic unit during the same clock cycle that the type signal is generated by the first logic unit. However, if the transfer request is a non-sequential transfer and the first logic unit is able to drive on to the bus by the predetermined subsequent clock cycle the transfer request signals required by the second logic unit, then in preferred embodiments the timing indication encoded into the type signal indicates that the transfer request is available to be received from the bus by the second logic unit during the predetermined subsequent clock cycle.
In preferred embodiments, the data processing apparatus further comprises:
a decoder for asserting a select signal to the second logic unit to cause the second P/4396.GB 6 logic unit to read the transfer request from the bus, the decoder being arranged to receive the type signal from the bus; if the timing-, indication indicates that the transfer request is available to be received from the bus by the second logic unit during the same clock cycle that the type signal is generated by the first logic unit, then the decoder being arranged to assert the select signal without delay; and if the timing indication indicates that the transfer request is available to be received from the bus by the second logic unit during the predetermined subsequent clock cycle, then the decoder being arranged to delay asserting the select signal until said predetermined subsequent clock cycle.
The predetermined subsequent clock cycle can be chosen to be any subsequent clock cycle, and will depend on factors such as the operating speed of the logic unit issuing the transfer request. However, in preferred embodiments the predetermined subsequent clock cycle is the clock cycle immediately following the clock cycle in which the type signal is generated by the first logic unit.
Typically, the second logic unit is arranged to read the transfer request from the bus at a predetermined point in the clock cycle indicated by the timing indication. Hence, for example, the second logic unit may be arranged to sample the contents of the bus during the failing edge of the clock, and hence will read the transfer request from the bus during the falling edge of the clock in the clock cycle indicated by the timing indication.
It will be appreciated by those skilled in the art that the format of the type signal can be varied as required, without departing from the scope of the present invention. However, in preferred embodiments the type signal is a two-bit signal, and the value of the two bits provides the timing indication in addition to identifying the type of the transfer request.
Viewed from a second aspect the present invention provides a method of controlling timing of transfer requests employed in a data processing apparatus to transfer data between logic units interconnected by a bus, comprising the steps of: issuing onto the bus from a first logic unit a transfer request and a type signal indicating the type of the transfer request; receiving at a second logic unit the transfer request from the bus and performing an operation in response to the transfer request; P/4396.GB 7 and encoding within the type signal a timing indication used to control the timing of the receipt of the transfer request by the second logic unit.
Brief Description of -the Drawings
The present invention will be described further, by way of example only, with reference to preferred embodiments thereof as illustrated in the accompanying drawings, in which:
Figure 1 is a block diagram illustrating a data processing apparatus in accordance with preferred embodiments of the present invention; Figure 2 is a block diagram illustrating in more detail a portion of the data processing apparatus illustrated in Figure 1; Figure 3 is a timing diagram illustrating a non-sequential transfer with a decode cycle in accordance with preferred embodiments of the present invention; Figure 4 is a timing diagram illustrating a non-sequential transfer without a decode cycle in accordance with preferred embodiments of the present invention.
Description of a Preferred Embodiment
Figure I illustrates a data processing apparatus in accordance with the preferred embodiment of the present invention, where the data processing apparatus takes the form of a microcontroller chip 10. The chip 10 has a system bus 110 and a peripheral bus 195 connected via a bridge circuit 170. In accordance with preferred embodiments of the present invention these buses operate in accordance with the "Advanced Microcontroller Bus Architecture" (AMBA) specification developed by ARM Limited. The AMBA specification defines an on-chip communication standard for designing high performance 32-bit and 16-bit embedded microcontrolIers, with the system bus 110 being used for high performance system modules, whilst the peripheral bus is used for low power peripheral devices. The high performance system bus 110 is able to sustain the external memory bandwidth, with the CPU and other Direct Memory Access devices residing on the system bus, whilst a bridge circuit 170 connects the system bus to a narrower peripheral bus 195 on which the low bandwidth peripheral devices are located. The bridge circuit 170 performs the necessary protocol conversion between the system bus 110 and the peripheral bus 195.
P/4396.GB It will be appreciated by those skilled in the art that there is no requirement for a data processing apparatus to employ the AMBA specification in order to benefit from the present invention, but rather the discussion of a chip employing the AMBA specification is provided herein merely to illustrate an example of a chip in which the 5 present invention may be employed.
The chip 10 has a number of master logic units connected to the system bus 110, namely a test controller (referred to hereafter as a Test Interface Controller (TIQ) 100, a CPU 140, a coprocessor 145, a DMA controller 150, and a Power Management Unit (PMU) 155. Only one of the master logic units may have access to the system bus at any particular instance in time, and hence an arbiter 120 is provided to control access to the system bus 110 by the various master logic units. When a master logic unit wishes to have access to the system bus 110, it issues a bus request signal to the arbiter 120. If only one bus request signal is received by the C.
arbiter 120 at any particular instance in time, it will grant access to the master logic unit that issued that bus request signal. However, if more than one bus request signal is received by the arbiter at any particular instance in time, the arbiter is arranged to apply predetermined priority criteria in order to determine which master logic unit should have access to the system bus 110. Of all of the master logic units requesting access to the bus, the arbiter 120 is arranged to grant access to the master logic unit having the highest priority. In preferred embodiments, the relative priorities of each master logic unit is as follows, with the highest priority master logic unit being listed first: 1 Test Interface Controller (TIC) 100 2 DMA controller 150 25 3 Power Management Unit (PMU) 155 4 CPU 140 5 Coprocessor 145. Based on this predetermined priority criteria, it will be appreciated that the TIC 100 will always get access to the bus when request. ing it, since it is the highest priority master logic unit. However, the TIC 100 will only request access to the bus when a test process is being, performed, and hence during normal operation (when no P/4396.GB 9 testing is being performed), the TIC 100 will not hinder access to the system bus 110 by the other master logic units.
In addition to the master logic units, one or more slave logic units may be connected to the system bus 110. For the sake of clarity, only one slave logic unit, namely the Random Access Memory (RAM) 160 is illustrated in Figure 1. When a transfer request is issued to a slave locic unit, an address will be output on the system bus 110, and this will be decoded by the decoder logic 165 in order to determine which slave logic unit is to handle the transfer request. The decoder will then notify the appropriate slave logic unit accordingly.
A number of peripheral devices may be connected to the peripheral bus 195.
Two examples of such peripheral devices are a "Universal Asynchronous Receive and Transmit" (UART) logic unit 180 for receiving and transmitting serial data, and an input/output port 185. Further peripheral devices may also be added, as indicated by the dotted boxes 190 in Figure 1.
The system bus 110 is also connected to an external bus 115 via an external bus interface 130. In preferred embodiments the external bus 115 is a 32- bit vector bus. When performing testing, the external bus interface 130 is used as a test access port, with test data and addresses being input over the external bus 115, whilst the TIC 100 controls the external bus interface 130 over path 125 dependent upon external control signals received by the TIC over path 105.
Further, a clock generator 175 is provided to control the frequency of operation of the various logic units connected to the system bus 110. Hence, the timing of transfer request signals output by a master logic unit is determined by the clock frequency of the clock generator 175.
Figure 2 is a block diagram. illustrating in more detail a portion of the data processing apparatus illustrated in Figure 1. The system bus 110 illustrated in Figure I can actually be considered as three separate buses, namely a control bus 230, an address bus 240 and a data bus 250. When a master logic unit 200, which in the normal mode of operation may be in this example the CPU 140, the coprocessor 145,' the DMA controller 150 or the PMU 155, wishes to issue a transfer request to a slave logic unit 210, for example the RAM 160, then having requested access to the bus 0 P/4396.GB 10 and having been granted access by the arbiter 120, it will output various control signals on to the control bus 230, along with an address output on to the address bus 240. The control signals output on to the control bus include information such as whether the address corresponds to a read or a write operation, the type of transfer (e.g. sequential, non-sequential), the size of the access (e.g. word, byte), the operating mode of the master logic unit (e.g. supervisor or user mode), etc. If the operation is a read operation, the address will identify an address from which a data value (which may be an instruction, or data used by an instruction) should be read, and if the operation is a write operation the address to which a data value to be 10 output by the master logic unit on the data bus 250 should be written.
The control and address signals output by the master logic unit 200 on the control bus 230 and address bus 240, respectively, are read by the decoder 165, which determines from the signals which slave logic unit should handle the transfer C.
request, and the type of the transfer request. For example, if the address on the address bus 240 refers to an address within the RAM 160, then the decoder 165 will determine that the RAM should handle the transfer request. Having determined which slave logic unit 210 should handle the transfer request, a select signal driver 260 within the decoder 165 is arranged to output a select signal 220 to the appropriate slave logic unit 210 to cause that slave logic unit 210 to read the transfer request signals from the bus. In preferred embodiments, this involves the selected slave logic unit 210 reading the address and control signals from the address bus 240 and control bus 230, respectively. The slave logic unit 210 will then perform the necessary operation, such as writing a data value output on the data bus 250 by the master logic unit 200 to the identified address in the event of a write operation, or reading the data value stored at the identified address in the event of a read operation. In the event of a read operation, the data value read from the identified address is then output by the slave logic unit 210 on to the data bus 250, and subsequently read from the data bus 250 by the master logic unit 200.
In preferred embodiments, the system bus 110 operates in accordance with the 30 AMBA specification, and in accordance with the AMBA specification, one of the control signals output on to the control bus 230 by the master logic unit 200 is
P/4396. GB 11 referred to as a BTRAN signal, and bits 1 and 0 of this signal indicate the type of transfer the master logic unit 200 is about to perform. Traditionally, the transfer I types indicated by the particular BTRAN [1:0] signal values are as follows:
BTRAN [1:0] TRANSFER TYPE 00 Address-only 01 Reserved Non-sequential 11 Sequential The transfer type information relates fundamentally to the change of address and control signals in relation to the previous transfer, and this also affects the timing of those signals. In a sequential transfer, the address and control signals values are very similar to the values associated with the previous transfer, since the address will generally be the immediately subsequent address to the one identified in the previous transfer, and the control signals will remain unchanged.
Accordingly, for sequential transfers, the necessary transfer request signals (the control and address signals in preferred embodiments) can be output relatively quickly, typically within the same clock cycle that the transfer request is initiated by the master logic unit 200. Hence, the decoder 165 can cause the select signal to be issued to the appropriate slave logic unit 210 without delay since all of the necessary transfer request signals required by the slave logic unit 210 to process the transfer request will be available.
In an address-only transfer, which is used solely to keep the system bus driven, and not to cause any actual transfer to take place, the actual address output on the address bus is of no significance, and hence typically the address will not change from that of the previous transfer. Since an address-only transfer does not require any action by a slave logic unit, the decoder 165 does not need to issue a select signal, and so the timing issue is not relevant.
However, for non-sequential transfers, the address and control signal values I P/4396.GB 12 are typically unrelated to those of the previous transfer, and hence the master logic unit will generally take longer to drive the necessary transfer request signals to a valid value on the bus. Dependent on the master logic unit, the necessary transfer request signals may not be available to the slave logic unit 210 during the same clock cycle that the transfer request is initiated, and in such circumstances, the decoder 165 is required to wait for an extra clock cycle (hereafter referred to as a decode cycle) before issuing the select signal to the slave logic unit 210. By this approach, it can be ensured that the slave logic unit 210 does not read the contents of the bus before the required control and address signals have been driven onto the bus to a valid value by the master logic unit 200.
In a typical prior art data processing apparatus, if any of the master logic units is unable to reliably provide the necessary transfer request signals for a nonsequential transfer during, the same clock cycle that the transfer request is initiated, then the decoder 165 is arranged to insert the decode cycle every time a non- sequential transfer is indicated by the BTRAN [1:01 signal. This occurs irrespective of the actual master logic unit 200 initiating the non- sequential transfer, and hence, although ensuring correct handling of the transfer requests, adversely affects the overall performance of the data processing apparatus. In effect, the performance of all of the master logic units is restricted by the performance of the slowest master logic unit in the data processing apparatus.
Further, this approach can unnecessarily affect the performance of even the slowest logic unit in the data processing apparatus in cases where its signal timing improves. One example of this is when the system is run at a lower clock frequency than originally designed, such as may occur during testing, and as a result of this, the original timing constraints disappear.
In preferred embodiments of the present invention, this problem is overcome by encoding the signal identifying the particular transfer type with a timing indication that is used to control the timing of the receipt of the transfer request by the slave logic unit 210. In particular, in preferred embodiments, this encoding is applied to non-sequential transfers, since these are the transfer type which in preferred embodiments can require insertion of the decode cycle. P/4396.GB 13 Hence, in accordance with preferred embodiments of the
present invention, the following meanings are assigned to particular BTRAN [1:0] signal values:
BTRAN [1:0] TRANSFER TYPE TIMING ENCODING 00 Address-only Irrelevant 01 Non-sequential, Good timing Non-decode Non-sequential, Poor timing Decode 11 Sequential Good timing As mentioned earlier, address-only transfers are merely used to keep the system bus driven, and hence the timing is irrelevant, since the decoder will not be asserting a select signal to any slave logic unit. Further, as mentioned earlier, sequential transfers typically have good timing, and do not require the insertion of a decode cycle. However, for non- sequential transfers, the encoding in accordance with preferred embodiments provides two different BTRAN [1:0] signals. If the BTRAN [1:0] signal is 01, then this indicates to the decoder 165 that the transfer is a non-sequential transfer, but that the master logic unit is able to output the necessary transfer request signals onto the bus during e same clock th cycle that the transfer request is initiated. Hence, a decode cycle is not required, and the decoder 165 can send a select signal to the appropriate slave logic unit 210 without delay. However, a BTRAN [1:0] signal having a value of 10 indicates that the transfer is a non-sequential transfer, but that the necessary transfer request signals will not be available during the same clock cycle that the transfer request is initiated. Accordingly, the decoder 165 interprets a BTRAN [1:0] signal of 10 as a requirement to insert a decode cycle prior to asserting the select signal to the appropriate slave logic unit 210.
The advantace of this type of encodina is that the data processing apparatus does not need to be constrained to either a decode cycle scheme or a no-decode P/4396.GB 14 cycle scheme, since both implementations can co-exist in the same design, and therefore the performance of the data processing apparatus can be enhanced by taking into account the singularities of each master logic unit.
Further, the design of the decoder can now be standardised, since there is 5 no need to distinguish between a "decoder with decode cycles" design, and a "decoder without decode cycles" design.
Hence, master logic units such as the fast DMA unit 150, and the TIC 100 can encode non-sequential transfers with a BTRAN [1:0] signal of 01, thereby indicating that a decode cycle is not required, whilst slower master logic units such as the processor 140 can keep the original non-sequential BTRAN [1:0] signal of 10, but this now consciously mandating the insertion of a decode cycle by the decoder 165.
It will be appreciated that the above technique also allows for design of the master logic unit to include a mechanism for moving from one nonsequential transfer encoding to another dependent on various factors, for example clock speed. Therefore, if the final design is to be run at half the original frequency, then all of the master logic units could be programmed to encode a non- sequential transfer with a BTRAN [1:0] signal of 01, thereby removing the requirement for a decode cycle in all cases.
Figures 3 and 4 are timing diagrams illustrating the relative timing of various signals within the data processing apparatus, dependent on the values of the BTRAN [1:0] signal. If the BTRAN [1:0] signal has a value 10, thereby indicating a non-sequential transfer that requires a decode cycle, the timing of the relevant signals is indicated by the timing diagram of Figure 3. Between points 0 and 1 of the clock cycle, the decoder 165 samples the BTRAN [1:0] signal, which in this case has a value of 10. This value is chosen by the master logic unit since the control and address sianals will not become valid between points 0 and 1, but rather between points 2 and 3 illustrated in Figure 3. Accordingly, the decoder determines that a decode cycle should be inserted before driving the select signal, and hence the select sianal is not asserted at this time.
On the falling edge of the clock cycle, ie. at point 1 indicated in Figure 3, P/4396.GB 15 the slave logic unit samples the select signal, but since the select signal is not asserted, does not read the contents of the bus. With reference to the address and control signals, the shaded region indicates a period of time during-, which the address and control signals are not valid, but rather are in a state of transition.
Hence, at point 1, it can be seen that the address and control signals are not valid, and hence it would be inappropriate for the slave logic unit to sample those signals at the falling edge of the clock identified by point 1 in Figure 3.
Between points 2 and 3 of the next clock cycle, the select signal is asserted by the decoder, since the decode cycle has now been inserted. Hence, on the falling edge of the clock cycle, as identified by point 3 in Figure 3, the slave logic unit samples the select signal, which is now asserted, and hence samples the contents of the bus. This will involve the slave logic unit reading the address and control signals from the bus.
During the next clock cycle, ie. between points 3 and 5 in Figure 3, the slave logic unit will now perform the necessary read or write operation, and the transfer process will then complete at point 5 identified in Figure 3. In the event of a read operation, the master logic unit will be arranged to read the contents of the data bus on the falling edge of the clock cycle indicated by point 5 in Figure 3, by which time the slave logic unit will have output the necessary read data onto the data bus. In the event of a write operation, the slave logic unit will read at point 5 the write data signal from the bus and store that data at the selected address. A new bus transfer request can then begin.
Since the transfer request completes at point 5, the BTRAN [1:01 signal issued between points 4 and 5 will define the transfer type of the next transfer.
The value of the BTRAN [1:0] signal issued between points 2 and 3 is not relevant in preferred embodiments, since the BTRAN [1:0] signal is only sampled by the decoder 165 at the start of a transfer. Hence, typically, the BTRAN [1:0] signal issued between points 2 and 3 will be the same as the one issued between points 0 and 1, and so will have a value 10.
Figure 4 is a timing diagram illustrating the relative timing of the signals I Z) 1 In when the BTRAN [1:0] signal has a value of 01, this value being chosen by the C> P/4396.GB 16 master logic unit to indicate that the address and control signals will become valid between points 0 and I illustrated in Figure 4. Therefore the value 01 indicates to the decoder a non-sequential transfer where no decode cycle is required.
As illustrated in Figure 4, between points 0 and 1, the address and control signals become valid. Further, the decoder samples the BTRAN [1:0] signal, and determines that no decode cycle is required. Accordingly, the select sicrnal is asserted. Hence, on the falling edge of the clock as indicated by point 1 in Figure 4, the slave logic unit samples the select signal, and given that the select signal is asserted, samples the address and control signals from the bus.
The operation that the slave logic unit needs to perform is then carried out during the clock cycle between points I and 3 indicated in Figure 4, and the process completes at point 3, ie. on the falling edge of that clock cycle. In the event of a read operation, the master logic unit is arranged to read the contents of the data bus on the falling edge of the clock cycle indicated by point 3 in Figure 4, and thereafter the read data is removed from the bus. In the event of a write operation, the slave logic unit will read at point 3 the write data signal from the bus and store that data at the selected address. A new bus transfer request can then begin. Since the transfer request completes at point 3, the BTRAN [1:0] signal issued between points 2 and 3 will define the transfer type of the next transfer.
In accordance with the above described technique, overall system performance can be improved at both maximum operating frequency, and at lower frequencies, whilst providing a generic approach for tuning the timing of transfer requests. It should be noted that whilst the preferred embodiment of the present invention has been described with reference to the AMBA specification, and in particular with reference to encoding of the BTRAN [1:0] signal, the data processing apparatus need not employ the AMBA specification, and the benefits of the present invention can be provided within any data processing system by encoding a signal identifying a particular action with information that also infers timing.
Although a particular embodiment has been described herein, it will be appreciated that the invention is not limited thereto and that many modifications P/4396.GB 17 and additions thereto may be made within the scope of the invention. For example, various combinations of the features of the following dependent claims can be made with the features of the independent claims without departing from the scope of the present invention.
P/4396.GB 18

Claims (14)

1. A data processing apparatus, comprising: a bus for interconnecting a number of logic units, data being transferable between the logic units via the bus; a first logic unit for issuing onto a bus a transfer request and a type signal indicating the type of the transfer request; a second logic unit for receiving the transfer request from the bus and performing an operation in response to the transfer request; the first logic unit being arranged to encode within the type signal a timing indication used to control the timing of the receipt of the transfer request by the second logic unit.
2. A data processing apparatus as claimed in Claim 1, further comprising a decoder for asserting a select signal to the second logic unit to cause the second logic unit to read the transfer request from the bus, the decoder being arranged to receive the type signal from the bus and to determine from the timing indication when to assert the select signal to the second logic unit.
Z.
3. A data processing apparatus as claimed in Claim 1 or Claim 2, further comprising: a clock generator for generating a clock signal having a predetermined clock cycle, the timing indication encoded in the type signal indicating in which clock cycle the transfer request should be received from the bus by the second logic 25 unit.
4. A data processing apparatus as claimed in Claim 3, wherein the timing indication identifies whether the transfer request is available to be received from the bus by the second logic unit during the same clock cycle that the type signal is 4D 2enerated by the first logic unit, or in a predetermined subsequent clock cycle.
P/4396.GB 19
5. A data processing apparatus as claimed in Claim 4, wherein the transfer request is a non-sequential transfer and the first logic unit is able to drive onto the bus during the same clock cycle that the type signal is generated the transfer request signals required by the second logic unit, the timing indication encoded into the type signal indicating that the transfer request is available to be received from the bus by the second logic unit during the same clock cycle that the type siornal is generated by the first logic unit.
6. A data processing apparatus as claimed in Claim 4, wherein the transfer request is a non-sequential transfer and the first logic unit is able to drive onto the bus by the predetermined subsequent clock cycle the transfer request signals required by the second logic unit, the timing indication encoded into the type signal indicating that the transfer request is available to be received from the bus by the second logic unit during, the predetermined subsequent clock cycle.
7. A data processing apparatus as claimed in Claim 5 or Claim 6, further comprising: a decoder for asserting a select signal to the second logic unit to cause the second logic unit to read the transfer request from the bus, the decoder being arranged to receive the type signal from the bus; if the timing indication indicates that the transfer request is available to be received from the bus by the second logic unit during the same clock cycle that the type signal is generated by the first logic unit, then the decoder being arranged to assert the select signal without delay; and if the timing indication indicates that the transfer request is available to be received from the bus by the second logic unit during the predetermined subsequent clock cycle, then the decoder being arranged to delay asserting, the select signal until said predetermined subsequent clock cycle.
8. A data processing apparatus as claimed in any of claims 4 to 7, wherein the predetermined subsequent clock cycle is the clock cycle immediately following the P/4396.GB 20 clock cycle in which the type signal is generated by the first logic unit.
Z)
9. A data processing apparatus as claimed in any of claims 3 to 8, wherein the second logic unit is arranged to read the transfer request from the bus at a 5 predetermined point in the clock cycle indicated by the timing indication.
10. A data processing apparatus as claimed in any preceding claim, wherein the type signal is a two-bit signal, and the value of the two bits provides the timing indication in addition to identifying the type of the transfer request.
11. A method of controlling timing of transfer requests employed in a data processing apparatus to transfer data between logic units interconnected by a bus, comprising the steps of: issuing onto the bus from a first logic unit a transfer request and a type signal indicating the type of the transfer request; receiving at a second logic unit the transfer request from the bus and performing an operation in response to the transfer request; and encoding within the type signal a timing indication used to control the timing of ZD the receipt of the transfer request by the second logic unit.
12. A method as claimed in Claim 11, further comprising the steps of: employing a decoder to assert a select signal to the second logic unit to cause the second logic unit to read the transfer request from the bus; and arranging the decoder to receive the type signal from the bus and to determine from the timing indication when to assert the select signal to.the second logic unit.
13. A data processing apparatus, substantially as hereinbefore described with reference to the accompanying drawings.
14. A method of controlling timing of transfer requests in a data processing I apparatus, substantially as hereinbefore described with reference to the P/4396.GB 21 accompanying drawings.
I
GB9814924A 1998-07-09 1998-07-09 Apparatus and method for controlling timing of transfer requests within a data processing apparatus Expired - Lifetime GB2339369B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
GB9814924A GB2339369B (en) 1998-07-09 1998-07-09 Apparatus and method for controlling timing of transfer requests within a data processing apparatus
US09/339,954 US6418491B1 (en) 1998-07-09 1999-06-25 Apparatus and method for controlling timing of transfer requests within a data processing apparatus
JP11194277A JP2000112878A (en) 1998-07-09 1999-07-08 Device and method for controlling timing of transfer request in data processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
GB9814924A GB2339369B (en) 1998-07-09 1998-07-09 Apparatus and method for controlling timing of transfer requests within a data processing apparatus

Publications (3)

Publication Number Publication Date
GB9814924D0 GB9814924D0 (en) 1998-09-09
GB2339369A true GB2339369A (en) 2000-01-19
GB2339369B GB2339369B (en) 2003-06-18

Family

ID=10835258

Family Applications (1)

Application Number Title Priority Date Filing Date
GB9814924A Expired - Lifetime GB2339369B (en) 1998-07-09 1998-07-09 Apparatus and method for controlling timing of transfer requests within a data processing apparatus

Country Status (3)

Country Link
US (1) US6418491B1 (en)
JP (1) JP2000112878A (en)
GB (1) GB2339369B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7500042B2 (en) 2002-02-05 2009-03-03 Oki Semiconductor Co., Ltd. Access control device for bus bridge circuit and method for controlling the same

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6678767B1 (en) * 2000-10-06 2004-01-13 Broadcom Corp Bus sampling on one edge of a clock signal and driving on another edge
US6816932B2 (en) * 2000-10-06 2004-11-09 Broadcom Corporation Bus precharge during a phase of a clock signal to eliminate idle clock cycle
JP2006059303A (en) * 2004-08-24 2006-03-02 Oki Electric Ind Co Ltd Computer system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0463775A2 (en) * 1990-06-25 1992-01-02 International Business Machines Corporation Multiple speed expansion card
US5548787A (en) * 1992-10-27 1996-08-20 Nec Corporation Bus cycle timing control circuit having bus cycle enable/disable signal dictated by count means using comparison of predetermined and destination addresses for initial count
EP0797152A1 (en) * 1996-03-22 1997-09-24 Matsushita Electric Industrial Co., Ltd. Single-chip microcomputer with memory controller
EP0806729A1 (en) * 1996-05-09 1997-11-12 Motorola, Inc. Method and apparatus for determining wait states on a per cycle basis in a data processing system
US5694614A (en) * 1995-02-15 1997-12-02 Ast Research, Inc. Minimum latency bus interface circuit with reduced I/O pin count through multi-mode operation

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3864578A (en) * 1973-12-26 1975-02-04 Texas Instruments Inc Multiplex system for a vehicle
US5101347A (en) * 1988-11-16 1992-03-31 National Semiconductor Corporation System for reducing skew in the parallel transmission of multi-bit data slices
JPH03167649A (en) * 1989-11-28 1991-07-19 Nec Corp Wait cycle controller
CA2043493C (en) * 1990-10-05 1997-04-01 Ricky C. Hetherington Hierarchical integrated circuit cache memory
US5191653A (en) * 1990-12-28 1993-03-02 Apple Computer, Inc. Io adapter for system and io buses having different protocols and speeds
US5371863A (en) * 1991-05-30 1994-12-06 Tandem Computers Incorporated High speed processor bus extension
US5392422A (en) * 1992-06-26 1995-02-21 Sun Microsystems, Inc. Source synchronized metastable free bus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0463775A2 (en) * 1990-06-25 1992-01-02 International Business Machines Corporation Multiple speed expansion card
US5548787A (en) * 1992-10-27 1996-08-20 Nec Corporation Bus cycle timing control circuit having bus cycle enable/disable signal dictated by count means using comparison of predetermined and destination addresses for initial count
US5694614A (en) * 1995-02-15 1997-12-02 Ast Research, Inc. Minimum latency bus interface circuit with reduced I/O pin count through multi-mode operation
EP0797152A1 (en) * 1996-03-22 1997-09-24 Matsushita Electric Industrial Co., Ltd. Single-chip microcomputer with memory controller
EP0806729A1 (en) * 1996-05-09 1997-11-12 Motorola, Inc. Method and apparatus for determining wait states on a per cycle basis in a data processing system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7500042B2 (en) 2002-02-05 2009-03-03 Oki Semiconductor Co., Ltd. Access control device for bus bridge circuit and method for controlling the same

Also Published As

Publication number Publication date
US6418491B1 (en) 2002-07-09
GB9814924D0 (en) 1998-09-09
GB2339369B (en) 2003-06-18
JP2000112878A (en) 2000-04-21

Similar Documents

Publication Publication Date Title
EP0412666B1 (en) A read/write memory
US5587957A (en) Circuit for sharing a memory of a microcontroller with an external device
US5440751A (en) Burst data transfer to single cycle data transfer conversion and strobe signal conversion
US4999769A (en) System with plural clocks for bidirectional information exchange between DMA controller and I/O devices via DMA bus
US6301632B1 (en) Direct memory access system and method to bridge PCI bus protocols and hitachi SH4 protocols
US5838995A (en) System and method for high frequency operation of I/O bus
US5828891A (en) Multilevel interrupt device
US6085261A (en) Method and apparatus for burst protocol in a data processing system
US4757439A (en) Memory bus architecture
US5710939A (en) Bidirectional parallel data port having multiple data transfer rates, master, and slave operation modes, and selective data transfer termination
US7096290B2 (en) On-chip high speed data interface
US5968144A (en) System for supporting DMA I/O device using PCI bus and PCI-PCI bridge comprising programmable DMA controller for request arbitration and storing data transfer information
USRE40261E1 (en) Apparatus and method of partially transferring data through bus and bus master control device
EP0784278B1 (en) Interface architecture for connection to a peripheral component interconnect bus
US6418491B1 (en) Apparatus and method for controlling timing of transfer requests within a data processing apparatus
EP0473059B1 (en) Communication control system
US5974488A (en) Method and apparatus for transmission of signals over a shared line
US5247640A (en) Dual access control system including plural magnetic disk control units and contention control circuitry
KR100354933B1 (en) Slave Storage Device Access Method and Data Processing System
US5588120A (en) Communication control system for transmitting, from one data processing device to another, data of different formats along with an identification of the format and its corresponding DMA controller
EP1141848B1 (en) Method for synchronously driving slave responses onto an asb bus
EP0184320B1 (en) Improved performance memory bus architecture
KR100622800B1 (en) Single request data transfer regardless of size and alignment
KR100389030B1 (en) High speed direct memory access controller with multiple channels
JP3206656B2 (en) Prefetch device and prefetch method on bus

Legal Events

Date Code Title Description
PE20 Patent expired after termination of 20 years

Expiry date: 20180708