Data processing device
The data processing device addresses the bottleneck issue in pipeline processing by using a three-tier memory system with controlled data flow, preventing overflow and maintaining processing speed.
Patent Information
- Application Number
- JP2022146686
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2022-09-15
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2042-09-15
AI Technical Summary
The use of external memory with lower slew rate and higher latency as a buffer in pipeline processing leads to a bottleneck, reducing the processing speed of the pipeline.
A data processing device with a three-tier memory system, including internal memories with simultaneous read/write capability and an external memory with sequential read/write capability, controlled by an input/output control unit to manage data flow and prevent overflow.
Prevents internal memory overflow while minimizing the reduction in processing speed by optimizing data flow through the three-tier memory system.
Smart Images

Figure 0007955111000001 
Figure 0007955111000002 
Figure 0007955111000003
Abstract
Description
Technical Field
[0001] The present disclosure relates to a data processing device.
Background Art
[0002] One type of integrated circuit represented by a programmable logic device (PLD) is one that performs pipeline processing. In an integrated circuit that performs pipeline processing, buffers are generally arranged between stages in order to absorb differences in processing speed between the multiple stages that constitute the pipeline processing.
[0003] Furthermore, the capacity of the memory existing inside the integrated circuit (hereinafter sometimes referred to as "internal memory") is only a few megabytes, and the capacity of the internal memory as a buffer in pipeline processing is insufficient, which may cause the internal memory to overflow. Therefore, in a device having an integrated circuit, in addition to the internal memory, a memory connected to the integrated circuit from outside the integrated circuit (hereinafter sometimes referred to as "external memory") is generally used as a buffer in pipeline processing.
Prior Art Documents
Patent Documents
[0004]
Patent Document 1
Patent Document 2
Patent Document 3
Summary of the Invention
Problem to be Solved by the Invention
[0005] Here, while internal memory is capable of simultaneously writing and reading data, low-cost SDRAM (Synchronous Dynamic Random Access Memory), which cannot simultaneously write and read data, is often used as external memory. Therefore, external memory generally has a lower slew rate and higher latency than internal memory. Consequently, if external memory is used extensively as a buffer in pipeline processing, the external memory becomes a bottleneck in the pipeline processing, leading to a decrease in the processing speed of the pipeline.
[0006] Therefore, this disclosure proposes a technology that can prevent internal memory overflow while minimizing the reduction in processing speed of pipeline processing. [Means for solving the problem]
[0007] The data processing device of this disclosure comprises an integrated circuit and a third memory. The integrated circuit comprises a first processing unit, a second processing unit, a first memory, and a second memory. The first processing unit performs a first processing on input data and outputs first data, which is the data after the first processing. The second processing unit performs a second processing on the first data and outputs second data, which is the data after the second processing. The first memory has a first capacity and a first memory bandwidth, and temporarily stores the first data output from the first processing unit. The second memory is located downstream of the first memory and has a second capacity and a second memory bandwidth. The third memory is located downstream of the first memory and upstream of the second memory, and has a third capacity greater than the first and second capacities, and a third memory bandwidth smaller than the first and second memory bandwidths, and temporarily stores the first data output from the first memory. The second memory temporarily stores the first data output from the first memory or the third memory. The second processing unit performs the second processing on the first data output from the second memory. The integrated circuit also comprises a control unit. The control unit controls the input / output state of the first data between the first memory, the second memory, and the third memory based on the first storage amount, which is the current amount of the first data stored in the first memory; the second storage amount, which is the current amount of the first data stored in the second memory; and the third storage amount, which is the current amount of the first data stored in the third memory. [Effects of the Invention]
[0008] According to this disclosure, it is possible to prevent internal memory overflow while minimizing the reduction in processing speed of pipeline processing. [Brief explanation of the drawing]
[0009] [Figure 1] Figure 1 shows an example configuration of a data processing device according to the present disclosure. [Figure 2] Figure 2 shows an example of the transition of memory input / output states in a data processing device according to the embodiment of this disclosure. [Figure 3] Figure 3 shows an example of the operation of the data processing device according to the embodiment of this disclosure. [Modes for carrying out the invention]
[0010] The embodiments of this disclosure will be described below with reference to the drawings. In the following embodiments, identical components and steps that perform identical processing will be denoted by the same reference numerals.
[0011] [Examples] <Configuration of data processing device> Figure 1 shows an example configuration of a data processing device according to an embodiment of the present disclosure. In Figure 1, the data processing device 10 includes an integrated circuit 20 and a third memory M3 as an external memory. The integrated circuit 20 includes a first processing unit P1, a first memory M1 as an internal memory, an input / output control unit 30, a second memory M2 as an internal memory, and a second processing unit P2. The data processing device 10 is mounted on a computer such as a server. Examples of integrated circuits 20 include PLDs such as SPLDs (Simple PLDs), CPLDs (Complex PLDs), and FPGAs (Field Programmable Gate Arrays), and LSIs (Large Scale Integrations) such as ASICs (Application Specific Integrated Circuits).
[0012] As shown in Figure 1, the second memory M2 is located after the first memory M1, and the third memory M3 is located after the first memory M1 and before the second memory M2. The first memory M1 has a first capacity CA1 and a first memory bandwidth MB1, the second memory M2 has a second capacity CA2 and a second memory bandwidth MB2, and the third memory M3 has a third capacity CA3 and a third memory bandwidth MB3. The first memory M1 and the second memory M2 are internal memories, while the third memory M3 is an external memory. Therefore, the third capacity CA3 is larger than the first capacity CA1 and the second capacity CA2, and the third memory bandwidth MB3 is smaller than the first memory bandwidth MB1 and the second memory bandwidth MB2. Furthermore, the first memory M1 and the second memory M2 are memories in which writing and reading of the first data D1 can be performed simultaneously, while the third memory M3 is a memory in which writing and reading of the first data D1 cannot be performed simultaneously.
[0013] In the integrated circuit 20, pipeline processing is performed by the first processing unit P1 and the second processing unit P2. In addition, in the data processing device 10, the first memory M1, the second memory M2, and the third memory M3 are used as FIFO (First-In First-Out) type buffers in the pipeline processing.
[0014] Specifically, the first processing unit P1 applies the processing of the first stage ST1 in the pipeline processing (hereinafter sometimes referred to as "first processing") to the input data D0 input to the data processing device 10, and outputs the data after the first processing (hereinafter sometimes referred to as "first data") D1 to the first memory M1. The first memory M1 temporarily stores the first data D1 output from the first processing unit P1 according to the control from the input / output control unit 30. The third memory M3 temporarily stores the first data D1 output from the first memory M1 according to the control from the input / output control unit 30. The second memory M2 temporarily stores the first data D1 output from the first memory M1 or the third memory M3 according to the control from the input / output control unit 30. The second processing unit P2 applies the processing of the second stage ST2 in the pipeline processing (hereinafter sometimes referred to as "second processing") to the first data D1 output from the second memory M2, and outputs the data after the second processing (hereinafter sometimes referred to as "second data") D2 to the outside of the data processing device 10.
[0015] The input / output control unit 30 monitors the current amount of first data D1 stored in the first memory M1 (hereinafter sometimes referred to as the "first storage amount") AC1, the current amount of first data D1 stored in the second memory M2 (hereinafter sometimes referred to as the "second storage amount") AC2, and the current amount of first data D1 stored in the third memory M3 (hereinafter sometimes referred to as the "third storage amount") AC3. Based on the first storage amount AC1, the second storage amount AC2, and the third storage amount AC3, the input / output control unit 30 controls the input / output state of first data D1 between the first memory M1, the second memory M2, and the third memory M3 (hereinafter sometimes referred to as the "memory input / output state").
[0016] <Transitions in memory input / output states in data processing devices> Figure 2 shows an example of the transition of memory input / output states in a data processing device according to the embodiment of this disclosure.
[0017] In FIG. 2, when the memory input / output state is in the first state S1, the input / output control unit 30 switches the memory input / output state from the first state S1 to the second state S2 when the first condition C1 is satisfied.
[0018] Further, when the memory input / output state is in the second state S2, the input / output control unit 30 switches the memory input / output state from the second state S2 to the third state S3 when the second condition C2 is satisfied.
[0019] Further, when the memory input / output state is in the third state S3, the input / output control unit 30 switches the memory input / output state from the third state S3 to the second state S2 when the third condition C3 is satisfied.
[0020] Further, when the memory input / output state is in the third state S3, the input / output control unit 30 switches the memory input / output state from the third state S3 to the first state S1 when the fourth condition C4 is satisfied.
[0021] Here, each memory input / output state of the first state S1, the second state S2, and the third state S3 is shown below. · First state S1: A memory input / output state in which the first data D1 output from the first memory M1 is input to the second memory M2 without passing through the third memory M3. · Second state S2: A memory input / output state in which the first data D1 output from the first memory M1 is input to the third memory M3 instead of the second memory M2. · Third state S3: A memory input / output state in which the first data D1 is output from the third memory M3 to the second memory M2.
[0022] Further, each condition of the first condition C1, the second condition C2, the third condition C3, and the fourth condition C4 is shown below. · First condition C1: The second accumulation amount AC2 has become equal to or greater than the first threshold TH1. · Second condition C2: The first accumulation amount AC1 is less than the second threshold TH2, and the second accumulation amount AC2 is less than the third threshold TH3 (however, the third threshold TH3 < the first threshold TH1). Third condition C3: The first accumulated amount AC1 becomes equal to or greater than the fourth threshold TH4 (provided that the fourth threshold TH4 > the second threshold TH2). • Fourth condition C4: The third accumulated amount AC3 becomes zero, and the first accumulated amount AC1 is less than the fourth threshold TH4.
[0023] For example, the first threshold TH1 is preferably set to a value of 90% to 95% of the second capacity CA2, the second threshold TH2 is preferably set to a value of 5% to 10% of the first capacity CA1, the third threshold TH3 is preferably set to a value of 5% to 10% of the second capacity CA2, and the fourth threshold TH4 is preferably set to a value of 90% to 95% of the first capacity CA1.
[0024] <Operation of the data processing device> Figure 3 shows an example of the operation of the data processing device according to the embodiment of this disclosure.
[0025] In Figure 3, when the memory input / output state is in the first state S1 and the first condition C1 is met at time t1, the input / output control unit 30 switches the memory input / output state from the first state S1 to the second state S2. By doing this, during times t1 to t2, writing to the second memory M2 can be stopped while writing to the third memory M3 can be performed, thereby increasing the third storage amount AC3 while suppressing the increase in the second storage amount AC2. Thus, overflow of the second memory M2 can be prevented.
[0026] Next, at time t2 when the second condition C2 is met while the memory input / output state is in the second state S2, the input / output control unit 30 switches the memory input / output state from the second state S2 to the third state S3. This increases the free capacity of the first memory M1, and the memory input / output state transitions from the second state S2 to the third state S3 when there is sufficient free capacity in the second memory M2. Therefore, at times t2-t3, in the third memory M3, where writes and reads cannot be performed simultaneously, writes from the first memory M1 are continuously stopped while reads to the second memory M2 can be continuously performed. As a result, the first and second storage amounts AC1 and AC2 increase, while the third storage amount AC3 decreases. Thus, the third memory M3, which exhibits maximum performance when either writes or reads are performed consecutively for consecutive addresses, and whose performance deteriorates when switching between writes and reads occurs frequently, can be used efficiently.
[0027] Next, at time t3, when the third condition C3 is met while the memory input / output state is in the third state S3, the input / output control unit 30 switches the memory input / output state from the third state S3 to the second state S2. By doing this, at times t3 to t4, writing to the third memory M3 can be performed while writing to the second memory M2 is stopped, so the third storage amount AC3 increases while the first storage amount AC1 decreases. Thus, an overflow of the first memory M1 can be prevented. Also, at times t3 to t4, since the memory input / output state is in the second state S2, writing is performed to the third memory M3, where writing and reading cannot be performed simultaneously, while reading is not performed. Thus, at times t3 to t4, the second storage amount AC2 decreases.
[0028] Next, at time t4, when the second condition C2 is met while the memory input / output state is in the second state S2, the input / output control unit 30 switches the memory input / output state from the second state S2 to the third state S3. In this way, at times t4 to t5, similar to times t2 to t3, in the third memory M3 where writes and reads cannot be performed simultaneously, writes from the first memory M1 can be continuously stopped while reads to the second memory M2 can be continuously performed. As a result, the first and second storage amounts AC1 and AC2 increase, while the third storage amount AC3 decreases. Therefore, the third memory M3, which exhibits maximum performance when either writes or reads are performed consecutively for consecutive addresses and whose performance deteriorates when switching between writes and reads occurs frequently, can be used efficiently.
[0029] Next, at time t5 when the fourth condition C4 is met while the memory input / output state is in the third state S3, the input / output control unit 30 switches the memory input / output state from the third state S3 to the first state S1. In this way, when the bottleneck in the second process is resolved, it is possible to switch from slow pipeline processing using the third memory M3 with its small memory bandwidth to high-speed pipeline processing using the first memory M1 and second memory M2 with their larger memory bandwidths, without using the third memory M3.
[0030] The examples described above have been explained.
[0031] As described above, the data processing device of the present disclosure (data processing device 10 of the embodiment) includes an integrated circuit (integrated circuit 20 of the embodiment) and a third memory (third memory M3 of the embodiment). The integrated circuit includes a first processing unit (first processing unit P1 of the embodiment), a second processing unit (second processing unit P2 of the embodiment), a first memory (first memory M1 of the embodiment), and a second memory (second memory M2 of the embodiment). The first processing unit performs first processing on input data and outputs first data, which is the data after first processing. The second processing unit performs second processing on the first data and outputs second data, which is the data after second processing. The first memory has a first capacity and a first memory bandwidth, and temporarily stores the first data output from the first processing unit. The second memory is located after the first memory and has a second capacity and a second memory bandwidth. The third memory is located after the first memory and before the second memory, and has a third capacity that is larger than the first and second capacities, and a third memory bandwidth that is smaller than the first and second memory bandwidths, and temporarily stores the first data output from the first memory. The second memory temporarily stores the first data output from the first memory or the third memory. The second processing unit performs a second processing on the first data output from the second memory. The integrated circuit also has a control unit (input / output control unit 30 in the embodiment). The control unit controls the input / output state of the first data between the first memory, the second memory, and the third memory based on the first storage amount, which is the current amount of the first data stored in the first memory; the second storage amount, which is the current amount of the first data stored in the second memory; and the third storage amount, which is the current amount of the first data stored in the third memory.
[0032] This minimizes the reduction in processing speed during pipeline processing while preventing internal memory overflow. [Explanation of Symbols]
[0033] 10 Data Processing Devices 20 Integrated Circuits 30 Input / Output Control Unit P1 First Processing Unit P2 Second Processing Unit M1 First Memory M2 Second Memory M3 Third Memory
Claims
1. A first processing unit that performs a first processing on the input data and outputs first data which is the data after the first processing, A second processing unit that applies a second processing step to the first data and outputs second data which is the data after the second processing, A first memory having a first capacity and a first memory bandwidth, A second memory is located downstream of the first memory and has a second capacity and a second memory bandwidth, An integrated circuit having, A third memory is located downstream of the first memory and upstream of the second memory, and has a third capacity greater than the first and second capacities, and a third memory bandwidth smaller than the first and second memory bandwidths. It is equipped with, The first memory temporarily stores the first data output from the first processing unit. The third memory temporarily stores the first data output from the first memory. The second memory temporarily stores the first data output from the first memory or the third memory. The second processing unit performs the second processing on the first data output from the second memory, The integrated circuit further includes a control unit that controls the input / output state of the first data between the first memory, the second memory, and the third memory based on the first storage amount, which is the current amount of the first data stored in the first memory; the second storage amount, which is the current amount of the first data stored in the second memory; and the third storage amount, which is the current amount of the first data stored in the third memory. The control unit, When the input / output state is in a first state in which the first data output from the first memory is input to the second memory without passing through the third memory, and the second storage amount becomes equal to or greater than the first threshold, the input / output state is switched from the first state to a second state in which the first data output from the first memory is input to the third memory. When the input / output state is in the second state, and the first storage amount falls below the second threshold, and the second storage amount falls below a third threshold which is smaller than the first threshold, the input / output state is switched from the second state to a third state in which the first data is output from the third memory. Data processing device.
2. The control unit switches the input / output state from the third state to the second state when the input / output state is in the third state and the first accumulated amount becomes greater than or equal to the fourth threshold, which is greater than the second threshold. The data processing device according to claim 1.
3. The control unit switches the input / output state from the third state to the first state when the input / output state is in the third state, the third storage amount becomes zero, and the first storage amount is less than the fourth threshold, which is greater than the second threshold. The data processing device according to claim 1.
Citation Information
Patent Citations
Fifo type memory
JP1995057454A
Split queue architecture and queue method
JP2002513530A
FIFO circuit
JP2004139377A
Dual-port functionality for single-port cell memory device
JP2005018768A
Data processor
JP2006252153A
