Semiconductor integrated circuit

A semiconductor integrated circuit according to an aspect of the invention includes a plurality of master devices which issue data transfer requests, at least one slave device which performs data transfer in accordance with the data transfer requests, and a network which arbitrates the plurality of data transfer requests respectively issued from the plurality of master devices, and informs the slave device of the arbitration result, thereby performing data transfer between the master devices and the slave device, wherein when issuing the data transfer request, the master device informs the network of a period which extends from the issuance of the data transfer request to the start of the data transfer.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is based upon and claims the benefit of priority from prior Japanese Patent Application No. 2007-290178, filed Nov. 7, 2007, the entire contents of which are incorporated herein by reference.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to a semiconductor integrated circuit, and more particularly, it relates to a data transfer apparatus.

2. Description of the Related Art

In a data transfer apparatus, an operation module which issues a data transfer request accesses a memory controller via a network. A plurality of operation modules transmit command signals and data signals to the memory controller when issuing the data transfer requests. When a split transaction method is employed as a data transfer method, the transmission and reception of the command signals and the data signals are periodically independently controlled.

A write operation is described below in the data transfer apparatus wherein there are provided two operation modules and the memory connected to the memory controller is a dynamic random access memory (DRAM).

Assume a case where, in writing in the DRAM (write operation), the first and second operation modules issue write commands, and the network transfers a command signal of the first operation module to the memory controller before transferring a command signal of the second operation module to the memory controller.

In this case, if a data signal of the first operation module is output at an extremely late timing after the memory controller has received the command signal and accepted the data transfer request, the data transfer of the second operation module cannot be executed until the data transfer of the first operation module finishes in order to observe the order of writing.

That is, even if the data in the second operation module is already transmittable, the second operation module is put on standby until the data transfer of the first operation module finishes. Moreover, the network and the memory controller are also put on standby so that the data transfer is not executed. As a result, data transfer efficiency decreases.

On the other hand, there is a method wherein the network arbitrates the data transfer requests of the operation modules before the data in the first and second operation modules are ready. However, in this method, the DRAM has to secure a certain period of time from address notification accomplished by the transmission and reception of the command signals to writing of the data signals. Therefore, in this case, the standby state is generated until the data transfer to the DRAM even if the data signals have arrived at the memory controller. Thus, the efficiency of the data transfer decreases, and in order to prevent this, it is necessary to provide a buffer circuit in a system and increase the buffer size.

In a read operation (reading) as well, a problem similar to that in the write operation arises, and the whole system is put on standby, so that the data transfer efficiency decreases.

For example, Jpn. Pat. Appln. KOKAI Publication No. 2004-355271 has been disclosed as a technique that solves the above-mentioned problem. In the technique disclosed in Jpn. Pat. Appln. KOKAI Publication No. 2004-355271, the whole data transfer apparatus needs to be under central control, so that system design becomes more difficult as the system scale increases. Moreover, accesses are based on a major cycle, and the transfer efficiency therefore decreases, particularly when there is a variation in data transfer amount between the modules.

BRIEF SUMMARY OF THE INVENTION

A semiconductor integrated circuit according to an aspect of the invention comprising:

a plurality of master devices which issue data transfer requests; at least one slave device which performs data transfer in accordance with the data transfer requests; and a network which arbitrates the plurality of data transfer requests respectively issued from the plurality of master devices, and informs the slave device of the arbitration result, thereby performing data transfer between the master devices and the slave device, wherein when issuing the data transfer request, the master device informs the network of a period which extends from the issuance of the data transfer request to the start of the data transfer.

DETAILED DESCRIPTION OF THE INVENTION

The embodiment of the present invention relates to a semiconductor integrated circuit, and more particularly, it relates to a data transfer apparatus.

The data transfer apparatus in the embodiment of the present invention is characterized in that when a plurality of master devices issue data transfer requests to a slave device, the master devices inform a network interposed between the master devices and the slave device of a period extending from the issuance of the requests to data transfer.

As a concrete example, when data transfer processing is performed, the master device outputs, to the slave device, not only a command signal as the data transfer request but also a signal carrying information on latency between the command signal and a data signal input/output in accordance with the command signal (hereinafter referred to as a latency signal). That is, the latency signal is input to the network in addition to the command signal and the data signal, which allows input/output between the master device and the slave device. In the present embodiment, for example, the latency signal indicates the number of cycles from the input of the command signal to the slave device to the start of the data transfer between the master device and the slave device. Moreover, in the present embodiment, the network arbitrates the order of the data transfer requests of a plurality of master devices on the basis of this latency signal.

Thus, even when a plurality of master devices and a slave device are provided in one data transfer apparatus, the order of data transfer can be arbitrated on the basis of this latency signal. This enables the data transfer to be executed without generating the standby state of the data transfer. Thus, according to the embodiment of the present invention, it is possible to improve the data transfer efficiency of the semiconductor integrated circuit.

It is to be noted that in the embodiment of the present invention, the slave device is a device whose operation is controlled on the basis of the data transfer request issued from the master device.

(1) Basic Configuration

The semiconductor integrated circuit in the embodiment of the present invention is described withFIG. 1.

The semiconductor integrated circuit in the embodiment of the present invention is, for example, a data transfer apparatus.FIG. 1shows the basic configuration of a data transfer apparatus1. This data transfer apparatus1comprises a plurality of operation modules PE1, PE2, a network NW, a memory controller MC and a memory module2.

In this data transfer apparatus1, for example, command transfer and data transfer are respectively controlled by temporally independently executed protocols based on a split transaction method. In the data transfer apparatus1of the present embodiment, the operation modules PE1, PE2function as master devices, and the memory controller MC and the memory module2function as slave devices whose operations are controlled by the plurality of operation modules PE1, PE2that are master devices.

The plurality of operation modules PE1, PE2are connected to the network NW. When executing data transfer, each of the operation modules PE1, PE2issues a data transfer request (e.g., a command signal Cmd) to the network NW, and outputs the command signal Cmd as the data transfer request to the memory controller MC via the network NW. In accordance with this command signal Cmd, the operation modules PE1, PE2as the master devices control the operations of the memory controller MC and the memory module2as the slave devices, and input/output data signals Data. The operation modules PE1, PE2are, for example, central processing units (CPUs), direct memory access (DMA) controllers or digital signal processors (DSPs). In addition, although two operation modules are shown for simplicity in explanation in the present embodiment, there is not limit in number, and three or more operation modules may be connected to the network NW.

The network NW arbitrates the order of data transfer for the data transfer requests (command signals) respectively issued from the plurality of operation modules, when these requests are simultaneously issued. Then, on the basis of the arbitration result, data is transferred between the operation module whose request has been accepted and the memory controller as well as the memory module in accordance with the data transfer requests (command signals) issued from the operation modules PE1, PE2. For example, a crossbar method or a common bus method is used for the network NW.

The memory controller MC is connected to the network NW. The memory controller MC accepts the data transfer requests from the operation modules PE1, PE2input via the network NW, and manages an operation schedule for the data transfer between the operation modules PE1, PE2whose requests have been accepted and the predetermined memory module2to which the data is to be transferred.

The memory module2is connected to the memory controller MC, and the operation schedule of this memory module2is managed by the memory controller MC. Thus, the requested data transfer is executed between the memory module2and the predetermined operation modules PE1, PE2via the memory controller MC and the network NW. For example, a DRAM, a static random access memory (SRAM) or a flash memory is used for the memory module2. Moreover, it may be an embedded memory module in which a memory chip and an LSI chip are mixed.

In addition, the data transfer apparatus1shown inFIG. 1shows the basic configuration in the embodiment of the present invention, and may further have other components.

The data transfer apparatus1in the embodiment of the present invention is characterized in that when the operation modules PE1, PE2issue the data transfer requests (command signals), the network NW interposed between the operation modules PE1, PE2and the memory controller MC as the slave device is informed of not only the command signal Cmd but also a period extending from the issuance of the data transfer requests to the start of the data transfer.

In the present embodiment, this period corresponds to the operation clock of the data transfer apparatus, and is indicated by the number of cycles (latency) from the issuance of the command signals to the start of the transfer of the data signals.

That is, the operation modules PE1, PE2output signals carrying latency information (latency signals) to the network NW in addition to the command signals. Moreover, the latency signals are also output to the memory controller MC as the slave device, for example, via the network NW. The network NW arbitrates the order of the data transfer processing on the basis of a latency signal ReqDataLat. Then, the data transfer is carried out between the operation modules PE1, PE2and the memory module2in the arbitrated order. Details of the method of arbitrating the data transfer by the network NW will be described later.

Conventionally, when a plurality of operation modules are provided in one data transfer apparatus, the data transfer processing is carried out in accordance with a priority order preset for the respective operation modules. That is, the data transfer processing is carried in accordance with the set priority order, so that even when the data transfer processing for the operation module with a low priority order is ready, the data transfer processing for the operation module with the low priority order is put on standby if the data transfer processing for the operation module with a high priority order has not been executed and completed. This causes the whole system to be put on standby and contributes to a decrease in the data transfer efficiency of the data transfer apparatus.

On the contrary, in the embodiment of the present invention, the data transfer processing is executed in the order arbitrated on the basis of the latency signal ReqDataLat. That is, according to the present embodiment, a cycle which enables the data transfer processing to be started is determined from the values of the latency signals ReqDataLat output from the plurality of operation modules PE1, PE2, and the order of the data transfer processing is arbitrated by the network NW so that the standby state of the system is not generated. Therefore, according to the embodiment of the present invention, it is possible to inhibit the standby state of the data transfer processing and improve the data transfer efficiency of the data transfer apparatus1. Such an effect of the present embodiment is higher particularly in the case of a data transfer apparatus (semiconductor integrated circuit) using a DRAM which has a time lag from the start of control over the slave devices (the memory controller MC and the memory module2) to actual data transfer.

Furthermore, the value indicated by the latency signals ReqDataLat is changed as needed with the size of a data signal Data and with how each operation module operates, so that the data transfer processing requested by a user can be flexibly handled.

Still further, according to the present embodiment, buffer circuits for improving the data transfer efficiency can be reduced, so that the buffer size in the system can be reduced, and the system scale of the data transfer apparatus1can be reduced.

As described above, according to the embodiment of the present invention, it is possible to improve the data transfer efficiency of the semiconductor integrated circuit (data transfer apparatus).

(b) Write Operation

A write operation in the data transfer apparatus shown in the embodiment of the present invention is next described withFIG. 2.FIG. 2is a timing chart showing the write operation of the data transfer apparatus in the present embodiment. First, signals shown inFIG. 2are explained.

The command signal Cmd indicates the kind of the data transfer request issued by the operation module PE1, PE2. An enable signal Ack indicates that the command signal Cmd has been accepted by the memory controller MC. A data transfer size signal Size is a signal indicating the size (volume) of data to be transferred and is corresponding to a period of the data transfer. A write valid data signal WDataValid is a signal indicating that the data signal Data is valid in a particular cycle. A write data enable signal WDataAck is a signal indicating that the data signal Data has been accepted by the memory controller MC. Then, the latency signals ReqDataLat are output from the operation modules PE1, PE2together with the command signals Cmd, and indicate the period from the output of the command signals Cmd to the start of the transfer of the data signals. In addition, an address signal indicating the transfer destination of the data signal Data is also output simultaneously with the command signal Cmd, but the address signal is not described here.

The write operation in the present embodiment is described below on the assumption that there is no delay (latency) in the network NW and the network NW is capable of data transfer with zero latency for simplicity. In addition, in the present embodiment, preferential data transfer is carried out in the preset priority order of the operation modules, for example, in the order of the operation module PE1and the operation module PE2when the data transfer requests are issued from the plurality of operation modules PE1, PE2with difference timings.

First, as shown inFIG. 2, at the first cycle of the operation clock CLK of the data transfer apparatus, the two operation modules PE1, PE2shown inFIG. 1simultaneously issue the data transfer requests (command signals) for executing the write operation to the memory controller MC via the network NW. At this moment, the command signals Cmd indicating write operations wr1, wr2are simultaneously output from the two operation modules PE1, PE2to the memory controller MC via the network NW. Moreover, the latency signals ReqDataLat are also output from the operation modules PE1, PE2to the memory controller MC via the network NW together with the command signals Cmd.

With regard to the latency signals ReqDataLat, the cycle of the data output from the two operation modules PE1, PE2is determined by the network NW on the basis of the values indicated by the latency signals, and the order of the data transfer processing for the operation modules PE1, PE2is arbitrated by an arbitration method described later. In the example shown inFIG. 2, the respective latency signals ReqDataLat indicate that the data output of the operation module PE1is executed three cycles later and the data output of the operation module PE2is executed one cycle later. That is, the data transfer processing for the operation module PE2is ready earlier than the data transfer processing for the operation module PE1. Therefore, the network NW arbitrates and sets the order of the data transfer processing so that the write operation of the operation module PE1is executed after the write operation of the operation module PE2has been executed.

Furthermore, the command signals Cmd and the latency signals ReqDataLat are input to the memory controller MC. On the basis of the result of the arbitration by the network NW, the enable signal Ack is output from the memory controller MC to the operation module PE2and then to the operation module PE1.

When the enable signal Ack is input to the operation module PE2at the second cycle, the data transfer processing is immediately executed in the operation module PE2because the data signal Data to be output has already been prepared. Therefore, data valid signals DataValid and the write data enable signals WDataAck in the operation module PE2and the memory controller MC become active at the second to third cycles, and the data transfer for the write operation of the operation module PE2to the memory controller MC and the memory module2is executed. Further, the data transfer processing for the operation module PE2is completed at the third cycle.

On the other hand, in the operation module PE1, the preparation for the output of the data signal Data is completed at the third cycle from the transmission of the command signal Cmd even if the enable signal Ack is input at the third cycle. Therefore, in the operation module PE1, the data valid signal DataValid and the write data enable signal WDataAck become active synchronously with the fourth cycle of an operation clock CLK, and the data transfer for the write operation is executed. The data transfer processing for the operation module PE1is completed at the fifth cycle. In addition, as described above, the data transfer for the operation module PE2is executed while the operation module PE1is preparing the data signal Data to be transmitted, so that the standby state of the data transfer is not generated in the data transfer apparatus.

The write operation in the data transfer apparatus of the present embodiment is completed by the above-mentioned operation. In addition, in the above-mentioned operation, the value indicated by the latency signal ReqDataLat only represents the value of the latency from the output of the command signals Cmd of the operation modules PE1, PE2to the output of the data signal Data. However, when the size of the command signal Cmd is large, the timing for the data transfer may be delayed in accordance with the size. Therefore, it is preferable for the value indicated by the latency signal ReqDataLat to be changed in consideration of the size of the command signal.

In the case where the priority order of the data transfer request of the operation module PE1is set higher than the operation module PE2and the data transfer is executed in accordance with the priority order as has been the case heretofore, if the memory controller MC accepts the simultaneously issued data transfer requests, the data transfer for the operation module PE2is executed after the data transfer for the operation module PE1has been finished, so that a standby state is generated in the system from the second to third cycle. As a result, the data transfer processing for the two operation modules PE1, PE2is completed at or after the seventh cycle, which reduces the data transfer efficiency of the data transfer apparatus.

However, in the present embodiment, the network NW determines the output cycles of the data signals Data from the latency signals ReqDataLat output from the operation modules PE1, PE2, and arbitrates the order of the write operations. That is, in the data transfer apparatus1in the present embodiment, the data transfer processing for the write operations is continuously executed in consideration of the latencies of the plurality of operation modules PE1, PE2so that the standby state of the system is not generated. Thus, in the data transfer apparatus1in the present embodiment, the data transfer processing can be completed at the fifth cycle.

Consequently, in the write operation of the data transfer apparatus in the embodiment of the present invention, the data transfer processing can be accomplished without generating a standby state in the data transfer processing.

Therefore, according to the embodiment of the present invention, it is possible to improve the data transfer efficiency of the semiconductor integrated circuit.

(c) Read Operation

A read operation in the data transfer apparatus shown in the first embodiment of the present invention is described withFIG. 3. It is to be noted that the same signs are assigned to the same signals as in the write operation and such signals are not described in detail. A read valid data signal RDataValid shown inFIG. 3is a signal indicating that the data signal Data is valid in a particular cycle, and a read data enable signal RdataAck is a signal indicating that the data signal Data has been accepted by the memory controller MC.

First, as in the write operation, the data transfer requests for the execution of the read operation are issued from the operation modules PE1, PE2at the first cycle of the operation clock CLK, and the command signals Cmd indicating read operations rd1, rd2are simultaneously output to the memory controller MC via the network NW. In conjunction with this, the latency signals ReqDataLat are also output from the operation modules PE1, PE2to the memory controller MC via the network NW.

The network NW determines the cycle of data input to the two operation modules PE1, PE2from the values of the latency signals ReqDataLat.

In the example shown inFIG. 3, the respective latency signals ReqDataLat indicate that the data output of the operation module PE1can be input three cycles later and the data output of the operation module PE2can be input one cycle later. Therefore, the network NW arbitrates the order of the processing of data transfer from the memory module2to the operation modules PE1, PE2so that the read operation of the operation module PE1is executed after the read operation of the operation module PE2has been executed. Thus, the enable signal Ack is output from the memory controller MC to the operation module PE2and then to the operation module PE1.

In the operation module PE2, the enable signal Ack is input at the second cycle. As the operation module PE2is ready to receive the data signal Data, the data transfer processing is immediately executed. Therefore, the read data valid signal RDataValid and the read data enable signal RdataAck in the operation module PE2and the memory controller MC become active at the second to third cycles, and the data transfer for the read operation in the operation module PE2is executed. Further, the data transfer processing for the operation module PE2is completed at the third cycle.

On the other hand, in the operation module PE1, the preparation for receiving the data signal Data is completed at the third cycle from the output of the command signal Cmd even if the enable signal Ack is input at the third cycle. Therefore, in the operation module PE1, the read data valid signal RDataValid and the read data enable signal RdataAck become active synchronously with the fourth cycle of the operation clock CLK at which the read operation of the operation module PE2has been completed, and the data transfer for the read operation is executed.

The read operation in the data transfer apparatus of the present embodiment is completed by the above-mentioned operation.

As described above, in the read operation of the data transfer apparatus in the embodiment of the present invention, the data transfer processing can be accomplished without generating a standby state in the data transfer processing, as in the write operation.

Therefore, according to the embodiment of the present invention, it is possible to improve the data transfer efficiency of the semiconductor integrated circuit.

Examples of the components in the data transfer apparatus1shown inFIG. 1are described below in more detail withFIG. 4toFIG. 6. It is to be noted that the same signs are assigned to the same parts as those described above and such parts are not described in detail.

An example of a network NW used in the data transfer apparatus1shown inFIG. 1is described withFIG. 4. As described above, the network NW makes arbitration when data transfer requests are simultaneously issued from a plurality of operation modules PE1, PE2in the data transfer apparatus1.

As shown inFIG. 4, the operation modules PE1, PE2are connected to the network NW, and a multiplexer10and an arbiter11are provided on the network NW.

The operation modules PE1, PE2output command signals Cmd and latency signals ReqDataLat, and data signals Data are input and output accordingly.

The command signals Cmd, the latency signals ReqDataLat and the data signals Data are input to the multiplexer10in the network NW. Moreover, the command signals Cmd and the latency signals ReqDataLat are input to the arbiter11in the network NW.

The arbiter11arbitrates the data transfer requests of the operation modules PE1, PE2on the basis of the input command signals Cmd and latency signals ReqDataLat. Then, the arbiter11outputs a control signal based on the result of the arbitration to the multiplexer10. The multiplexer10outputs one of the input command signals Cmd and one of the input latency signals ReqDataLat of the two operation modules PE1, PE2to a memory controller MC by the control signal, and then outputs the other data transfer request to the memory controller MC.

Thus, the network NW arbitrates the order of the data transfer processing, and inputs and outputs the data signals Data.

Several examples of arbitration methods performed by the network NW are described below.

(i) First Arbitration Method

In a first arbitration method, arbitration is made by comparing the values of a plurality of latency signals input to the arbiter11. Specifically, the network NW in this arbitration method makes an arbitration to execute data transfer so that the data transfer request with a smaller latency signal value is given priority out of the data transfer requests of the operation modules PE1, PE2.

According to the first arbitration method, the arbiter11can be realized by a simple circuitry such as a comparator, and the priority order of the data transfer requests can be determined quickly.

(ii) Second Arbitration Method

As described above, in the embodiment of the present invention, the priority order of the operation modules is set in advance for the case where the data transfer requests are issued with no overlap.

In a second arbitration method, when the sum of the value of the latency signal ReqDataLat of a certain operation module and the value of a corresponding data transfer size signal Size is equal to or less than the value of the latency signal ReqDataLat of the operation module set to a high priority degree, even the data transfer request of the operation module with a low priority order is accepted so that the order of data transfer is reversed regardless of the preset priority order, thereby carrying out data transfer.

If the value of the data transfer size signal Size is high as described above, the data transfer may be delayed. Therefore, in the second arbitration method, the order of the data transfer requests is arbitrated according not only to the magnitude of the value of the latency signal ReqDataLat but also latency attributed to the value of the data transfer size signal Size, so that even if the value of the latency signal of the operation module set to a high priority order is high, the data transfer request can be executed first.

Consequently, according to the second arbitration method, it is possible to avoid unnecessary delay of the data transfer request of the operation module with a high priority order.

(iii) Third Arbitration Method

In a third arbitration method, when the value of the latency signal of a certain operation module is higher than a preset threshold value, the data transfer request of the certain operation module is not accepted even if there are no data transfer requests from other operation modules.

When a data transfer request (command signal Cmd) with a high latency signal ReqDataLat value is accepted, the command signal is only input, and actual data transfer is not executed for a long time. Thus, even if a data transfer request with a low latency signal ReqDataLat value is input later, data transfer cannot be executed, which substantially leads to the standby state of the system.

However, as in the third arbitration method, the threshold value is set, and if the data transfer request corresponding to the latency signal ReqDataLat higher than the threshold value is not accepted, it is possible to accept and execute a data transfer request which is input later and which corresponds to the latency signal ReqDataLat lower than the threshold value, and avoid the situation where data transfer is not executed for a long time in the data transfer apparatus1.

In addition, it is preferable for the threshold value set in the third arbitration method to be calculated on the basis of a value which is an addition of latency from the arbiter11to the memory controller MC to latency from the issuance of an address in the memory module to the input/output of data. In addition, the threshold value can be desirably changed during operation in the third arbitration method. Moreover, the third arbitration method can be used together with the first or second arbitration method.

As described above, the arbiter11for arbitrating the data transfer requests from a plurality of operation modules is provided in the network NW for the arbitration of data transfer requests shown inFIG. 4, and the data transfer efficiency of the semiconductor integrated circuit can be improved by employing one of the arbitration methods shown in (i) to (iii).

(b) Operation Modules

An example of the operation modules used in the data transfer apparatus1shown inFIG. 1is described withFIG. 5.

As shown inFIG. 5, a plurality of operation modules PE1, PE2are connected to one network NW.

Each of the operation modules PE1, PE2has a controller30, data buffers31,33, and an operator32therein. The buffers31,33are, for example, instruction cache memories or data cache memories. Moreover, the operator32is, for example, a DSP, and the operator32is hereinafter called a DSP32. However, the operator32may be a CPU. In addition, the internal configurations of the operation modules PE1, PE2are not limited to the configurations shown inFIG. 5. For example, they may be DMA controllers including no explicit operators.

The controller30controls the overall operations of the operation modules PE1, PE2. The buffer31stores, via the controller30, data input in the operation modules PE1, PE2. The DSP32operates the data retained in the buffer31. The buffer33retains the data operated by the DSP32, and outputs the data to the controller30. Then, the controller30outputs the operated data to a memory module2via the network NW and a memory controller MC. Thus, the data in the memory module2is rewritten to the operated data. Such processing is performed in each of the operation modules PE1, PE2every time the data transfer processing is carried out.

Here, for example, when it is predicted that one operation for the operation module PE1finishes in 100 cycles, the operation module PE1outputs a write command signal or a read command signal as a data transfer request to the network NW simultaneously with the start of the operation. Further, this command signal is output from the network NW to the memory controller MC. The value of a latency signal issued simultaneously with this command signal is set at, for example, “100”. When the latency signal is set in this manner, the memory controller MC performs scheduling for the memory module2on the assumption that the data transfer processing is started 100 cycles later.

Thus, with appropriate operation timing, the memory controller MC can control the memory module2for example, the output of an address signal to the memory module2.

As described above, in the operation processing in the operation modules PE1to PE2whose operation cycles are predicted, a schedule is previously set, before the end of the operation processing, in the memory module2to which the results of the operations are transferred, such that it is possible to reduce, for example, the standby state of the data transfer processing and also reduce data latency in the operation modules and thus improve the operation processing efficiency. Consequently, it is possible to improve the data transfer efficiency of the semiconductor integrated circuit.

(c) Memory Controller

An example of the memory controller MC used in the data transfer apparatus1shown inFIG. 1is described withFIG. 6. As described above, in the embodiment of the present invention, the data transfer requests issued from a plurality of operation modules are arbitrated by the network NW on the basis of the latency signal.

The memory controller MC having an internal configuration shown inFIG. 6accepts the arbitration result, and performs scheduling for the memory module2. As shown inFIG. 6, the latency signal ReqDataLat is input to a subtracter40provided in the memory controller MC. An offset value retained in a register41is further input to the subtracter40. Then, the subtracter40subtracts the offset value from the value of the input latency signal ReqDataLat. Thus, the latency before access control can be started (hereinafter referred to as access start enable latency) is found. This offset value is preferably set on the basis of, for example, the value of CAS latency of the memory module2. In addition, the CAS latency is the latency required from the output of a CAS signal designating an address of a column to the actual execution of the writing/reading of the data signal.

Furthermore, a counter44is provided in the memory controller MC. This counter44is always incremented by an adder43on a regular cycle during the operation of the data transfer apparatus. The value of the counter44obtained by the increment indicates a “current time” in the memory controller MC. The “current time” is updated by the increment simultaneously with the operation cycle of the whole data transfer apparatus1or the operation cycles of the operation modules PE1, PE2.

Furthermore, the “access start enable latency” and the “current time” are added together by an adder42, and this additional value indicates the time at which the control of the access to the memory module can be started (hereinafter referred to as “access start enable time”).

The value of the access start enable time is retained in a plurality of registers46provided in the memory controller MC for the respective corresponding command signals Cmd. In addition, the registers46are first-in first-out (FIFO) type registers, and the registers46are hereinafter called FIFOs46. At the same time, data signals Data corresponding to the command signals Cmd are retained in registers47, respectively.

The value of the “access start enable time” stored in the FIFOs46is compared by a comparator45with the value of the “current time” indicated by the counter44.

Furthermore, an enable bit of the FIFO in which the “access start enable time” coincides with the “current time” or in which the “access start enable time” is equal to or less than the “current time” becomes active, so that the command signal Cmd retained in that FIFO is validated. The validated command signal Cmd, an address signal Address indicating the input/output end of data, and the data signal Data retained in the register47corresponding to the command signal Cmd are output to the memory module2after physical and electric conversions such as digital/analog conversion and voltage conversion by a physical layer circuit (PHY)48. Then, the operation of writing to or reading from the memory module2is started, and the data transfer is executed. Such a comparison between the “access start enable time” and the “current time” is sequentially performed for each of the FIFOs46, and data transfers are sequentially performed for the command signals Cmd satisfying the condition. In addition, when there is no delay or there is a small delay attributed to a circuit such as the PHY48provided after the comparator45, this access start enable time is the time at which the data transfer is substantially started (data transfer enable time).

Thus, the data transfer processing is executed between the operation modules PE1, PE2and the memory module2via the network NW.

As described above, the memory controller MC shown inFIG. 6performs scheduling for the memory module2so that the command signal is executed in which the value of the “access start enable time (data transfer start time)” based on the latency signal and reflecting the result of the arbitration by the network NW is equal to or less than the “current time” indicated by the counter44in the memory controller MC. Thus, the memory controller MC can manage the operation of the memory module2on the basis of the latency signal ReqDataLat, and regulate the timing of the data transfer.

Consequently, it is possible to improve the data transfer efficiency of the semiconductor integrated circuit.

In addition, one memory controller MC is provided in the example shown inFIG. 6, but the present invention is not limited to this, and a plurality of memory controllers of a similar configuration may be provided. When a plurality of memory controllers MC are provided, the command signal Cmd is selected in such a manner as to improve the efficiency of the access to the memory module2, thereby making it possible to improve the data transfer efficiency. Moreover, the internal configuration of the memory controller MC may be such that the timing of the data transfer to the memory module2(execution of the command signal Cmd) can be regulated in accordance with the latency signal ReqDataLat input to the memory controller MC, and the internal configuration of the memory controller MC is not limited to the configuration shown inFIG. 6.

An application of the embodiment of the present invention is described withFIG. 7toFIG. 9. It is to be noted that the same signs are assigned to the same members as those described above and such members are not described in detail.

FIG. 7shows a data transfer apparatus1A in the application of the embodiment of the present invention.

As shown inFIG. 7, buffer circuits3are inserted in data transfer paths within the data transfer apparatus1A, such that command signals Cmd or data signals Data are pipeline-processed. According to this configuration, it is possible to prevent the decrease of an operation frequency, and provide a data transfer apparatus1A of a large scale and of a high operation frequency.

However, in such a case, a latency caused by the inserted buffer circuits3is generated. Therefore, if a latency signal ReqDataLat is provided in addition to the command signal Cmd and the data signal Data as in the embodiment of the present invention, it may be possible to not achieve consistency of latency between operation modules PE1, PE2and a memory controller MC. Thus, the buffer circuit3which can assure the consistency of latency will be described withFIG. 8andFIG. 9.

In the buffer circuit3shown inFIG. 8, a command signal is input to an internal buffer20, and one cycle passes when the command signal passes through the internal buffer20. On the contrary, a data signal is output to the outside without passing through the internal buffer when passing through the buffer circuit3, so that there is no increase or decrease of cycles, and the data signal passes through the buffer circuit3in a zero cycle.

That is, the value of a latency signal ReqDataLatB from a output of a command signal CmdB to an input/output of a data signal DataB after the passage through the buffer circuit3is one cycle smaller than the value of a latency signal ReqDataLatA from a output of a command signal CmdA to an input/output of a data signal DataA before the passage through the buffer circuit3.

Therefore, as shown inFIG. 8, a subtracter21is inserted in the transfer path of the latency signal ReqDataLatA, and the value indicated by the latency signal is reduced by one, such that the consistency of latency is achieved in the command signals and the data signals before and after the passage through the buffer circuit3.

Furthermore,FIG. 9shows an example different from the buffer circuit shown inFIG. 8. In the buffer circuit3shown inFIG. 9, an internal buffer27is provided in the transfer path of the data signal. In this case, there is a difference in the method of achieving the consistency of the latency between the write operation and the read operation.

In the case of the write operation, the internal buffer27is provided in the transfer path of the data signal DataA, and the data signal DataA is buffered by the internal buffer27, so that a period of one cycle passes. On the other hand, the command signal CmdA passes through the buffer circuit3without being buffered, unlike the data signal DataA, so that the command signal CmdA is output to the outside in zero cycle. That is, the value of the latency signal ReqDataLatB from the output of the command signal CmdB to the input of the data signal DataB after the passage through the buffer circuit3is one cycle larger than the value of the latency signal ReqDataLatA from the output of the command signal CmdA to the input of the data signal DataA before the passage through the buffer circuit3.

In the read operation, a period of one cycle is needed for the data signal alone, as in the write operation. However, in the read operation, while the command signals Cmd are transferred from the operation modules PE1, PE2to the memory module2, the data signals Data are transferred from the memory module2to the operation modules PE1, PE2, so that there is a difference in signal transfer direction between the command signals and the data signals.

Therefore, the value of the latency signal ReqDataLatB from the output of the command signal CmdB to the output of the data signal DataB after the passage through the buffer circuit3has to be one cycle smaller than the value of the latency signal ReqDataLatA from the output of the command signal CmdA to the output of the data signal DataA before the passage through the buffer circuit3.

Thus, as shown inFIG. 9, an adder24and a subtracter25are provided in the transfer paths of the latency signal within the buffer circuit3, so that the value of the input latency signal is increased or decreased by one. The latency signal to which a value has been added by the adder24corresponds to the write operation, while the latency signal from which a value has been subtracted by the subtracter25corresponds to the read operation. Then, one of the latency signals corresponding to the write operation or the read operation is selected by a multiplexer26which uses the command signal CmdA as a selection signal.

Consequently, the consistency of the latency between the command signal and the data signal is assured for the write operation and the read operation in the data transfer apparatus1A.

In addition, when internal buffers are provided in the respective transfer paths of the command signal and the data signal, the operation is similar to the case where the above-mentioned two configurations are connected in series. Therefore, there is no need for addition and subtraction processing for the latency signal in the case of the write operation, but the value of the latency signal has to be two cycles smaller in the case of the read operation.

As described above, the buffer circuit3shown inFIG. 8orFIG. 9is used as the buffer circuit3for the data transfer apparatus1A shown inFIG. 7. Thus, the consistency of the latency between the command signal and the data signal in the data transfer apparatus1A is assured by the buffer circuit3shown inFIG. 8andFIG. 9.

Consequently, according to the application of the embodiment of the present invention, it is possible to improve the data transfer efficiency of the semiconductor integrated circuit, and provide a semiconductor integrated circuit of a large scale operating at a high operation frequency. In addition, while the two operation modules PE1, PE2are shown for simplicity in explanation in the present application, three or more operation modules may be connected to one network.

A modification of the embodiment of the present invention is described withFIG. 10. It is to be noted that the same signs are assigned to the same members and such members are not described in detail.

FIG. 10shows a data transfer apparatus1B in the modification of the embodiment of the present invention. In the configuration of the data transfer apparatus1described above, one memory controller MC is connected to the network NW. However, the present invention is not limited to this, and a plurality of memory controllers MC1, MC2and a plurality of memory modules2A,2B may be connected to one network NW, as in the data transfer apparatus1B shown inFIG. 10.

In the data transfer apparatus1B having such a configuration, the latency from the output of a command signal Cmd to the input/output of a data signal may be different for each of the memory controllers MC1, MC2and each of the memory modules2A,2B. For example, as shown inFIG. 10, a DRAM2A and an SRAM2B are connected as the memory modules2A,2B to the memory controllers MC1, MC2, respectively. Instead of the DRAM2A or the SRAM2B, a flash memory may be connected to memory controller MC1, MC2. It is desirable that the latency from the output of the command signal Cmd to the input/output of the data signal Data is large for the data transfer of the DRAM, while it is desirable that the latency from the output of the command signal Cmd to the input/output of the data signal Data is small for the data transfer of the SRAM. As a result, there is a difference between the memory controller MC1and the memory controller MC2in the values of latency signals required by operation modules PE1, PE2.

Therefore, when the third arbitration method is used as the arbitration method of the network NW, the threshold value for the judgment of the arbitration is desirably independently set depending on the latency required by the memory controllers MC1, MC2.

In addition, while the two memory controllers MC1, MC2are shown for simplicity in explanation in the present modification, three or more memory controllers may be connected to one network.

Furthermore, a plurality of networks may be interposed between the operation modules PE1, PE2and the memory controllers MC1, MC2. In this configuration, when the configurations of the plurality of networks are dynamically changed, a signal indicating information on the latency between the memory controller and the plurality of networks may be further added.

Additionally, while the data transfer apparatus1,1A,1B using the memory controller MC and the memory module as slave devices has been described in the embodiment of the present invention, the present invention is not limited to this. For example, a hard disk interface may be used instead of the memory controller MC, and a hard disk may be used instead of the memory module2.

As described above, in the modification of the embodiment of the present invention as well, it is possible to improve the data transfer efficiency of the semiconductor integrated circuit.

3. Other

The embodiment of the present invention makes it possible to improve the data transfer efficiency of the semiconductor integrated circuit.