WO2009098737A1 - 外部デバイスアクセス装置、その制御方法及びシステムlsi - Google Patents
外部デバイスアクセス装置、その制御方法及びシステムlsi Download PDFInfo
- Publication number
- WO2009098737A1 WO2009098737A1 PCT/JP2008/002206 JP2008002206W WO2009098737A1 WO 2009098737 A1 WO2009098737 A1 WO 2009098737A1 JP 2008002206 W JP2008002206 W JP 2008002206W WO 2009098737 A1 WO2009098737 A1 WO 2009098737A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- prefetch
- external device
- master
- signal
- read
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/382—Information transfer, e.g. on bus using universal interface adapter
- G06F13/385—Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/061—Improving I/O performance
- G06F3/0611—Improving I/O performance in relation to response time
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0655—Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
- G06F3/0656—Data buffering arrangements
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0655—Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
- G06F3/0659—Command handling arrangements, e.g. command buffers, queues, command scheduling
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/0671—In-line storage system
- G06F3/0683—Plurality of storage devices
Definitions
- the present invention relates to an external device access apparatus, a control method thereof, and a system LSI, and more particularly to an external device access apparatus that performs prefetch access to an external device in response to a request from a master.
- the master may have an expansion bus for expanding external devices.
- media processing is general data processing such as audio processing and image processing
- a master is a device in charge of main control such as a CPU or a microcomputer
- an external device is a CPU or a microcomputer.
- a peripheral device such as a coprocessor, an accelerator, or a memory that assists.
- the master can handle the resource of the external device as an extended resource of the master by assigning the resource of the external device to the access space.
- the access space is a space to which an address is assigned for program access, data access, input / output access, and the like that can be accessed by the master.
- Prefetching is a technique in which a master makes a read request in advance, acquires data read in advance after a certain latency period, and performs the next process.
- an external device access apparatus that performs a prefetch operation for an external device in response to a request from a master is known (for example, see Patent Document 1).
- a conventional external device access device described in Patent Document 1 reads a data from an external device in response to a request from the master, temporarily stores the read data, and outputs a prefetch that stores the stored data to the master Data read operation is performed.
- a conventional external device access apparatus performs a prefetch data read operation in response to a request from the master during a prefetch operation to the external device
- the read data is mastered in synchronization with the completion of the prefetch operation. Output to. Thereby, it is possible to avoid outputting erroneous data before completion of the prefetch operation to the master.
- FIG. 1 is a flowchart showing a flow of processing of a master when a conventional external device access apparatus is used.
- the master performs a prefetch operation on the external device (S501).
- the master performs a process that can be executed until the prefetch data is read (S502).
- the period during which the master performs processing is a period until the prefetch operation is completed when the external device is normal.
- the master reads prefetch data (S503).
- the master executes processing using the read data (S505).
- the master enters a standby state until the prefetch operation is completed.
- the conventional technique has a problem that the processing efficiency of the master is lowered.
- the present invention is for solving the above-described problems, and an object thereof is to provide an external device access apparatus and a system LSI that can efficiently use a master.
- an external device access apparatus includes a prefetch operation for reading data from an external device in response to a request from the master, and a prefetch for outputting data read by the prefetch operation to the master.
- An external device access device that performs a data read operation, and receives a prefetch request and a prefetch data read request from the master, and is read by the prefetch operation and a control unit that performs the prefetch operation and the prefetch data read operation.
- a data storage unit for storing data, a state holding unit for holding a prefetch operation state indicating whether or not the prefetch operation is completed, and an acceptance signal indicating that the prefetch data read request from the master has been received.
- An acceptance signal generation unit that outputs to the master, the control unit outputs data stored in the data storage unit to the master as the prefetch data read operation, and the control unit is in the prefetch operation state
- the first information indicating the state of the prefetch operation based on is output to the master.
- the external device access apparatus outputs the first information indicating the state of the prefetch operation to the master.
- the master can perform another process first if the prefetch operation is not completed during the prefetch data read operation. Therefore, the external device access apparatus according to the present invention can use the master efficiently.
- the acceptance signal generation unit outputs the acceptance signal to the master regardless of whether the prefetch operation is completed or not when the prefetch data read request is accepted by the control unit,
- the control unit may output the first information to the master when receiving the prefetch data read request.
- the master can perform another process first when the prefetch operation is not completed by receiving the acceptance signal.
- control unit may output the prefetch operation state to the master as the first information.
- the master can determine whether or not the external device access apparatus has completed the prefetch operation.
- the external device access device and the master are connected via a read data bus, and the control unit transmits the data stored in the data storage unit and the first information via the read data bus. It may be output to the master.
- control unit when the prefetch operation state indicates that the prefetch operation is completed, the control unit outputs the data stored in the data storage unit to the master via the read data bus, and the prefetch operation When the state indicates that the prefetch operation is not completed, predetermined data may be output as the first information to the master via the read data bus.
- the control unit when the prefetch operation state indicates that the prefetch operation is completed, the control unit outputs the data stored in the data storage unit to the master via the read data bus, and the prefetch operation If the state indicates that the prefetch operation is not completed, the address of the external device that is reading by the prefetch operation may be output as the first information to the master via the read data bus. Good.
- the control unit may further receive a prefetch operation state read request from the master, and the control unit may output the first information to the master when the prefetch operation state read request is received. .
- the master does not need to make an unnecessary prefetch data read request by making a prefetch operation state read request before the prefetch data read operation.
- the external device outputs a status signal indicating an operation state of the external device
- the external device access device further includes a status signal storage unit that stores the status signal when the prefetch operation is completed.
- the state signal stored in the state signal storage unit is output to the master, and the prefetch operation is not completed due to the prefetch operation state.
- a status signal output unit that outputs a status signal output by the external device to the master.
- the master can grasp the state of the external device during prefetch execution. As a result, the master can perform optimum processing according to the state of the external device.
- the external device outputs a status signal indicating an operation state of the external device
- the acceptance signal generation unit responds to the status signal when the control unit receives the prefetch data read request.
- the external device access apparatus can select whether to output the acceptance signal immediately or to output the acceptance signal after completion of the prefetch operation according to the state of the external device.
- the master does not always have to perform the prefetch data read operation with a maximum latency period, but with a minimum latency period.
- a prefetch data read operation may be performed.
- control unit further accepts a prefetch stop request from the master, and the external device access device further prefetches the prefetch operation to be stopped when the prefetch stop request is accepted by the control unit. You may provide a cancellation part.
- the master can stop the prefetch operation according to the state of the external device.
- the external device outputs a status signal indicating an operation state of the external device
- the external device access device further receives the prefetch data read request by the control unit, and the prefetch operation state If the prefetch operation is not completed, a prefetch stop unit that stops the prefetch operation according to the status signal output by the external device may be provided.
- the external device access apparatus automatically stops the prefetch operation when the prefetch operation is being executed and the external device is in an abnormal state during the prefetch data read operation. .
- the master does not need to perform control to stop the prefetch operation. Therefore, the external device access apparatus according to the present invention can reduce the processing of the master.
- the external device outputs a status signal indicating an operation state of the external device, the external device access apparatus and the master are connected via a first signal bus, and the external device access apparatus further includes: A read state prefetch operation state which is the prefetch operation state when the prefetch data read request is received by the control unit and a state signal storage unit for storing the state signal when the prefetch operation is completed.
- a read state prefetch operation state which is the prefetch operation state when the prefetch data read request is received by the control unit and a state signal storage unit for storing the state signal when the prefetch operation is completed.
- the prefetch operation state is output to the master via the first signal bus, and the prefetch operation is performed.
- the operation state indicates that the prefetch operation is complete.
- a signal output unit that outputs a status signal stored by the status signal storage unit to the master via the first signal bus, and the control unit has received the prefetch operation status read request In this case, the read prefetch operation state may be output to the master
- the external device access apparatus outputs the prefetch operation state and the state signal to the master via the first signal bus. Therefore, it is not necessary to separately provide a bus for outputting the prefetch operation state and a bus for outputting the state signal.
- the acceptance signal generation unit outputs the acceptance signal to the master regardless of whether or not the prefetch operation is completed when the control unit accepts the prefetch data read request.
- An operation or a second operation of outputting the acceptance signal to the master after completion of the prefetch operation may be selectively performed.
- the external device access apparatus can select whether to output the acceptance signal immediately or to output the acceptance signal after completion of the prefetch operation.
- reception signal generation unit may selectively perform the first operation or the second operation according to a control signal output from the master.
- the master can select the first operation and the second operation.
- the prefetch read request includes a first prefetch data read request and a second prefetch data read request, and the control unit reads the first prefetch data when a first address is output from the master.
- the second prefetch data read request is received, and the acceptance signal generation unit is when the control unit receives the first prefetch data read request.
- the first operation may be performed, and the second operation may be performed when the control unit receives the second prefetch data read request.
- the master can select the first operation and the second operation without providing a new control bus between the external device access apparatus and the master.
- the external device access apparatus further includes a state setting unit in which a first state or a second state is set, and the control unit further receives a prefetch read control operation request from the master, and the control unit When the prefetch read control operation request is accepted, the designated first state or the second state from the master is set in the state setting unit, and the acceptance signal generating unit is set in the state setting unit.
- the first operation may be performed when the first state is set, and the second operation may be performed when the second state is set in the state setting unit.
- the master can select the first operation and the second operation without providing a new control bus between the external device access apparatus and the master.
- the external device access device further completes the prefetch operation after the prefetch data read request is accepted when the prefetch data read request is accepted by the control unit during the execution of the prefetch operation.
- a counting unit that counts the time until the operation is performed, and the control unit may output the time counted by the counting unit to the master as the first information.
- the master can change the timing for requesting the prefetch data read operation to the time after the prefetch operation is completed. Therefore, the master does not have to request a plurality of prefetch data read operations, so that the efficiency can be improved.
- control unit further receives a time read request from the master
- the external device access device further includes a time storage unit that stores a time counted by the counting unit.
- the time stored in the time storage unit may be output to the master as the first information.
- the external device access apparatus can notify the master of the time until the prefetch operation is completed without providing a new signal output bus with the master.
- the system LSI according to the present invention is a system LSI including the external device access apparatus and a master, and the external device access apparatus uses the first information as an interrupt signal or a thread switching signal of the master.
- the master processes the first information as an interrupt process or a thread switching signal.
- the system LSI according to the present invention is a system LSI including the external device access device and a master, and the external device access device outputs the first information as a flag signal that can be processed by the master. Then, the master processes the first information as a flag signal that can be processed by software.
- the system LSI according to the present invention is a system LSI including the external device access apparatus and a master, and the master synchronizes the control signal with the prefetch data read request and accesses the external device access. Output to the device.
- the master can select two operations for each prefetch read operation by synchronizing the output of the read acceptance control signal with the prefetch data read request by an instruction from the CPU or the microcomputer. Therefore, the master can perform more optimal processing.
- an external device access that performs a prefetch operation for reading data from an external device and a prefetch data read operation for outputting data read by the prefetch operation to the master in response to a request from the master.
- a device control method a prefetch request receiving step for receiving a prefetch request from the master, and a prefetch step for reading data from the external device when the prefetch request is received and storing the read data in a data storage unit
- a state holding step for holding a prefetch operation state indicating whether or not the prefetch step is completed, and a prefetch data read request acceptance step for accepting a prefetch data read request from the master.
- the control method of the external device access apparatus outputs the first information indicating the state of the prefetch operation to the master.
- the master can perform another process first if the prefetch operation is not completed during the prefetch data read operation. Therefore, the external device access apparatus control method according to the present invention can use the master efficiently.
- the present invention can be realized not only as such an external device access apparatus, but also as a control method of an external device access apparatus using characteristic means included in the external device access apparatus as a step. It can also be realized as a program that causes a computer to execute typical steps. Needless to say, such a program can be distributed via a recording medium such as a CD-ROM and a transmission medium such as the Internet.
- the present invention can provide an external device access apparatus that can efficiently use a master, a control method thereof, and a system LSI.
- FIG. 1 is a flowchart showing the flow of prefetch processing by a master when a conventional external device access apparatus is used.
- FIG. 2 is a block diagram showing the configuration of the external device access apparatus according to Embodiment 1 of the present invention.
- FIG. 3 is a flowchart showing the flow of prefetch processing by the master when the external device access apparatus according to Embodiment 1 of the present invention is used.
- FIG. 4 is a block diagram showing the configuration of the external device access apparatus according to Embodiment 2 of the present invention.
- FIG. 5 is a block diagram showing a configuration of a modification of the external device access apparatus according to Embodiment 2 of the present invention.
- FIG. 6 is a block diagram showing the configuration of the external device access apparatus according to Embodiment 3 of the present invention.
- FIG. 7 is a block diagram showing the configuration of the external device access apparatus according to Embodiment 4 of the present invention.
- FIG. 8 is a block diagram showing the configuration of the external device access apparatus according to the fifth embodiment of the present invention.
- FIG. 9 is a block diagram showing a configuration of an external device access apparatus according to Embodiment 6 of the present invention.
- FIG. 10 is a block diagram showing the configuration of the external device access apparatus according to the seventh embodiment of the present invention.
- FIG. 11 is a block diagram showing the configuration of the external device access apparatus according to the eighth embodiment of the present invention.
- FIG. 12 is a block diagram showing the configuration of the external device access apparatus according to the ninth embodiment of the present invention.
- FIG. 13 is a block diagram showing a configuration of an external device access apparatus according to Embodiment 10 of the present invention.
- FIG. 14 is a block diagram showing a configuration of an external device access apparatus according to Embodiment 11 of the present invention.
- FIG. 15 is a block diagram showing a configuration of an external device access apparatus according to Embodiment 12 of the present invention.
- the master is a device in charge of control of writing and reading such as a CPU or a microcomputer.
- An external device is a device such as a coprocessor or an accelerator that assists a CPU or a microcomputer.
- the external device has a resource that can be accessed by the master by designating an address.
- Embodiment 1 In the prefetch data read operation, the external device access apparatus according to Embodiment 1 of the present invention completes the acceptance signal indicating that the prefetch data read operation is accepted and the prefetch operation when the prefetch operation is not completed. A prefetch operation state signal indicating whether or not the data is being output is output to the master.
- Embodiment 1 of the present invention can use the master efficiently.
- FIG. 2 is a block diagram showing the configuration of the external device access apparatus according to Embodiment 1 of the present invention.
- the external device access device 103 includes an address bus 150, a write data input bus 151, a read data output bus 152, a write / read control signal (hereinafter referred to as R / W signal) bus 153, an acceptance signal bus 155, and a prefetch operation status signal. It is connected to the master 101 via the bus 156.
- the external device access device 103 is connected to the external device 102 via a write address output bus 170, a write data output bus 171, a read address output bus 172, and a read data input bus 173.
- the external device access device 103 performs a normal write operation, a prefetch operation, and a prefetch data read operation.
- the normal write operation is a normal data write operation to the external device 102.
- the prefetch operation is an operation in which data of the external device 102 is read in advance and stored in the data storage unit 113.
- the prefetch data read operation is an operation for outputting the data stored in the read data storage unit 113 to the master 101.
- the master 101 requests the external device access apparatus 103 for a normal write operation, a prefetch operation, and a prefetch data read operation.
- the external device access apparatus 103 performs a normal write operation, a prefetch operation, and a prefetch data read operation in response to a request from the master 101.
- the external device 102 stores the write data output to the write data output bus 171 at the write address output to the write address output bus 170. Further, the external device 102 reads data stored in the read address output to the read address output bus 172 and outputs the read data to the read data input bus 173.
- the master 101, the external device 102, and the external device access apparatus 103 are included in one system LSI.
- Two or more of the master 101, the external device 102, and the external device access apparatus 103 may be included in one system LSI, or may be formed as individual LSIs.
- the external device access device 103 includes a write address storage unit 110, a write data storage unit 111, a read address storage unit 112, a read data storage unit 113, an address control unit 114, a storage operation state holding unit 115, an acceptance A signal generation unit 116.
- the address control unit 114 requests a normal write operation from the master 101 (hereinafter referred to as a normal write request), a prefetch operation request (hereinafter referred to as a prefetch request), and a prefetch data read operation request (hereinafter referred to as a prefetch read request). Accept.
- the address control unit 114 is based on the address output to the address bus 150 by the master 101, the write data output to the write data input bus 151, and the R / W signal output to the R / W signal bus 153.
- the normal write request, prefetch request, and prefetch data read request are accepted.
- the address control unit 114 Recognizing that the request from 101 is a normal write request, the normal write request is accepted.
- the read data storage unit 113 has an address assigned to the access space of the master 101 and is accessible from the master 101.
- “accessible” means that the master 101 can perform at least one of reading and writing of data stored in the read data storage unit 113 by designating an address of the read data storage unit 113.
- the address control unit 114 receives the address from the master 101 when the address output to the address bus 150 is an address assigned to the read data storage unit 113 and data writing is instructed by the R / W signal. Recognizing that the request is a prefetch request, the prefetch request is accepted.
- the address control unit 114 receives an address from the master 101 when the address output to the address bus 150 is an address assigned to the read data storage unit 113 and data read is instructed by the R / W signal. Recognizing that the request is a prefetch data read request, the prefetch data read request is accepted.
- the address control unit 114 performs a normal write operation, a prefetch operation, and a prefetch data read operation in response to a normal write request, a prefetch request, and a prefetch data read request.
- the address control unit 114 normally controls the write address storage unit 110, the write data storage unit 111, the read address storage unit 112, the read data storage unit 113, the storage operation state holding unit 115, and the reception signal generation unit 116.
- a write operation, a prefetch operation, and a prefetch data read operation are performed.
- the address control unit 114 responds to a normal write request, a prefetch request, and a prefetch data read request, with a write address 160, a write permission signal 161, a read address 162, a read address permission signal 163, and a read data permission signal 164. Is generated.
- the address control unit 114 When the normal control request is received, the address control unit 114 outputs the data on the write data input bus 151 as the write address 160 and outputs the write permission signal 161. When receiving the prefetch request, the address control unit 114 outputs the data on the write data input bus 151 as the read address 162 and outputs the read address permission signal 163. The address control unit 114 outputs a read data permission signal 164 when receiving a prefetch data read request.
- the write address storage unit 110 takes in the write address 160 when the write permission signal 161 is output by the address control unit 114, and stores the fetched write address 160. The write address storage unit 110 outputs the write address 160 to be stored to the write address output bus 170.
- the write data storage unit 111 takes in the write data of the write data input bus 151 when the write permission signal 161 is output by the address control unit 114, and stores the fetched write data.
- the write data storage unit 111 outputs the write data to be stored to the write data output bus 171.
- the read address storage unit 112 takes in the read address 162 when the read address permission signal 163 is output by the address control unit 114, and stores the read address 162 taken in.
- the read address storage unit 112 outputs the read address 162 to be stored to the read address output bus 172.
- the read data storage unit 113 stores the read data output to the read data input bus 173. That is, the read data storage unit 113 stores data read by the prefetch operation. The read data storage unit 113 outputs the read data to be stored to the read data output bus 152 when the read data permission signal 164 is output by the address control unit 114.
- the storage operation state holding unit 115 holds a prefetch operation state signal that is information indicating whether or not the read data storage unit 113 is storing read data output from the external device 102.
- the prefetch operation state signal is information indicating whether or not the prefetch operation is completed.
- the storage operation state holding unit 115 holds information indicating that a storage operation is being performed when a read address is output to the read address output bus 172 by the read address storage unit 112.
- the storage operation state holding unit 115 cancels the information indicating that the storage operation is being held and indicates that the storage operation is completed. Keep information.
- the storage operation state holding unit 115 outputs the prefetch operation state signal to be held to the prefetch operation state signal bus 156 when the read data permission signal 164 is output by the address control unit 114.
- the acceptance signal generator 116 outputs to the master 101 an acceptance signal indicating that the normal write request, prefetch request, and prefetch data read request from the master 101 have been accepted. Specifically, the reception signal generation unit 116 outputs a reception signal to the reception signal bus 155 when the address control unit 114 outputs the write permission signal 161, the read address permission signal 163, or the read data permission signal 164. .
- the acceptance signal generation unit 116 immediately outputs an acceptance signal to the master 101 regardless of whether or not the prefetch operation is completed.
- the master 101 outputs write data to the write data input bus 151, outputs a write address to the address bus 150, and outputs an R / W signal instructing data write to the R / W signal bus 153.
- the write address output from the master 101 to the address bus 150 is an address different from the address assigned to the read data storage unit 113.
- the address control unit 114 determines whether the address of the address bus 150 is an address assigned to the read data storage unit 113. Since the address control unit 114 is not the address assigned to the read data storage unit 113 and the data write is instructed by the R / W signal, the address control unit 114 receives the request from the master 101 as a normal write operation. Recognize that. That is, the address control unit 114 accepts a normal write request from the master 101.
- the address control unit 114 that has received the normal write request outputs a write address 160 that is an address of the address bus 150 to the write address storage unit 110. Further, the address control unit 114 outputs the write permission signal 161 to the write address storage unit 110, the write data storage unit 111, and the acceptance signal generation unit 116.
- the write address storage unit 110 stores the write address 160 in response to the write permission signal 161.
- the write data storage unit 111 stores the write data of the write data input bus 151 in response to the write permission signal 161.
- the reception signal generation unit 116 outputs a reception signal to the reception signal bus 155 when the write address 160 and the write data are stored in the write address storage unit 110 and the write data storage unit 111, respectively. .
- the write address storage unit 110 outputs the stored write address 160 to the write address output bus 170.
- the write data storage unit 111 outputs the stored write data to the write data output bus 171.
- the write address storage unit 110 and the write data storage unit 111 hold the stored write address and write data until the external device 102 receives them.
- External device access apparatus 103 completes the normal write operation after external device 102 completes acceptance.
- the master 101 outputs a read address to the write data input bus 151, outputs an address assigned to the read data storage unit 113 to the address bus 150, and instructs the R / W signal bus 153 to write data.
- R / W signal is output.
- the address control unit 114 determines whether the address of the address bus 150 is an address assigned to the read data storage unit 113. Since the address control unit 114 is the address assigned to the read data storage unit 113 in the address bus 150 and is instructed to write data by the R / W signal, the request from the master 101 is a prefetch operation. Recognize that there is. That is, the address control unit 114 receives a prefetch request from the master 101.
- the address control unit 114 that has received the prefetch request outputs a read address 162 that is data on the write data input bus 151 to the read address storage unit 112. Further, the address control unit 114 outputs the read address permission signal 163 to the read address storage unit 112 and the acceptance signal generation unit 116.
- the read address storage unit 112 stores the read address 162 in response to the read address permission signal 163.
- the reception signal generation unit 116 outputs a reception signal to the reception signal bus 155 when the read address 162 is stored in the read address storage unit 112.
- the read address storage unit 112 outputs the stored read address 162 to the read address output bus 172. Further, the read address storage unit 112 outputs the stored read address 162 to the storage operation state holding unit 115 to indicate that the storage operation is being performed.
- the storage operation state holding unit 115 receives the read address output from the read address storage unit 112 and holds information indicating that the storage operation is being performed.
- the external device 102 receives the read address and outputs read data to the read data input bus 173.
- the read data storage unit 113 stores the read data output to the read data input bus 173.
- the storage operation state holding unit 115 receives the read data output to the read data input bus 173 and cancels the information indicating that the storage operation is being held.
- the read address storage unit 112 stores the read address 162 until the read data output to the read data input bus 173 is stored in the read data storage unit 113.
- the master 101 In the prefetch data read operation, the master 101 outputs an address assigned to the read data storage unit 113 to the address bus 150 and outputs an R / W signal instructing data read to the R / W signal bus 153.
- the address control unit 114 determines whether the address of the address bus 150 is an address assigned to the read data storage unit 113. Since the address control unit 114 is the address assigned to the read data storage unit 113 in the address bus 150 and is instructed to read data by the R / W signal, the request from the master 101 reads the prefetch data. Recognize that it is an action. That is, the address control unit 114 accepts a prefetch data read request from the master 101.
- the address control unit 114 that has received the prefetch data read request outputs the read data permission signal 164 to the read data storage unit 113, the storage operation state holding unit 115, and the reception signal generation unit 116.
- the read data storage unit 113 receives the read data permission signal 164 and outputs the stored data to the read data output bus 152.
- the storage operation state holding unit 115 receives the read data permission signal 164 and outputs a prefetch operation state signal to the prefetch operation state signal bus 156.
- the storage operation state holding unit 115 holds information indicating that the storage operation is being performed
- the storage operation state holding unit 115 outputs a prefetch operation state signal indicating that the prefetch operation is being performed, thereby indicating that the storage operation is being performed.
- a prefetch operation state signal indicating that the prefetch operation is not being executed is output.
- the reception signal generator 116 receives the read data permission signal 164 and outputs a reception signal to the reception signal bus 155.
- the reception signal generator 116 outputs a reception signal to the reception signal bus 155 even during the prefetch operation.
- FIG. 3 is a flowchart showing the flow of prefetch processing of the master 101.
- the master 101 requests a prefetch operation to the external device access apparatus 103 (S101).
- the master 101 performs a process that can be executed until the prefetch data read operation is performed (S102).
- the period during which the master 101 performs processing is a period until the prefetch operation is completed when the external device access apparatus 103 is normal.
- the master 101 requests the external device access apparatus 103 to perform a prefetch data read operation (S103).
- the master 101 receives the acceptance signal output to the acceptance signal bus 155, checks the prefetch operation state signal output to the prefetch operation state signal bus 156, and determines whether or not the prefetch operation is being executed (S104). ).
- the master 101 executes processing using the read data output to the read data output bus 152 (S105).
- the master 101 returns to the original processing (S107) and requests the external device access device 103 to read the prefetch data again (S103).
- the external device access apparatus 103 outputs an acceptance signal to the master 101 even when the external device 102 is executing the prefetch operation due to an abnormal state or the like in the prefetch data read operation. As a result, the prefetch data read operation can be completed. Therefore, even when the external device 102 has not completed the prefetch operation due to an abnormal state or the like, the master 101 can move to the next process.
- the external device access device 103 outputs a prefetch operation state signal.
- the master 101 can determine whether or not the prefetch operation is being executed during the prefetch data read operation.
- the master 101 can perform other processing when the prefetch operation is not completed. Therefore, the external device access apparatus 103 according to Embodiment 1 of the present invention can use the master 101 efficiently.
- the external device access apparatus 103 outputs the prefetch operation state signal as an interrupt signal, a thread switching signal, or a flag signal that can be processed by the master software.
- the master 101 outputs the prefetch operation state signal as an interrupt signal and a thread switching signal. Alternatively, it may be processed as a flag signal that can be processed by the master software.
- the external device access apparatus according to Embodiment 2 of the present invention is a modification of the external device access apparatus 103 according to Embodiment 1 described above.
- the external device access apparatus according to the second embodiment outputs data indicating that an error has occurred on the read data output bus 152 when the prefetch operation is not completed during the prefetch data read operation.
- FIG. 4 is a block diagram showing the configuration of the external device access apparatus according to Embodiment 2 of the present invention.
- the same elements as those in FIG. 2 are denoted by the same reference numerals, and redundant description is omitted.
- the external device access apparatus 203 according to the second embodiment further includes an error data generation unit 130 and a selector 140 in addition to the configuration of the external device access apparatus 103 according to the first embodiment.
- the external device access apparatus 203 is different from the first embodiment in that the external device access apparatus 203 is not connected to the master 101 via the prefetch operation state signal bus 156.
- the error data generation unit 130 generates predetermined error data 180 and outputs it to the selector 140.
- the selector 140 receives the read data stored in the read data storage unit 113 or the error data 180 output from the error data generation unit 130 in accordance with the prefetch operation state signal 165 output from the storage operation state holding unit 115.
- the selected read data or error data 180 is output to the read data output bus 152.
- the selector 140 selects the error data 180 when the prefetch operation state signal 165 indicates that the prefetch operation is being performed, and selects the read data when the prefetch operation state signal 165 indicates that the prefetch operation is not being performed. select.
- Normal write operation and prefetch operation are the same as those in the first embodiment.
- the prefetch data read operation will be described below.
- the selector 140 selects the error data 180 and reads the selected error data 180 when the prefetch operation state signal 165 output from the storage operation state holding unit 115 indicates that the prefetch operation is being performed. The data is output to the data output bus 152. Further, when the prefetch operation state signal 165 indicates that the prefetch operation is not being performed, the selector 140 selects the read data stored in the read data storage unit 113 and outputs the selected read data to the read data output bus 152.
- the master 101 determines that the prefetch operation is being performed and outputs the data to the read data output bus 152. If the received data is not error data 180, it can be determined that the prefetch operation has been completed.
- the external device access apparatus 203 provides the prefetch operation state signal bus 156 with the master 101 in addition to the advantages of the external device access apparatus 103 according to the first embodiment. There is an advantage that it is not necessary.
- the external device access apparatus 103 may output the read address output from the read address storage unit 112 instead of the error data 180 when the prefetch operation is being executed.
- FIG. 5 is a diagram showing a configuration of a modified example of the external device access apparatus 203 according to Embodiment 2 of the present invention.
- the external device access apparatus 213 shown in FIG. 5 does not include the error data generation unit 130, and the read address stored in the read address storage unit 112 is input to the selector 140 instead of the error data 180.
- the selector 140 selects a read address stored in the read address storage unit 112 and outputs the selected read address to the read data output bus 152.
- the master 101 can determine that the prefetch operation is being executed.
- An external device access apparatus is a modification of external device access apparatus 103 according to Embodiment 1 described above.
- the external device access apparatus according to the third embodiment further performs a prefetch execution state read operation that outputs information indicating whether or not the prefetch operation has been completed.
- FIG. 6 is a block diagram showing the configuration of the external device access apparatus according to Embodiment 3 of the present invention.
- the same elements as those in FIG. 2 are denoted by the same reference numerals, and redundant description is omitted.
- the external device access apparatus 303 according to the third embodiment further includes a selector 141 in addition to the configuration of the external device access apparatus 103 according to the first embodiment.
- the external device access apparatus 303 differs from the external device access apparatus 103 in the configuration of the address control unit 314.
- the external device access apparatus 303 is different from the first embodiment in that the external device access apparatus 303 is not connected to the master 101 via the prefetch operation state signal bus 156.
- the external device access device 303 performs a prefetch execution state read operation in addition to a normal write operation, a prefetch operation, and a prefetch data read operation.
- the prefetch execution state read operation is an operation for outputting to the master 101 information indicating whether or not the prefetch operation is currently being executed.
- the storage operation state holding unit 115 has an address assigned to the access space of the master 101 and can be accessed from the master 101.
- the address control unit 314 accepts a request for a prefetch execution state read operation (hereinafter referred to as a prefetch execution state read request) from the master 101. Specifically, when the address output to the address bus 150 is an address assigned to the storage operation state holding unit 115 and the data read is instructed by the R / W signal, the address control unit 314 Recognizing that the request from the master 101 is a prefetch execution state read request, the prefetch execution state read request is accepted.
- a prefetch execution state read request a request for a prefetch execution state read operation
- the address control unit 314 performs a prefetch execution state read operation in response to a prefetch execution state read request.
- the address control unit 314 performs a prefetch execution state read operation by controlling the read data storage unit 113 and the selector 141.
- the address control unit 314 outputs a read data permission signal 164 and a storage operation state read permission signal 181 when receiving a prefetch execution state reading request.
- the selector 141 selects the read data stored in the read data storage unit 113 and outputs the selected read data to the read data output bus 152 when the storage operation state read permission signal 181 is not output by the address control unit 314. To do.
- the selector 141 selects the prefetch operation state signal 165 stored in the storage operation state read data storage unit 113 when the storage operation state read permission signal 181 is output by the address control unit 314, and selects the selected prefetch operation state signal. 165 is read and output to the data output bus 152.
- Normal write operation and prefetch operation are the same as those in the first embodiment.
- the prefetch data read operation will be described below.
- the selector 141 selects the read data stored in the read data storage unit 113 and reads the selected read data because the storage operation state read permission signal 181 is not output by the address control unit 314. The data is output to the data output bus 152.
- the master 101 In the prefetch execution state read operation, the master 101 outputs an address assigned to the storage operation state holding unit 115 to the address bus 150 and outputs an R / W signal instructing data read to the R / W signal bus 153.
- the address control unit 314 determines whether the address of the address bus 150 is an address assigned to the read data storage unit 113 and whether it is an address assigned to the read storage operation state holding unit 115. Since the address control unit 314 is the address assigned to the storage operation state holding unit 115 and the data read is instructed by the R / W signal, the address control unit 314 executes the prefetch request. Recognize that this is a status read operation.
- the address control unit 314 outputs the read data permission signal 164 to the read data storage unit 113, the storage operation state holding unit 115, and the reception signal generation unit 116, and outputs the storage operation state read permission signal 181 to the selector 141.
- the storage operation state holding unit 115 receives the read data permission signal 164 and outputs a prefetch operation state signal 165.
- the selector 141 selects the prefetch operation state signal 165 and outputs the selected prefetch operation state signal 165 to the read data output bus 152 since the storage operation state read permission signal 181 is output by the address control unit 314.
- the reception signal generator 116 receives the read data permission signal 164 and outputs a reception signal to the reception signal bus 155.
- the external device access apparatus 303 provides the prefetch operation state signal bus 156 with the master 101 in addition to the advantages of the external device access apparatus 103 according to the first embodiment. There is an advantage that it is not necessary.
- the master 101 can perform an unnecessary prefetch data read operation by performing a prefetch execution state read operation before performing a prefetch data read operation.
- An external device access apparatus is a modification of external device access apparatus 103 according to Embodiment 1 described above.
- the external device access apparatus according to the fourth embodiment outputs an external device status signal indicating the status of the external device 102 to the master 101.
- FIG. 7 is a block diagram showing the configuration of the external device access apparatus according to Embodiment 4 of the present invention.
- the same elements as those in FIG. 2 are denoted by the same reference numerals, and redundant description is omitted.
- the external device access apparatus 403 according to the fourth embodiment further includes a status signal storage unit 117 and a selector 142 in addition to the configuration of the external device access apparatus 103 according to the first embodiment.
- the external device access apparatus 403 is connected to the master 101 via the external device status signal output bus 157 in addition to the connection relationship of the first embodiment, and is connected to the external device 102 via the external device status signal input bus 174. Connected.
- the external device 102 outputs an external device status signal to the external device status signal input bus 174.
- the external device state signal is a signal indicating the operation state of the external device 102, for example, an abnormal state or a signal indicating that a write or read operation is being performed due to access from another master.
- the status signal storage unit 117 captures and stores an external device status signal output to the external device status signal input bus 174 by the external device 102 when the prefetch operation is completed.
- the status signal storage unit 117 outputs an external device status signal to be stored to the selector 142.
- the selector 142 In response to the prefetch operation state signal output to the prefetch operation state signal bus 156, the selector 142 outputs the external device state signal output to the external device state signal input bus 174 or the external device stored in the state signal storage unit 117.
- the status signal is selected, and the selected external device status signal is output to the external device status signal output bus 157.
- the selector 142 selects the external device status signal of the external device status signal input bus 174, and the prefetch operation status signal is not in the prefetch operation. Is selected, the external device status signal stored in the status signal storage unit 117 is selected.
- the normal write operation is the same as in the first embodiment.
- the status signal storage unit 117 captures and stores the external device status signal of the external device status signal input bus 174.
- the prefetch data read operation will be described below.
- the selector 142 sends the external device state signal of the external device state signal input bus 174 to the external device. Output to the status signal output bus 157. Further, when the prefetch operation state signal indicates that the prefetch operation is not in progress, the selector 142 outputs the external device state signal stored in the state signal storage unit 117 to the external device state signal output bus 157.
- the external device access apparatus 403 notifies the master 101 of the current state of the external device 102, and when the prefetch operation has been completed, The master 101 is notified of the state of the external device 102.
- the external device access apparatus 403 knows the state of the external device 102 in which the master 101 is executing prefetching in addition to the advantages of the external device access apparatus 103 according to the first embodiment. There is an advantage that you can. As a result, the master 101 can perform optimal processing according to the state of the external device 102.
- An external device access apparatus is a modification of external device access apparatus 403 according to Embodiment 4 described above.
- the external device access apparatus according to the fifth embodiment selects whether to output the acceptance signal immediately or to output the acceptance signal after completion of the prefetch operation according to the state of the external device 102 when the prefetch operation is being executed. To do.
- FIG. 8 is a block diagram showing the configuration of the external device access apparatus according to the fifth embodiment of the present invention.
- symbol is attached
- the external device access apparatus 503 according to the fifth embodiment is different from the external device access apparatus 403 according to the fourth embodiment in the configuration of the reception signal generation unit 516.
- the accept signal generation unit 516 receives the master signal according to the external device status signal of the external device status signal input bus 174 regardless of whether or not the prefetch operation is completed.
- the operation of outputting to the master 101 or the operation of outputting the acceptance signal to the master 101 after completion of the prefetch operation is selectively performed.
- the reception signal generation unit 516 responds to the read data permission signal 164, the prefetch operation state signal output from the storage operation state holding unit 115, and the external device state signal of the external device state signal input bus 174.
- the operation for outputting the acceptance signal to the acceptance signal bus 155 is selected.
- the reception signal generation unit 516 When the prefetch operation state signal indicates that the prefetch operation is not in progress, the reception signal generation unit 516 outputs the reception signal to the reception signal bus 155 when the read data permission signal 164 is output by the address control unit 114. .
- reception signal generation unit 516 indicates that the prefetch operation state signal indicates that the prefetch operation is being performed and the external device state signal indicates that the external device 102 is operating normally. After the operation is completed, an acceptance signal is output to the acceptance signal bus 155.
- reception signal generation unit 516 indicates that the prefetch operation state signal indicates that the prefetch operation is being performed, and the external device state signal indicates that the external device 102 is in an abnormal state. Without waiting for completion, when the read data permission signal 164 is output by the address control unit 114, the reception signal is output to the reception signal bus 155.
- the external device access apparatus 503 outputs the acceptance signal immediately or the acceptance signal after completion of the prefetch operation, depending on the state of the external device 102 when the prefetch operation is being executed. Select whether to output.
- the master 101 does not always have to perform the prefetch data read operation with a maximum latency period, and the minimum latency period can be reduced.
- the prefetch data read operation may be performed after emptying. Therefore, the external device access apparatus 503 according to the fifth embodiment can use the master 101 more efficiently.
- An external device access apparatus is a modification of external device access apparatus 403 according to Embodiment 4 described above.
- the external device access apparatus according to the sixth embodiment further performs a prefetch stop operation that stops the prefetch operation.
- FIG. 9 is a block diagram showing the configuration of the external device access apparatus according to Embodiment 6 of the present invention.
- symbol is attached
- the external device access apparatus 603 according to the sixth embodiment differs from the external device access apparatus 403 according to the fourth embodiment in the configuration of the read address storage unit 612 and the storage operation state holding unit 615.
- the external device access apparatus 603 includes a prefetch stop control unit 131 in addition to the configuration of the external device access apparatus 403.
- the external device access apparatus 603 is further connected to the external device 102 via the read stop signal bus 175.
- External device access device 603 performs prefetch stop operation in addition to normal write operation, prefetch operation, and prefetch data read operation.
- the prefetch stop operation is an operation to stop the currently executing prefetch operation.
- the prefetch stop control unit 131 has an address assigned to the access space of the master 101 and can be accessed from the master 101.
- the address control unit 614 receives a request for prefetch stop operation from the master 101 (hereinafter, prefetch stop request). Specifically, when the address output to the address bus 150 is an address assigned to the prefetch stop control unit 131 and data writing is instructed by the R / W signal, the address control unit 614 Recognizing that the request from 101 is a prefetch stop request, the prefetch stop request is accepted.
- the address control unit 614 performs a prefetch stop operation in response to the prefetch stop request.
- the address control unit 614 performs a prefetch stop operation by controlling the prefetch stop control unit 131.
- the address control unit 614 outputs the write address 160 and the write permission signal 161 to the prefetch stop control unit 131 when receiving the prefetch stop request.
- the prefetch stop control unit 131 outputs a read stop signal to the read stop signal bus 175 according to the write data of the write data input bus 151, the write address 160, and the write permission signal 161. Specifically, the prefetch stop control unit 131 performs address control when the write address 160 is an address assigned to the prefetch stop control unit 131 and the write data on the write data input bus 151 has a predetermined value. When the write permission signal 161 is output by the unit 614, the read stop signal is output to the read stop signal bus 175.
- the read address storage unit 612 cancels the held read address when the prefetch stop control unit 131 outputs a read stop signal.
- the storage operation state holding unit 615 cancels the information indicating that the storage operation is being held when the read stop signal is output by the prefetch stop control unit 131.
- the external device 102 suspends the currently executing read operation when the prefetch stop control unit 131 outputs a read stop signal to the read stop signal bus 175.
- the normal write operation, prefetch operation, and prefetch data read operation are the same as those in the fourth embodiment.
- the prefetch stop operation is described below.
- the master 101 In the prefetch execution state read operation, the master 101 outputs the address assigned to the prefetch stop control unit 131 to the address bus 150 and outputs an R / W signal instructing data writing to the R / W signal bus 153.
- the address control unit 614 determines whether the address of the address bus 150 is an address assigned to the read data storage unit 113 and whether it is an address assigned to the prefetch stop control unit 131.
- the address control unit 614 is the address assigned to the prefetch stop control unit 131 in the address bus 150 and is instructed to write data by the R / W signal. Recognize that.
- the address control unit 614 outputs the write permission signal 161 to the write data storage unit 111, and outputs the write permission signal 161 and the address of the address bus 150 to the prefetch stop control unit 131 as the write address 160.
- the prefetch stop control unit 131 allows the address control unit 614 to write.
- a read stop signal is output to the read stop signal bus 175.
- the read address storage unit 612 receives the read stop signal and cancels the held read address.
- the storage operation state holding unit 615 receives the read stop signal and cancels the information indicating that the storage operation is being held.
- the external device 102 receives the reading stop signal and stops the reading operation currently being executed.
- the external device access apparatus 603 according to the sixth embodiment stops the prefetch operation in response to a request from the master 101. Accordingly, the master 101 can stop the prefetch operation according to the state of the external device. Therefore, the external device access apparatus 603 according to the sixth embodiment of the present invention has an advantage that the external device 102 can be used more efficiently in addition to the advantage of the external device access apparatus 403 according to the fourth embodiment.
- An external device access apparatus is a modification of external device access apparatus 603 according to Embodiment 6 described above.
- the external device access apparatus according to the seventh embodiment stops the prefetch operation according to the state of the external device 102 when the prefetch operation is being executed at the time of reading the prefetch data.
- FIG. 10 is a block diagram showing the configuration of the external device access apparatus according to the seventh embodiment of the present invention.
- symbol is attached
- the external device access apparatus 703 according to the seventh embodiment is different from the external device access apparatus 603 according to the sixth embodiment in the configuration of the prefetch stop control unit 731.
- the external device access device 703 performs a normal write operation, a prefetch operation, and a prefetch data read operation, and does not perform a prefetch stop operation in response to a request from the master 101.
- the configuration of the address control unit 114 is the same as that in the fourth embodiment.
- the prefetch stop control unit 731 uses the external device state signal input bus 174. In accordance with the external device status signal, control to stop the prefetch operation is performed.
- the prefetch cancellation control unit 731 indicates that the prefetch operation state signal indicates that the prefetch operation is being performed, and the external device state signal indicates that the external device 102 is in an abnormal state.
- the read data permission signal 164 is output by 114, a read stop signal is output to the read stop signal bus 175.
- the external device access device 703 stops the prefetch operation. Thereby, the master 101 does not need to request the prefetch stop operation. Therefore, the external device access apparatus 703 according to the seventh embodiment of the present invention has an advantage that the processing of the master 101 can be reduced in addition to the advantages of the external device access apparatus 703 according to the sixth embodiment.
- An external device access apparatus is a modification of external device access apparatus 403 according to Embodiment 4 described above.
- the external device access apparatus according to the eighth embodiment outputs a prefetch operation state signal 165 to the external device state signal output bus 157 when prefetch is being executed.
- FIG. 11 is a block diagram showing the configuration of the external device access apparatus according to the eighth embodiment of the present invention. Elements similar to those in FIGS. 6 and 7 are denoted by the same reference numerals, and redundant description is omitted.
- the external device access apparatus 803 according to the eighth embodiment is different from the external device access apparatus 403 according to the fourth embodiment in the configuration of the storage operation state holding unit 815, the selector 144, and the address control unit 314.
- the configuration of the address control unit 314 is the same as that in the third embodiment.
- the external device access apparatus 803 includes a selector 143 in addition to the configuration of the external device access apparatus 403.
- the storage operation state holding unit 815 further stores a prefetch data read state signal 182 that is a prefetch operation state when a prefetch data read request is accepted. That is, the prefetch data read state signal 182 indicates the execution state of the prefetch operation when prefetch data is read.
- the storage operation state holding unit 815 outputs a prefetch data read state signal 182 to be stored to the selector 142.
- the selector 143 selects the read data stored in the read data storage unit 113 and outputs the selected read data to the read data output bus 152 when the storage operation state read permission signal 181 is not output by the address control unit 314. To do.
- the selector 141 selects the prefetch data read state signal 182 output from the storage operation state read data storage unit 113, and the selected prefetch data.
- a read state signal 182 is output to the read data output bus 152.
- the selector 144 selects the prefetch operation state signal 165 or the external device state signal stored in the state signal storage unit 117 according to the prefetch operation state signal 165, and selects the selected prefetch operation state signal 165 or the external device state signal.
- the data is output to the external device status signal output bus 157.
- the selector 144 selects the prefetch operation state signal 165 when the prefetch operation state signal 165 indicates that the prefetch operation is being performed, and the state signal when the prefetch operation state signal indicates that the prefetch operation is not being performed.
- An external device status signal stored in the storage unit 117 is selected.
- the prefetch data read operation will be described below.
- the selector 143 selects the read data stored in the read data storage unit 113 and reads the selected read data. The data is output to the data output bus 152.
- the selector 144 outputs a prefetch operation state signal 165 to the external device state signal output bus 157 when the prefetch operation is being executed, and is stored in the state signal storage unit 117 when the prefetch operation is completed. Status signal is output to the external device status signal output bus 157.
- the storage operation state holding unit 115 stores the prefetch execution state at the time of the prefetch data read operation.
- the external device access device 803 outputs the read data stored in the read data storage unit 113 to the read data output bus 152.
- the prefetch operation state signal 165 is output to the external device state signal.
- the master 101 can determine whether or not the external device access device 803 is executing the prefetch operation during the prefetch data read operation.
- the selector 143 selects the prefetch data read state signal 182 output by the storage operation state holding unit 815.
- the selected prefetch data read state signal 182 is output to the read data output bus 152.
- the selector 144 outputs a prefetch operation state signal 165 to the external device state signal output bus 157 when the prefetch operation is being executed, and is stored in the state signal storage unit 117 when the prefetch operation is completed. Status signal is output to the external device status signal output bus 157.
- the external device access apparatus 803 outputs the prefetch operation state signal 165 to the external device state signal output bus 157 when the prefetch operation is being performed in the prefetch execution state read operation. .
- the master 101 can determine whether or not the external device access device 803 is executing the prefetch operation by requesting the prefetch execution state read operation.
- the external device access device 803 In the prefetch execution state read operation, when the prefetch operation is completed, the external device access device 803 outputs a prefetch data read state signal 182 indicating whether or not the prefetch operation was being executed during the prefetch read operation.
- the data is output to the read data output bus 152, and the state of the external device 102 during the prefetch read operation is output to the external device state signal output bus 157.
- the master 101 can know the state of the external device 102 in which the master 101 is executing prefetch.
- the external device access apparatus 803 according to the eighth embodiment of the present invention is prefetched in addition to the advantages of the external device access apparatus 303 according to the third embodiment and the external device access apparatus 403 according to the fourth embodiment.
- the operation state signal bus 156 and the external device state signal output bus 157 can be integrated.
- An external device access apparatus is a modification of external device access apparatus 103 according to Embodiment 1 described above.
- the external device access apparatus according to the ninth embodiment selects whether to output the acceptance signal immediately or to output the acceptance signal after completion of the prefetch operation in accordance with the read acceptance control signal output by the master 101.
- FIG. 12 is a block diagram showing the configuration of the external device access apparatus according to the ninth embodiment of the present invention.
- the same elements as those in FIG. 2 are denoted by the same reference numerals, and redundant description is omitted.
- the external device access apparatus 903 according to the ninth embodiment is different from the external device access apparatus 103 according to the first embodiment in the configuration of the reception signal generation unit 916.
- the external device access apparatus 903 is connected to the master 101 via the read acceptance control signal bus 158 in addition to the connection relationship of the first embodiment.
- the acceptance signal generation unit 916 completes the prefetch operation in response to the prefetch operation state signal of the prefetch operation state signal bus 156 and the read acceptance control signal of the read acceptance control signal bus 158 when the prefetch data read request is accepted.
- An operation for outputting a reception signal to the master 101 or an operation for outputting a reception signal to the master 101 after completion of the prefetch operation is selectively performed regardless of whether or not the reception is performed.
- the acceptance signal generation unit 916 receives the acceptance signal when the read data permission signal 164 is output by the address control unit 114. Output to bus 155.
- the acceptance signal generation unit 916 receives the acceptance signal after the prefetch operation is completed. Is output to the reception signal bus 155.
- reception signal generation unit 916 indicates that the prefetch operation state signal indicates that the prefetch operation is being performed and the read reception control signal is the second logic, without waiting for the completion of the prefetch operation.
- the reception signal is output to the reception signal bus 155.
- the external device access apparatus 903 outputs the acceptance signal immediately or performs prefetching when the prefetch operation is being executed according to the read acceptance control signal of the read acceptance control signal bus 158. Select whether to output an acceptance signal after the operation is completed.
- the master 101 can selectively cause the external device access apparatus 903 to perform the operation of the first embodiment described above or the operation of returning an acceptance signal after the completion of the prefetch operation.
- the master 101 may output the output of the read acceptance control signal in synchronization with the prefetch data read request by an instruction from the CPU or the microcomputer. Thereby, the master 101 can select two operations for each prefetch read operation. Therefore, the master 101 can perform more optimal processing.
- two operations are selected by the read acceptance control signal output to the read acceptance control signal bus 158, but two addresses are assigned to the read data storage unit 113, and one of the two addresses is selected. Two operations may be selected by selecting.
- the address control unit 114 outputs a first prefetch data read request that immediately outputs an acceptance signal when the first address is output from the two addresses assigned to the read data storage unit 113 from the master 101. Accept.
- the address control unit 114 outputs a second prefetch data that outputs an acceptance signal after the prefetch operation is completed when the second address is output from the two addresses assigned to the read data storage unit 113 from the master 101. Accept the request.
- the address control unit 114 outputs a control signal according to whether the received prefetch data read request is a first prefetch data read request or a second prefetch data read request to the acceptance signal generation unit 916.
- the acceptance signal generation unit 916 performs an operation of immediately outputting an acceptance signal when a first prefetch data read request is accepted, and performs a prefetch operation when a second prefetch data read request is accepted.
- An operation of outputting an acceptance signal may be performed after completion of.
- An external device access apparatus is a modification of external device access apparatus 103 according to Embodiment 1 described above.
- the external device access apparatus according to the tenth embodiment performs a prefetch read control operation for setting whether to output an acceptance signal immediately or to output an acceptance signal after completion of the prefetch operation.
- FIG. 13 is a block diagram showing the configuration of the external device access apparatus according to the tenth embodiment of the present invention.
- the same elements as those in FIG. 2 are denoted by the same reference numerals, and redundant description is omitted.
- the external device access apparatus 1003 according to the tenth embodiment further includes a read control unit 132 in addition to the configuration of the external device access apparatus 103 according to the first embodiment.
- the external device access apparatus 1003 differs from the external device 102 in the configuration of the address control unit 1014 and the reception signal generation unit 1016.
- External device access apparatus 1003 performs a prefetch read control operation in addition to a normal write operation, a prefetch operation, and a prefetch data read operation.
- the prefetch read control operation is an operation for setting whether to output a reception signal immediately or to output a reception signal after completion of the prefetch operation when the prefetch operation is being executed during the prefetch data read operation.
- the read control unit 132 has an address assigned to the access space of the master 101 and can be accessed from the master 101.
- the address control unit 1014 accepts a request for a prefetch read control operation (hereinafter referred to as a prefetch read control request) from the master 101. Specifically, when the address output to the address bus 150 is the address assigned to the read control unit 132 and the data write is instructed by the R / W signal, the address control unit 1014 determines that the master 101 Is recognized as a prefetch read control request, and a prefetch read control request is accepted.
- a prefetch read control request a request for a prefetch read control operation
- the address control unit 1014 performs a prefetch read control operation in response to a prefetch read control request.
- the address control unit 1014 performs a prefetch read control operation by controlling the read control unit 132.
- the address control unit 1014 outputs the write address 160 and the write permission signal 161 to the read control unit 132 when receiving the prefetch read control request.
- the read control unit 132 When a prefetch read control operation request is accepted, the read control unit 132 outputs a reception signal immediately after the prefetch operation is completed according to the designation from the master 101 or a read control signal 183 indicating whether the acceptance signal is output after completion of the prefetch operation. Is set. The read control unit 132 outputs the set read control signal 183 to the acceptance signal generation unit 1016.
- the write address 160 is an address assigned to the read control unit 132, and when the write permission signal 161 is output by the address control unit 1014, the read control unit 132 uses the write data input bus 151. A read control signal 183 corresponding to the write data is held.
- the acceptance signal generation unit 1016 outputs an acceptance signal to the acceptance signal bus 155 according to the read data permission signal 164, the prefetch operation state signal output from the storage operation state holding unit 115, and the read control signal 183.
- the acceptance signal generation unit 1016 receives the acceptance signal when the read data permission signal 164 is output by the address control unit 114. Output to bus 155.
- the acceptance signal generation unit 1016 indicates that the prefetch operation status signal indicates that the prefetch operation is being performed, and the read control signal 183 indicates that the acceptance signal is output after the completion of the prefetch operation. After the operation is completed, an acceptance signal is output to the acceptance signal bus 155.
- reception signal generation unit 1016 indicates that the prefetch operation is completed when the prefetch operation state signal indicates that the prefetch operation is being performed and the read control signal 183 indicates that the reception signal is to be output immediately. Without waiting, when the read data permission signal 164 is output by the address control unit 114, the reception signal is output to the reception signal bus 155.
- Normal write operation and prefetch operation are the same as those in the first embodiment.
- the prefetch data read operation will be described below.
- the reception signal generation unit 1016 selects whether to output a reception signal immediately or to output a reception signal after completion of the prefetch operation in accordance with the read control signal 183.
- the reception signal generation unit 1016 sends the reception signal to the reception signal bus 155 after the prefetch operation is completed. Output.
- the reception signal generation unit 1016 If the read control signal 183 indicates that the reception signal is to be output immediately, the reception signal generation unit 1016 outputs the read data permission signal 164 by the address control unit 114 without waiting for the completion of the prefetch operation.
- the acceptance signal is output to the acceptance signal bus 155.
- the master 101 In the prefetch read control operation, the master 101 outputs an address assigned to the read control unit 132 to the address bus 150 and outputs an R / W signal instructing data writing to the R / W signal bus 153.
- the address control unit 1014 determines whether the address of the address bus 150 is an address assigned to the read data storage unit 113 and whether the address is assigned to the read control unit 132.
- the address controller 1014 is the address assigned to the read controller 132 in the address bus 150 and is instructed to write data by the R / W signal, so that the request from the master 101 is a prefetch read control operation. Recognize that.
- the address control unit 1014 outputs the write permission signal 161 to the write data storage unit 111, and outputs the write permission signal 161 and the address of the address bus 150 to the read control unit 132 as the write address 160.
- the read control unit 132 Since the write address 160 is an address assigned to the read control unit 132, the read control unit 132 responds to the write data on the write data input bus 151 when the write permission signal 161 is output by the address control unit 614.
- the read control signal 183 stored is stored, and the stored read control signal 183 is output to the reception signal generator 1016.
- reception signal generation unit 1016 receives the write permission signal 161 output from the address control unit 1014, and outputs a reception signal to the reception signal bus 155 when the read control unit 132 stores the read control signal 183.
- the external device access apparatus 1003 sets whether to output the acceptance signal immediately or to output the acceptance signal after completion of the prefetch operation by the prefetch read control operation.
- the master 101 can switch between the operation of the above-described first embodiment of the external device access apparatus 1003 and the operation of returning an acceptance signal after completion of the prefetch operation.
- the external device access apparatus 1003 according to the tenth embodiment does not need to newly provide the read acceptance control signal bus 158 with the master 101 with respect to the external device access apparatus 903 according to the ninth embodiment.
- An external device access apparatus is a modification of external device access apparatus 103 according to Embodiment 1 described above.
- the external device access apparatus according to the eleventh embodiment is information indicating the time from when a prefetch data read request is received from the master 101 to when the prefetch operation is completed when the prefetch data is being read. Output some debugging information.
- FIG. 14 is a block diagram showing a configuration of an external device access apparatus according to Embodiment 11 of the present invention.
- the same elements as those in FIG. 2 are denoted by the same reference numerals, and redundant description is omitted.
- the external device access apparatus 1103 according to the eleventh embodiment further includes a cycle count unit 118 in addition to the configuration of the external device access apparatus 103 according to the first embodiment.
- the external device access apparatus 1103 is different from the external device 102 in the configuration of the reception signal generation unit 1116.
- the external device access apparatus 1103 is connected to the master 101 via the debug information bus 159 in addition to the connection relationship of the external device access apparatus 103. Further, the external device access device 1103 is not connected to the master 101 via the prefetch operation state signal bus 156.
- the reception signal generation unit 1116 When the prefetch operation state signal 165 indicates that the prefetch operation is not in progress, the reception signal generation unit 1116 outputs the reception signal to the reception signal bus 155 when the read data permission signal 164 is output by the address control unit 114. To do.
- the reception signal generation unit 1016 outputs a reception signal to the reception signal bus 155 after the prefetch operation is completed.
- the cycle count unit 118 counts the time from when the prefetch data read request is accepted until the prefetch operation is completed. Specifically, the cycle count unit 118 starts from the time when the read data permission signal 164 is output by the address control unit 114 and the prefetch operation state signal 165 held by the storage operation state holding unit 115 is being executed. The number of cycles until the prefetch operation is changed to completion is counted. The cycle count unit 118 outputs the counted number of cycles to the debug information bus 159 as debug information.
- the external device access apparatus 1103 performs prefetch operation from the time when a prefetch data read request is received from the master 101 during prefetch data read operation.
- Debug information that is information indicating the time until completion is output to the debug information bus 159.
- the master 101 can change the timing for requesting the prefetch data read operation to the time after the prefetch operation is completed. Therefore, the master 101 does not need to request a plurality of prefetch data read operations, so that the efficiency can be improved.
- An external device access apparatus is a modification of external device access apparatus 1103 according to Embodiment 11 described above.
- the external device access apparatus according to the twelfth embodiment performs a debug information read operation for reading debug information and outputting it to the data output bus 152.
- FIG. 15 is a block diagram showing a configuration of an external device access apparatus according to Embodiment 12 of the present invention. Note that the same elements as those in FIG. 14 are denoted by the same reference numerals, and redundant description is omitted.
- the external device access apparatus 1203 according to the twelfth embodiment further includes a count value storage unit 133 and a selector 145 in addition to the configuration of the external device access apparatus 1103 according to the eleventh embodiment.
- the external device access apparatus 1203 is different from the external device access apparatus 1103 in the configuration of the address control unit 1214.
- the configuration of the reception signal generation unit 116 is the same as that in the first embodiment.
- the external device access apparatus 1203 is connected to the master 101 via the prefetch operation state signal bus 156 and not connected to the master 101 via the debug information bus 159, as in the connection relationship of the first embodiment.
- External device access device 1203 performs debug information read operation in addition to normal write operation, prefetch operation, and prefetch data read operation.
- the debug information read operation includes debug information that is information indicating the time from when the prefetch data read request is received from the master 101 to when the prefetch operation is completed when the prefetch operation is being executed during the prefetch data read operation. It is an operation to output.
- the count value storage unit 133 has an address assigned to the access space of the master 101 and can be accessed from the master 101.
- the count value storage unit 133 stores debug information output by the cycle count unit 118 when the prefetch operation state signal of the prefetch operation state signal bus 156 is changed from execution of the prefetch operation to completion of the prefetch operation.
- the address control unit 1214 accepts a request for a debug information read operation from the master 101 (hereinafter referred to as a debug information read request). Specifically, when the address output to the address bus 150 is the address assigned to the count value storage unit 133 and the data read is instructed by the R / W signal, the address control unit 1214 Recognizing that the request from 101 is a debug information read request, the debug information read request is accepted.
- the address control unit 1214 performs a debug information read operation in response to a debug information read request.
- the address control unit 1214 controls the selector 145 to perform a debug information read operation.
- the address control unit 1214 outputs a count value read permission signal 184 to the selector 145 when receiving a debug information read request.
- the selector 145 selects the read data stored in the read data storage unit 113 and the debug information stored in the count value storage unit 133 according to the count value read permission signal 184 output from the address control unit 1214.
- the selected read data or debug information is output to the read data output bus 152.
- the selector 145 selects read data when the address control unit 1214 does not output the count value read permission signal 184, and the selector 145 selects the count value read permission signal 184 when the address control unit 1214 outputs the count value read permission signal 184. , Select debug information.
- the prefetch data read operation will be described below.
- the cycle count unit 118 counts the number of cycles from the time when the prefetch data read operation is performed until the prefetch operation is completed. To do.
- the cycle count unit 118 outputs the counted number of cycles to the count value storage unit 133 as debug information.
- the count value storage unit 133 stores debug information output by the cycle count unit 118 when the prefetch operation state signal of the prefetch operation state signal bus 156 is changed from execution of the prefetch operation to completion of the prefetch operation.
- the selector 145 outputs the read data stored in the read data storage unit 113 to the read data output bus 152 because the count value read permission signal 184 is not output by the address control unit 1214.
- the master 101 outputs the address assigned to the count value storage unit 133 to the address bus 150 and outputs the R / W signal that instructs the R / W signal bus 153 to read data.
- the address control unit 1214 determines whether the address of the address bus 150 is an address assigned to the read data storage unit 113 and whether it is an address assigned to the count value storage unit 133. Since the address control unit 1214 is the address assigned to the count value storage unit 133 with the address of the address bus 150 and is instructed to read data by the R / W signal, the request from the master 101 reads the debug information. Recognize that it is an action.
- the address control unit 1214 outputs a count value read permission signal 184 to the selector 145.
- the selector 145 reads the debug information stored in the count value storage unit 133 and outputs it to the data output bus 152 because the count value read permission signal 184 is output by the address control unit 1214.
- the external device access apparatus 1203 reads the debug information and outputs it to the data output bus 152 by the debug information read operation.
- the master 101 can change the timing for requesting the prefetch data read operation to the time after the prefetch operation is completed. Therefore, the master 101 does not need to request a plurality of prefetch data read operations, so that the efficiency can be improved.
- the external device access apparatus 1203 has an advantage that the debug information bus 159 does not need to be provided between the external device access apparatus 1103 according to the eleventh embodiment and the master 101.
- the present invention can be applied to an external device access apparatus and a system LSI including a master such as a CPU or a microcomputer and an external device such as a coprocessor or an accelerator.
- a master such as a CPU or a microcomputer
- an external device such as a coprocessor or an accelerator.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Bus Control (AREA)
- Memory System Of A Hierarchy Structure (AREA)
Abstract
Description
102 外部デバイス
103、203、213、303、403、503、603、703、803、903、1003、1103、1203 外部デバイスアクセス装置
110 書き込みアドレス格納部
111 書き込みデータ格納部
112、612 読み出しアドレス格納部
113 読み出しデータ格納部
114、314、614、1014、1214 アドレス制御部
115、615、815 格納動作状態保持部
116、516、916、1016、1116 受理信号生成部
117 状態信号格納部
118 サイクルカウント部
130 エラーデータ生成部
131、731 プリフェッチ中止制御部
132 読み出し制御部
133 カウント値格納部
140、141、142、143、144、145 セレクタ
150 アドレスバス
151 書き込みデータ入力バス
152 読み出しデータ出力バス
153 R/W信号バス
155 受理信号バス
156 プリフェッチ動作状態信号バス
157 外部デバイス状態信号出力バス
158 読み出し受理制御信号バス
159 デバッグ情報バス
160 書き込みアドレス
161 書き込み許可信号
162 読み出しアドレス
163 読み出しアドレス許可信号
164 読み出しデータ許可信号
165 プリフェッチ動作状態信号
170 書き込みアドレス出力バス
171 書き込みデータ出力バス
172 読み出しアドレス出力バス
173 読み出しデータ入力バス
174 外部デバイス状態信号入力バス
175 読み出し中止信号バス
180 エラーデータ
181 格納動作状態読み出し許可信号
182 プリフェッチデータ読み出し時状態信号
183 読み出し制御信号
184 カウント値読み出し許可信号
本発明の実施の形態1に係る外部デバイスアクセス装置は、プリフェッチデータ読み出し動作において、プリフェッチ動作が完了していない場合に、プリフェッチデータ読み出し動作を受け付けたことを示す受理信号と、プリフェッチ動作が完了しているか否かを示すプリフェッチ動作状態信号とをマスタに出力する。
本発明の実施の形態2に係る外部デバイスアクセス装置は、上述した実施の形態1に係る外部デバイスアクセス装置103の変形例である。実施の形態2に係る外部デバイスアクセス装置は、プリフェッチデータ読み出し動作時においてプリフェッチ動作が完了していない場合には、読み出しデータ出力バス152にエラーが生じたことを示すデータを出力する。
本発明の実施の形態3に係る外部デバイスアクセス装置は、上述した実施の形態1に係る外部デバイスアクセス装置103の変形例である。実施の形態3に係る外部デバイスアクセス装置は、さらに、プリフェッチ動作が完了したか否かを示す情報を出力するプリフェッチ実行状態読み出し動作を行う。
本発明の実施の形態4に係る外部デバイスアクセス装置は、上述した実施の形態1に係る外部デバイスアクセス装置103の変形例である。実施の形態4に係る外部デバイスアクセス装置は、外部デバイス102の状態を示す外部デバイス状態信号を、マスタ101に出力する。
本発明の実施の形態5に係る外部デバイスアクセス装置は、上述した実施の形態4に係る外部デバイスアクセス装置403の変形例である。実施の形態5に係る外部デバイスアクセス装置は、プリフェッチ動作が実行中の場合、外部デバイス102の状態に応じて、受理信号を直ちに出力するか、プリフェッチ動作の完了後に受理信号を出力するかを選択する。
本発明の実施の形態6に係る外部デバイスアクセス装置は、上述した実施の形態4に係る外部デバイスアクセス装置403の変形例である。実施の形態6に係る外部デバイスアクセス装置は、さらに、プリフェッチ動作を中止するプリフェッチ中止動作を行う。
本発明の実施の形態7に係る外部デバイスアクセス装置は、上述した実施の形態6に係る外部デバイスアクセス装置603の変形例である。実施の形態7に係る外部デバイスアクセス装置は、プリフェッチデータ読み出し時に、プリフェッチ動作が実行中である場合、外部デバイス102の状態に応じて、プリフェッチ動作を中止する。
本発明の実施の形態8に係る外部デバイスアクセス装置は、上述した実施の形態4に係る外部デバイスアクセス装置403の変形例である。実施の形態8に係る外部デバイスアクセス装置は、プリフェッチ実行中の場合には、プリフェッチ動作状態信号165を外部デバイス状態信号出力バス157に出力する。
本発明の実施の形態9に係る外部デバイスアクセス装置は、上述した実施の形態1に係る外部デバイスアクセス装置103の変形例である。実施の形態9に係る外部デバイスアクセス装置は、マスタ101により出力される読み出し受理制御信号に応じて、受理信号を直ちに出力するか、プリフェッチ動作の完了後に受理信号を出力するかを選択する。
本発明の実施の形態10に係る外部デバイスアクセス装置は、上述した実施の形態1に係る外部デバイスアクセス装置103の変形例である。実施の形態10に係る外部デバイスアクセス装置は、受理信号を直ちに出力するか、プリフェッチ動作の完了後に受理信号を出力するかを設定するプリフェッチ読み出し制御動作を行う。
本発明の実施の形態11に係る外部デバイスアクセス装置は、上述した実施の形態1に係る外部デバイスアクセス装置103の変形例である。実施の形態11に係る外部デバイスアクセス装置は、プリフェッチデータ読み出し時においてプリフェッチ動作中である場合に、マスタ101からプリフェッチデータ読み出し要求があった時刻から、プリフェッチ動作が完了するまでの時間を示す情報であるデバッグ情報を出力する。
本発明の実施の形態12に係る外部デバイスアクセス装置は、上述した実施の形態11に係る外部デバイスアクセス装置1103の変形例である。実施の形態12に係る外部デバイスアクセス装置は、デバッグ情報を読み出しデータ出力バス152に出力するデバッグ情報読み出し動作を行う。
Claims (22)
- マスタからの要求に応じて、外部デバイスからデータを読み出すプリフェッチ動作と、前記プリフェッチ動作で読み出したデータを前記マスタに出力するプリフェッチデータ読み出し動作を行う外部デバイスアクセス装置であって、
前記マスタからのプリフェッチ要求及びプリフェッチデータ読み出し要求を受け付け、前記プリフェッチ動作及び前記プリフェッチデータ読み出し動作を行う制御部と、
前記プリフェッチ動作により読み出されたデータを格納するデータ格納部と、
前記プリフェッチ動作が完了したか否かを示すプリフェッチ動作状態を保持する状態保持部と、
前記マスタからの前記プリフェッチデータ読み出し要求を受け付けたことを示す受理信号を前記マスタに出力する受理信号生成部とを備え、
前記制御部は、前記プリフェッチデータ読み出し動作として、前記データ格納部に格納されるデータを前記マスタに出力し、
前記制御部は、前記プリフェッチ動作状態に基づく前記プリフェッチ動作の状態を示す第1情報を前記マスタに出力する
ことを特徴する外部デバイスアクセス装置。 - 前記受理信号生成部は、前記制御部により前記プリフェッチデータ読み出し要求が受け付けられた際に、前記プリフェッチ動作が完了しているか否かによらず、前記受理信号を前記マスタに出力し、
前記制御部は、前記プリフェッチデータ読み出し要求を受け付けた際に、前記第1情報を前記マスタに出力する
ことを特徴とする請求項1記載の外部デバイスアクセス装置。 - 前記制御部は、前記プリフェッチ動作状態を前記第1情報として前記マスタに出力する
ことを特徴とする請求項1記載の外部デバイスアクセス装置。 - 前記外部デバイスアクセス装置と前記マスタとは、読み出しデータバスを介して接続され、
前記制御部は、前記データ格納部に格納されるデータ及び前記第1情報を前記読み出しデータバスを介して前記マスタに出力する
ことを特徴とする請求項1記載の外部デバイスアクセス装置。 - 前記制御部は、前記プリフェッチ動作状態により前記プリフェッチ動作が完了したことが示される場合、前記データ格納部に格納されるデータを前記読み出しデータバスを介して前記マスタに出力し、前記プリフェッチ動作状態により前記プリフェッチ動作が完了していないことが示される場合、予め定められたデータを前記第1情報として前記読み出しデータバスを介して前記マスタに出力する
ことを特徴とする請求項4記載の外部デバイスアクセス装置。 - 前記制御部は、前記プリフェッチ動作状態により前記プリフェッチ動作が完了したことが示される場合、前記データ格納部に格納されるデータを前記読み出しデータバスを介して前記マスタに出力し、前記プリフェッチ動作状態により前記プリフェッチ動作が完了していないことが示される場合、当該プリフェッチ動作により読み出しを行っている前記外部デバイスのアドレスを前記第1情報として前記読み出しデータバスを介して前記マスタに出力する
ことを特徴とする請求項4記載の外部デバイスアクセス装置。 - 前記制御部は、さらに、前記マスタからのプリフェッチ動作状態読み出し要求を受け付け、
前記制御部は、前記プリフェッチ動作状態読み出し要求を受け付けた場合、前記第1情報を前記マスタに出力する
ことを特徴とする請求項1記載の外部デバイスアクセス装置。 - 前記外部デバイスは、当該外部デバイスの動作状態を示す状態信号を出力し、
前記外部デバイスアクセス装置は、さらに、
前記プリフェッチ動作が完了した際の、前記状態信号を格納する状態信号格納部と、
前記プリフェッチ動作状態により前記プリフェッチ動作が完了したことが示される場合、前記状態信号格納部に格納される前記状態信号を前記マスタに出力し、前記プリフェッチ動作状態により前記プリフェッチ動作が完了していないことが示される場合、前記外部デバイスにより出力されている状態信号を前記マスタに出力する状態信号出力部とを備える
ことを特徴とする請求項1記載の外部デバイスアクセス装置。 - 前記外部デバイスは、当該外部デバイスの動作状態を示す状態信号を出力し、
前記受理信号生成部は、前記制御部により前記プリフェッチデータ読み出し要求が受け付けられた際に、前記状態信号に応じて、前記プリフェッチ動作が完了しているか否かによらず、前記受理信号を前記マスタに出力する第1動作、又は、前記プリフェッチ動作が完了した後に前記受理信号を前記マスタに出力する第2動作を選択的に行う
ことを特徴とする請求項1記載の外部デバイスアクセス装置。 - 前記制御部は、さらに、前記マスタからのプリフェッチ中止要求を受け付け、
前記外部デバイスアクセス装置は、さらに、
前記制御部により、前記プリフェッチ中止要求が受け付けられた場合、前記プリフェッチ動作を中止するプリフェッチ中止部を備える
ことを特徴とする請求項8記載の外部デバイスアクセス装置。 - 前記外部デバイスは、当該外部デバイスの動作状態を示す状態信号を出力し、
前記外部デバイスアクセス装置は、さらに、
前記制御部により、前記プリフェッチデータ読み出し要求が受け付けられ、かつ、前記プリフェッチ動作状態により前記プリフェッチ動作が完了していないことが示される場合、前記外部デバイスにより出力されている前記状態信号に応じて、前記プリフェッチ動作を中止するプリフェッチ中止部を備える
ことを特徴とする請求項1記載の外部デバイスアクセス装置。 - 前記外部デバイスは、当該外部デバイスの動作状態を示す状態信号を出力し、
前記外部デバイスアクセス装置と前記マスタとは、第1信号バスを介して接続され、
前記外部デバイスアクセス装置は、さらに、
前記プリフェッチ動作が完了した際の、前記状態信号を格納する状態信号格納部と、
前記制御部により前記プリフェッチデータ読み出し要求が受け付けられた際の、前記プリフェッチ動作状態である読み出し時プリフェッチ動作状態を格納する読み出し時状態格納部と、
前記プリフェッチ動作状態により前記プリフェッチ動作が完了していないことが示される場合、当該プリフェッチ動作状態を、前記第1信号バスを介して前記マスタに出力し、前記プリフェッチ動作状態により前記プリフェッチ動作が完了していることが示される場合、前記状態信号格納部により格納される状態信号を、前記第1信号バスを介して前記マスタに出力する信号出力部とを備え、
前記制御部は、前記プリフェッチ動作状態読み出し要求を受け付けた場合、前記読み出し時プリフェッチ動作状態を前記第1情報として前記マスタに出力する
ことを特徴とする請求項7記載の外部デバイスアクセス装置。 - 前記受理信号生成部は、前記制御部により前記プリフェッチデータ読み出し要求が受け付けられた際に、前記プリフェッチ動作が完了しているか否かによらず、前記受理信号を前記マスタに出力する第1動作、又は、前記プリフェッチ動作が完了した後に前記受理信号を前記マスタに出力する第2動作を選択的に行う
ことを特徴とする請求項1記載の外部デバイスアクセス装置。 - 前記受理信号生成部は、前記マスタから出力される制御信号に応じて、前記第1動作又は前記第2動作を選択的に行う
ことを特徴とする請求項13記載の外部デバイスアクセス装置。 - 前記プリフェッチ読み出し要求は、第1プリフェッチデータ読み出し要求と、第2プリフェッチデータ読み出し要求とを含み、
前記制御部は、前記マスタから第1アドレスが出力された場合に、前記第1プリフェッチデータ読み出し要求を受け付け、前記マスタから第2アドレスが出力された場合に、前記第2プリフェッチデータ読み出し要求を受け付け、
前記受理信号生成部は、前記制御部により前記第1プリフェッチデータ読み出し要求が受け付けられた場合、前記第1動作を行い、前記制御部により前記第2プリフェッチデータ読み出し要求が受け付けられた場合、前記第2動作を行う
ことを特徴する請求項13記載の外部デバイスアクセス装置。 - 前記外部デバイスアクセス装置は、さらに、
第1状態又は第2状態が設定される状態設定部を備え、
前記制御部は、さらに、前記マスタからのプリフェッチ読み出し制御動作要求を受け付け、
前記制御部は、前記プリフェッチ読み出し制御動作要求を受け付けた場合、前記マスタからの指定された前記第1状態又は前記第2状態を前記状態設定部に設定し、
前記受理信号生成部は、前記状態設定部に前記第1状態が設定されている場合に前記第1動作を行い、前記状態設定部に前記第2状態が設定されている場合に前記第2動作を行う
ことを特徴する請求項13記載の外部デバイスアクセス装置。 - 前記外部デバイスアクセス装置は、さらに、
前記プリフェッチ動作の実行中に、前記制御部によりプリフェッチデータ読み出し要求が受け付けられた場合に、当該プリフェッチデータ読み出し要求が受け付けられてから、当該プリフェッチ動作が完了するまでの時間をカウントするカウント部を備え、
前記制御部は、前記カウント部によりカウントされた時間を前記第1情報として前記マスタに出力する
ことを特徴とする請求項1記載の外部デバイスアクセス装置。 - 前記制御部は、さらに、前記マスタからの時間読み出し要求を受け付け、
前記外部デバイスアクセス装置は、さらに、
前記カウント部によりカウントされた時間を格納する時間格納部を備え、
前記制御部は、前記時間読み出し要求を受け付けた場合、前記時間格納部に格納される前記時間を前記第1情報として前記マスタに出力する
ことを特徴とする請求項17記載の外部デバイスアクセス装置。 - 請求項1記載の外部デバイスアクセス装置と、マスタとを備えるシステムLSIであって、
前記外部デバイスアクセス装置は、前記第1情報を前記マスタの割り込み信号、又はスレッド切り替え信号として出力し、
前記マスタは、前記第1情報を、割り込み処理、又はスレッド切り替え信号として処理する
ことを特徴とするシステムLSI。 - 請求項1記載の外部デバイスアクセス装置と、マスタとを備えるシステムLSIであって、
前記外部デバイスアクセス装置は、前記第1情報を前記マスタがソフト処理可能なフラグ信号として出力し、
前記マスタは、前記第1情報を、ソフト処理可能なフラグ信号として処理する
ことを特徴とするシステムLSI。 - 請求項14記載の外部デバイスアクセス装置と、マスタとを備えるシステムLSIであって、
前記マスタは、前記制御信号を、前記プリフェッチデータ読み出し要求と同期して、前記外部デバイスアクセス装置に出力する
ことを特徴とするシステムLSI。 - マスタからの要求に応じて、外部デバイスからデータを読み出すプリフェッチ動作と、前記プリフェッチ動作で読み出したデータを前記マスタに出力するプリフェッチデータ読み出し動作を行う外部デバイスアクセス装置の制御方法であって、
前記マスタからのプリフェッチ要求を受け付けるプリフェッチ要求受け付けステップと、
前記プリフェッチ要求を受け付けた場合、前記外部デバイスからデータを読み出し、読み出したデータをデータ格納部に格納するプリフェッチステップと、
前記プリフェッチステップが完了したか否かを示すプリフェッチ動作状態を保持する状態保持ステップと、
前記マスタからのプリフェッチデータ読み出し要求を受け付けるプリフェッチデータ読み出し要求受け付けステップと、
前記プリフェッチデータ読み出し要求を受け付けた場合、当該プリフェッチデータ読み出し要求を受け付けたことを示す受理信号を前記マスタに出力する受理信号生成ステップと、
前記プリフェッチデータ読み出し要求を受け付けた場合、前記データ格納部に格納されるデータを前記マスタに出力するプリフェッチデータ読み出しステップと、
前記プリフェッチ動作状態に基づく前記プリフェッチ動作の状態を示す第1情報を前記マスタに出力する第1情報出力ステップとを含む
ことを特徴とする制御方法。
Priority Applications (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US12/866,061 US20100318707A1 (en) | 2008-02-08 | 2008-08-13 | External device access apparatus, control method thereof, and system lsi |
JP2009529455A JPWO2009098737A1 (ja) | 2008-02-08 | 2008-08-13 | 外部デバイスアクセス装置、その制御方法及びシステムlsi |
CN200880126342.0A CN101939733A (zh) | 2008-02-08 | 2008-08-13 | 外部设备存取装置、其控制方法及系统大规模集成电路 |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008029356 | 2008-02-08 | ||
JP2008-029356 | 2008-02-08 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2009098737A1 true WO2009098737A1 (ja) | 2009-08-13 |
Family
ID=40951826
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/JP2008/002206 WO2009098737A1 (ja) | 2008-02-08 | 2008-08-13 | 外部デバイスアクセス装置、その制御方法及びシステムlsi |
Country Status (4)
Country | Link |
---|---|
US (1) | US20100318707A1 (ja) |
JP (1) | JPWO2009098737A1 (ja) |
CN (1) | CN101939733A (ja) |
WO (1) | WO2009098737A1 (ja) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2021118957A (ja) * | 2021-05-19 | 2021-08-12 | 株式会社ユニバーサルエンターテインメント | 遊技機 |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102043713A (zh) * | 2009-10-26 | 2011-05-04 | 鸿富锦精密工业(深圳)有限公司 | 计时电路与计时方法 |
US20120226839A1 (en) * | 2011-03-02 | 2012-09-06 | Texas Instruments Incorporated | Method and System for Monitoring and Debugging Access to a Bus Slave Using One or More Throughput Counters |
KR20160122278A (ko) | 2012-08-18 | 2016-10-21 | 퀄컴 테크놀로지스, 인크. | 프리페칭을 갖는 변환 색인 버퍼 |
CN104133691B (zh) * | 2014-05-05 | 2016-08-31 | 腾讯科技(深圳)有限公司 | 加速启动的方法及装置 |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH03278156A (ja) * | 1990-03-27 | 1991-12-09 | Pfu Ltd | バスアクセス制御方式 |
JPH05189311A (ja) * | 1992-01-09 | 1993-07-30 | Mitsubishi Electric Corp | キャッシュメモリ・システム |
JPH0756846A (ja) * | 1993-08-18 | 1995-03-03 | Mitsubishi Electric Corp | 入出力制御装置及びマイクロプロセッサ及びデータ処理システム並びにデータの転送方法 |
JPH10301892A (ja) * | 1997-04-23 | 1998-11-13 | Hitachi Ltd | バスブリッジ |
JP2004334552A (ja) * | 2003-05-08 | 2004-11-25 | Fujitsu Ltd | バス接続回路及びバス接続システム |
WO2006134804A1 (ja) * | 2005-06-15 | 2006-12-21 | Matsushita Electric Industrial Co., Ltd. | 外部デバイスアクセス装置 |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5339395A (en) * | 1992-09-17 | 1994-08-16 | Delco Electronics Corporation | Interface circuit for interfacing a peripheral device with a microprocessor operating in either a synchronous or an asynchronous mode |
JP3548616B2 (ja) * | 1995-01-20 | 2004-07-28 | 株式会社日立製作所 | 情報処理装置 |
JPH10134008A (ja) * | 1996-11-05 | 1998-05-22 | Mitsubishi Electric Corp | 半導体装置およびコンピュータシステム |
JP2007241612A (ja) * | 2006-03-08 | 2007-09-20 | Matsushita Electric Ind Co Ltd | マルチマスタシステム |
-
2008
- 2008-08-13 WO PCT/JP2008/002206 patent/WO2009098737A1/ja active Application Filing
- 2008-08-13 US US12/866,061 patent/US20100318707A1/en not_active Abandoned
- 2008-08-13 CN CN200880126342.0A patent/CN101939733A/zh active Pending
- 2008-08-13 JP JP2009529455A patent/JPWO2009098737A1/ja active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH03278156A (ja) * | 1990-03-27 | 1991-12-09 | Pfu Ltd | バスアクセス制御方式 |
JPH05189311A (ja) * | 1992-01-09 | 1993-07-30 | Mitsubishi Electric Corp | キャッシュメモリ・システム |
JPH0756846A (ja) * | 1993-08-18 | 1995-03-03 | Mitsubishi Electric Corp | 入出力制御装置及びマイクロプロセッサ及びデータ処理システム並びにデータの転送方法 |
JPH10301892A (ja) * | 1997-04-23 | 1998-11-13 | Hitachi Ltd | バスブリッジ |
JP2004334552A (ja) * | 2003-05-08 | 2004-11-25 | Fujitsu Ltd | バス接続回路及びバス接続システム |
WO2006134804A1 (ja) * | 2005-06-15 | 2006-12-21 | Matsushita Electric Industrial Co., Ltd. | 外部デバイスアクセス装置 |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2021118957A (ja) * | 2021-05-19 | 2021-08-12 | 株式会社ユニバーサルエンターテインメント | 遊技機 |
JP7049507B2 (ja) | 2021-05-19 | 2022-04-06 | 株式会社ユニバーサルエンターテインメント | 遊技機 |
Also Published As
Publication number | Publication date |
---|---|
JPWO2009098737A1 (ja) | 2011-05-26 |
CN101939733A (zh) | 2011-01-05 |
US20100318707A1 (en) | 2010-12-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6633119B2 (ja) | 自律的メモリの方法及びシステム | |
US9043806B2 (en) | Information processing device and task switching method | |
EP1365321A2 (en) | Multiprocessor system | |
JP2005235135A (ja) | ベクトル処理装置、及び、追い越し制御回路 | |
JP5287301B2 (ja) | ディスクリプタ転送装置、i/oコントローラ、及びディスクリプタ転送方法 | |
WO2009098737A1 (ja) | 外部デバイスアクセス装置、その制御方法及びシステムlsi | |
JP4688822B2 (ja) | 外部デバイスアクセス装置およびシステムlsi | |
JP4563829B2 (ja) | ダイレクトメモリアクセス制御方法、ダイレクトメモリアクセス制御装置、情報処理システム、プログラム | |
JP4965638B2 (ja) | タスクの切り換えを制御するシステムおよび方法 | |
JP4779010B2 (ja) | バッファリング装置およびバッファリング方法 | |
JP2006338538A (ja) | ストリームプロセッサ | |
JP6004463B2 (ja) | 記憶装置及びその制御方法 | |
JP2010134789A (ja) | 要求処理装置、要求処理システムおよびアクセス試験方法 | |
WO2010029682A1 (ja) | 情報処理装置 | |
JP2005276104A (ja) | マイクロコンピュータ | |
JP2006202271A (ja) | ストリームプロセッサ及び情報処理装置 | |
JP2007304926A (ja) | 情報処理方法および命令生成方法 | |
KR102724459B1 (ko) | 데이터 입출력 유닛, 전자 장치 및 그 제어 방법들 | |
JP6940283B2 (ja) | Dma転送制御装置、dma転送制御方法、及び、dma転送制御プログラム | |
JP5393626B2 (ja) | 情報処理装置 | |
JP6138482B2 (ja) | 組み込みシステム | |
JP2007087244A (ja) | コプロセッサ及びコンピュータシステム | |
JP2006338353A (ja) | 情報処理装置および情報処理方法、並びにプログラム | |
JP2005056033A (ja) | レジスタ回路 | |
JP2008305093A (ja) | メモリ制御装置、メモリ制御装置の制御方法、プログラム及び記憶媒体 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
WWE | Wipo information: entry into national phase |
Ref document number: 200880126342.0 Country of ref document: CN |
|
WWE | Wipo information: entry into national phase |
Ref document number: 2009529455 Country of ref document: JP |
|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 08790454 Country of ref document: EP Kind code of ref document: A1 |
|
WWE | Wipo information: entry into national phase |
Ref document number: 12866061 Country of ref document: US |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 08790454 Country of ref document: EP Kind code of ref document: A1 |