CN106326145A - Control method and device for memory - Google Patents
Control method and device for memory Download PDFInfo
- Publication number
- CN106326145A CN106326145A CN201510362628.0A CN201510362628A CN106326145A CN 106326145 A CN106326145 A CN 106326145A CN 201510362628 A CN201510362628 A CN 201510362628A CN 106326145 A CN106326145 A CN 106326145A
- Authority
- CN
- China
- Prior art keywords
- time
- refresh
- effective address
- strategy
- read
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
- G06F12/08—Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
Abstract
The invention discloses a control method for a memory. The method comprises the following steps of comparing operation effective address of different operation types, which are obtained at the same time, to judge whether the different operation types having the same operation effective address exist when the operation effective address of the different operation types are obtained at the same time; and when the different operation types having the same operation effective address are judged, determining that an operation conflict exists, selecting a corresponding conflict resolution strategy according to the operation types having the same operation effective address, and executing the conflict resolution strategy. The invention also discloses a control device for the memory.
Description
Technical field
The present invention relates to data communication technology field, particularly relate to control method and the device of a kind of memorizer.
Background technology
Along with the explosive increase of internet service, the flow of data link is increasing, and required exchange sets
Standby disposal ability is more and more higher.The plug-in Double Data Rate synchronous dynamic random storage used with exchange chip
Device (DDR, Double Data Rate) is compared as the mode of caching, and embedded dynamic random-access is random
Memorizer (DRAM, Dynamic Random Access Memory) has more as the mode of caching
Advantage: higher performance, less pin, lower power consumption, higher integrated level.But DRAM's
Capacitor can make electric charge disappear because of electric leakage, thus this device is unstable;In order to save the data in
In memorizer, DRAM must regular refresh.
In actual use, cache management can run into three kinds of work conflict during being written and read operation:
Read operation and the conflict of write operation;Read operation and the conflict of refresh operation;Write operation and the conflict of refresh operation.
These conflicts influence whether the read-write efficiency of caching.Therefore, how in the case of cache management normally works,
Avoid unnecessary conflict, improve caching read-write efficiency, be technical problem urgently to be resolved hurrily.
Summary of the invention
For solve existing existence technical problem, the embodiment of the present invention provide a kind of memorizer control method and
Device, at least to reduce the conflict between reading and writing and refresh operation, the caching read-write efficiency of raising.
For reaching above-mentioned purpose, the technical scheme of the embodiment of the present invention is achieved in that
The control method of a kind of memorizer of the embodiment of the present invention, described method includes:
When obtaining the operation effective address of different operating type in the same time, obtain described in the same time
The operation effective address of the different operating type obtained compares, to judge whether to operate effective address phase
Same different operating type;
When the different operating type that judgement existence operation effective address is identical, determine and there is operating collision, and
Select corresponding conflict-solving strategy according to the action type that described operation effective address is identical, perform described punching
Prominent resolution policy.
In such scheme,
When the different operating type that described operation effective address is identical is read operation and write operation, described basis
The action type that operation effective address is identical selects corresponding conflict-solving strategy, performs conflict-solving strategy,
Including: the read operation identical according to operation effective address and write operation, select to rush with write operation for read operation
The first prominent strategy, performs described first strategy;
When the different operating type that described operation effective address is identical is read operation and refresh operation or write operation
During with refresh operation, the described action type identical according to operation effective address selects corresponding Conflict solving plan
Slightly, perform conflict-solving strategy, including: according to the identical read operation of operation effective address and refresh operation,
Or write operation and refresh operation, select to conflict with refresh operation for read operation or write operation and refresh operation
Second strategy of conflict, performs described second strategy.
In such scheme, described execution the first strategy includes:
Identify the clash handle pattern identification of configuration in described first strategy;
When determining that the clash handle pattern identification being currently configured is the first mark, preferential execution clashes
Write operation in read operation and write operation;
When determining that the clash handle pattern identification being currently configured is the second mark, preferential execution clashes
Read operation in read operation and write operation;
When determining that the clash handle pattern identification being currently configured is the 3rd mark, it is judged that operate apart from this
Near in front action type, if apart from this operation nearest be read operation in front action type, the most preferentially hold
Write operation in the capable read operation clashed and write operation;If it is nearest in front operation class apart from this operation
Type is write operation, then preferentially perform the read operation in the read operation that clashes and write operation.
In such scheme, in described identification the first strategy before the clash handle pattern identification of configuration, described
Method also includes:
Identify the pressure refreshing identification of configuration in described first strategy, if described pressure refreshing identification is the 4th mark
Know, then perform the pressure refresh operation to described operation effective address;If described pressure refreshing identification is the 5th
Mark, then identify the clash handle pattern identification of configuration in described first strategy.
In such scheme, described execution the second strategy includes:
According to the very first time of configuration in refresh time, perform the refresh operation in the operation clashed;
According to the second time of configuration in refresh time, perform the read operation in the operation clashed or write operation.
In such scheme, described refresh time is divided into N number of equal portions time, and N is whole more than or equal to 2
Counting, each described equal portions time is divided into refresh time and refreshes free time, and wherein, described refresh time is
For performing the time of refresh operation, described refreshing free time is the time for performing read or write;
All refresh times in described N number of equal portions time form the described very first time, in described N number of equal portions time
All refreshing free times form described second times.
In such scheme, described method also includes:
In the refresh time performing described second strategy, when getting pressure refreshing instruction, perform accordingly
The pressure refresh operation of operation effective address.
The embodiment of the present invention additionally provides the control device of a kind of memorizer, and described device includes:
Comparing unit, during for obtaining the operation effective address of different operating type in the same time, by described
The operation effective address of the different operating type obtained in the same time compares, to judge whether behaviour
Make the different operating type that effective address is identical;
Clash handle unit, when the different operating type identical in judgement existence operation effective address, really
Surely there is operating collision, and select to conflict accordingly solution according to the action type that described operation effective address is identical
Decision-making slightly, performs described conflict-solving strategy.
In such scheme, described clash handle unit is further used for, identical in described operation effective address
When different operating type is read operation and write operation, the read operation identical according to operation effective address and write operation,
Select the first strategy conflicted with write operation for read operation, perform described first strategy;
It is read operation and refresh operation or write operation in the different operating type that described operation effective address is identical
During with refresh operation, the read operation identical according to operation effective address and refresh operation or write operation and refreshing
Operation, selects to conflict with refresh operation for read operation or that write operation conflicts with refresh operation is second tactful,
Perform described second strategy.
In such scheme, it is tactful that described clash handle unit is further used for performing following first:
Identify the clash handle pattern identification of configuration in described first strategy;
When determining that the clash handle pattern identification being currently configured is the first mark, preferential execution clashes
Write operation in read operation and write operation;
When determining that the clash handle pattern identification being currently configured is the second mark, preferential execution clashes
Read operation in read operation and write operation;
When determining that the clash handle pattern identification being currently configured is the 3rd mark, it is judged that operate apart from this
Near in front action type, if apart from this operation nearest be read operation in front action type, the most preferentially hold
Write operation in the capable read operation clashed and write operation;If it is nearest in front operation class apart from this operation
Type is write operation, then preferentially perform the read operation in the read operation that clashes and write operation.
In such scheme, described clash handle unit is further used for, and configures in described identification the first strategy
Clash handle pattern identification before, identify in described first strategy the pressure refreshing identification of configuration, if described
Forcing refreshing identification is the 4th mark, then perform the pressure refresh operation to described operation effective address;If institute
Stating pressure refreshing identification is the 5th mark, then identify the clash handle pattern identification of configuration in described first strategy.
In such scheme, it is tactful that described clash handle unit is further used for performing following second:
According to the very first time of configuration in refresh time, perform the refresh operation in the operation clashed;
According to the second time of configuration in refresh time, perform the read operation in the operation clashed or write operation.
In such scheme, described refresh time is divided into N number of equal portions time, and N is whole more than or equal to 2
Counting, each described equal portions time is divided into refresh time and refreshes free time, and wherein, described refresh time is
For performing the time of refresh operation, described refreshing free time is the time for performing read or write;
All refresh times in described N number of equal portions time form the described very first time, in described N number of equal portions time
All refreshing free times form described second times.
In such scheme, described clash handle unit is further used for, in the refreshing performing described second strategy
In time, when getting pressure refreshing instruction, perform the pressure refresh operation to corresponding operating effective address.
The control method of a kind of memorizer provided described in the embodiment of the present invention and device, for DRAM cache
Reading and writing in management, refresh operation conflict feature frequently, by perform specific read/write conflict resolution policy,
And read the conflict-solving strategy of (or writing) operation and refresh operation such that it is able to specifically used according to chip
Situation, the operating collision of sweetly disposition caching, reduce the conflict between reading and writing, refresh operation, raising
Caching read-write efficiency.
Accompanying drawing explanation
Fig. 1 is the control method schematic flow sheet of the memorizer of the embodiment of the present invention one;
Fig. 2 is the schematic flow sheet of the embodiment of the present invention two;
Fig. 3 is that the refresh time of the embodiment of the present invention three divides schematic diagram;
Fig. 4 is the schematic flow sheet of the embodiment of the present invention three;
Fig. 5 is the composition structural representation controlling device of the memorizer of the embodiment of the present invention four.
Detailed description of the invention
The technical solution of the present invention is further elaborated with specific embodiment below in conjunction with the accompanying drawings.
Embodiment one
The control method of a kind of memorizer that the embodiment of the present invention one provides, as it is shown in figure 1, the method is main
Including:
Step 101, when the same time obtain different operating type operation effective address time, by described
The operation effective address of the different operating type that the same time obtains compares, to judge whether operation
The different operating type that effective address is identical.
Such as: when obtaining the operation effective address of the first action type and the second action type in the same time,
The operation effective address of the operation effective address of the first action type with the second action type is compared, with
Judge that both operation effective addresses are the most identical.
Step 102, when the different operating type that judgement existence operation effective address is identical, determines existence behaviour
Work conflicts, and selects corresponding conflict-solving strategy according to the action type that described operation effective address is identical,
Perform described conflict-solving strategy.
Such as: when judging have the first action type and the second action type to be simultaneous for identical in the same time
During operation effective address, determine and there is operational conflict.
Wherein, when the different operating type that described operation effective address is identical is read operation and write operation, institute
State the action type according to operation effective address is identical and select corresponding conflict-solving strategy, perform Conflict solving
Strategy, including: according to the operation identical read operation of effective address and write operation, select for read operation with write
First strategy of operating collision, performs described first strategy;
When the different operating type that described operation effective address is identical is read operation and refresh operation or write operation
During with refresh operation, the described action type identical according to operation effective address selects corresponding Conflict solving plan
Slightly, perform conflict-solving strategy, including: according to the identical read operation of operation effective address and refresh operation,
Or write operation and refresh operation, select to conflict with refresh operation for read operation or write operation and refresh operation
Second strategy of conflict, performs described second strategy.
Described execution the first strategy includes:
Identify the clash handle pattern identification of configuration in described first strategy;
When determining that the clash handle pattern identification being currently configured is the first mark, preferential execution clashes
Write operation in read operation and write operation;
When determining that the clash handle pattern identification being currently configured is the second mark, preferential execution clashes
Read operation in read operation and write operation;
When determining that the clash handle pattern identification being currently configured is the 3rd mark, it is judged that operate apart from this
Near in front action type, if apart from this operation nearest be read operation in front action type, the most preferentially hold
Write operation in the capable read operation clashed and write operation;If it is nearest in front operation class apart from this operation
Type is write operation, then preferentially perform the read operation in the read operation that clashes and write operation.
In described identification the first strategy before the clash handle pattern identification of configuration, described method can also be wrapped
Include:
Identify the pressure refreshing identification of configuration in described first strategy, if described pressure refreshing identification is the 4th mark
Know, then perform the pressure refresh operation to described operation effective address, know again after performing to force refresh operation
The clash handle pattern identification of configuration in the most described first strategy;If described pressure refreshing identification is the 5th mark,
Then identify the clash handle pattern identification of configuration in described first strategy.
Described execution the second strategy includes:
According to the very first time of configuration in refresh time, perform the refresh operation in the operation clashed;
According to the second time of configuration in refresh time, perform the read operation in the operation clashed or write operation.
The embodiment of a kind of refresh time configuration is that described refresh time is divided into N number of equal portions time,
N is the integer more than or equal to 2, and each described equal portions time is divided into refresh time and refreshes free time, its
In, described refresh time is the time for performing refresh operation, and described refreshing free time is for being used for performing
The time of read or write;All refresh times in described N number of equal portions time form the described very first time,
All refreshing free times in described N number of equal portions time form described second time.
In one embodiment, described method also includes:
In described refresh time, when getting pressure refreshing instruction, perform corresponding operating effective address
Force refresh operation.
The control method of the memorizer of the embodiment of the present invention is elaborated below in conjunction with concrete example.
Embodiment two
Seeing Fig. 2, the embodiment of the present invention two is for the process of read/write conflict.When read/write conflict occurs, to reading
Write operation can carry out priority and select mechanism.
In the case of not occurring to force to refresh, the most same address is grasped by read-write
Drawing a control signal, this control signal represents and has occurred and that read/write conflict.Additionally there is opening of many bits
Close the priority that (value can configure) selects current read-write to operate, a total of Three models: write operation preferentially,
Read operation is preferential, read-write operation priority RR poll.
Shown in Fig. 2, flow process specifically includes:
Step A1: the effective address output of read-write operation;
Step B1: compare the effective address in step A, when existing simultaneously effective to same
During the read and write operation of location, produce collision flag;
Step C1: judge to force whether refresh operation processes, if processed, then performs to force refresh operation;
Otherwise carry out next step;
Step D1: according to judging in previous step that read/write conflict is effective, process mould according to the read/write conflict of configuration
Formula is written and read clash handle, if this pattern is " 0 ", i.e. writes preferential, and write operation is effective;If this mould
Formula is " 1 ", i.e. reads preferential, and read operation is effective;If this pattern is " 2 ", then read-write operation also to enter
Next step judgement of row;
Step E1: according to last operation note mark, read-write priority carries out RR (Round-Robin)
Polling operation: if last operation is for reading, then this operation is with effect, and otherwise this operation is read effectively.
Embodiment three
Seeing Fig. 3 and Fig. 4, the embodiment of the present invention three is for reading to conflict with refresh operation or write and refresh
The process of operating collision.
By read (or writing) operation with refresh operation simultaneously to same bank (slot) operation draw reading (or
Write) refresh collision signal.In total refresh time (time of data not power down), configuration suitably refreshes
Readings (or writing) operation and the collision probability of refresh operation are reduced in interval, as shown in Figure 3: during total refreshing
Between (t) be divided into some equal portions time (ts), in this set time cuts into slices, there is set time (tref) be used for
Refreshing bank, remaining refreshes free time (trw) it is used for the operation of the reading (or writing) to bank.So often
Individual tsIn time, as long as the bank completing fixed number refreshes, other refresh free time and would not refresh,
Thus reduce refresh operation and conflicting that reading (or writing) operates.
Increase simultaneously and force flush mechanism: when this collision signal is effective, i.e. can configure at above-mentioned refresh interval
Mechanism is lower at most to be occurred carrying out under once refreshing time-out critical condition forcing to refresh, it is ensured that all of data content
All it is refreshed to;Now read (writing) operation suspension once.I.e. under above-mentioned refresh interval can configure mechanism,
When occurring refreshing the critical condition of time-out, most execution are once forced to refresh, and force the time refreshed in execution
In interval, reading (writing) operation suspension of conflict is once.
Shown in Fig. 4, flow process specifically includes:
Step A2: configuration refresh interval value, effective bank of (or writing) operation and refresh operation is read in output;
Step B2: compare the data in step A, when existing simultaneously effective to same address
When reading (or writing) operation with refresh operation, produce collision flag;
Step C2: when reading (or writing) refreshing conflict and being invalid, read (or writing) and operate with refresh operation each
Independently execute, otherwise may proceed to next step;
Step D2: when reading (or writing) refreshing conflict and being effective, if not being under pressure refresh case,
So refresh operation may proceed to perform next step, the most directly refreshes current bank;
Step E2: refresh next bank.
Embodiment four
The control method of the memorizer of the corresponding embodiment of the present invention one, the embodiment of the present invention four provides one and deposits
The control device of reservoir, as it is shown in figure 5, this device specifically includes that
Comparing unit 10, during for obtaining the operation effective address of different operating type in the same time, by institute
The operation effective address stating the different operating type obtained in the same time compares, to judge whether
The different operating type that operation effective address is identical;
Clash handle unit 20, when the different operating type identical in judgement existence operation effective address,
Determine and there is operating collision, and select corresponding conflict according to the action type that described operation effective address is identical
Resolution policy, performs described conflict-solving strategy.
Wherein, described clash handle unit 20 is further used for, in the difference that described operation effective address is identical
When action type is read operation and write operation, the read operation identical according to operation effective address and write operation, choosing
Select the first strategy conflicted with write operation for read operation, perform described first strategy;
It is read operation and refresh operation or write operation in the different operating type that described operation effective address is identical
During with refresh operation, the read operation identical according to operation effective address and refresh operation or write operation and refreshing
Operation, selects to conflict with refresh operation for read operation or that write operation conflicts with refresh operation is second tactful,
Perform described second strategy.
It is tactful that described clash handle unit 20 is further used for performing following first:
Identify the clash handle pattern identification of configuration in described first strategy;
When determining that the clash handle pattern identification being currently configured is the first mark, preferential execution clashes
Write operation in read operation and write operation;
When determining that the clash handle pattern identification being currently configured is the second mark, preferential execution clashes
Read operation in read operation and write operation;
When determining that the clash handle pattern identification being currently configured is the 3rd mark, it is judged that operate apart from this
Near in front action type, if apart from this operation nearest be read operation in front action type, the most preferentially hold
Write operation in the capable read operation clashed and write operation;If it is nearest in front operation class apart from this operation
Type is write operation, then preferentially perform the read operation in the read operation that clashes and write operation.
Described clash handle unit 20 is further used for, the clash handle of configuration in described identification the first strategy
Before pattern identification, identify the pressure refreshing identification of configuration in described first strategy, if described pressure refreshes mark
Knowledge is the 4th mark, then perform the pressure refresh operation to described operation effective address;If described pressure is refreshed
It is designated the 5th mark, then identifies the clash handle pattern identification of configuration in described first strategy.
It is tactful that described clash handle unit 20 is further used for performing following second:
According to the very first time of configuration in refresh time, perform the refresh operation in the operation clashed;
According to the second time of configuration in refresh time, perform the read operation in the operation clashed or write operation.
Described refresh time is divided into N number of equal portions time, and N is the integer more than or equal to 2, each described
The equal portions time is divided into refresh time and refreshes free time, and wherein, described refresh time is for being used for performing refreshing
The time of operation, described refreshing free time is the time for performing read or write;Described N number of equal portions
All refresh times in time form the described very first time, all refreshing skies in described N number of equal portions time
Described second time is formed between idle.
Described clash handle unit 20 is further used for, and in the refresh time performing described second strategy, obtains
When getting pressure refreshing instruction, perform the pressure refresh operation to corresponding operating effective address.
It should be noted that above-mentioned comparing unit 10, clash handle unit 20 can be by controlling in device
Central processor (CPU, Central Processing Unit), microprocessor (MPU, Micro Processing
Unit), digital signal processor (DSP, Digital Signal Processor) or programmable logic array (FPGA,
Field-Programmable Gate Array) realize.
In sum, reading and writing during the embodiment of the present invention manages for DRAM cache, refresh operation conflict frequency
Numerous feature, operates by performing specific read/write conflict resolution policy and reading (or writing) and refreshes behaviour
The conflict-solving strategy made such that it is able to according to the specifically used situation of chip, the operation punching of sweetly disposition caching
Prominent, reduce the conflict between reading and writing, refresh operation, the caching read-write efficiency of raising.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or meter
Calculation machine program product.Therefore, the present invention can use hardware embodiment, software implementation or combine software and
The form of the embodiment of hardware aspect.And, the present invention can use and wherein include calculating one or more
The computer-usable storage medium of machine usable program code (includes but not limited to disk memory and optical storage
Device etc.) form of the upper computer program implemented.
The present invention is with reference to method, equipment (system) and computer program according to embodiments of the present invention
Flow chart and/or block diagram describe.It should be understood that can be by computer program instructions flowchart and/or side
Flow process in each flow process in block diagram and/or square frame and flow chart and/or block diagram and/or the knot of square frame
Close.Can provide these computer program instructions to general purpose computer, special-purpose computer, Embedded Processor or
The processor of other programmable data processing device is to produce a machine so that by computer or other can
The instruction that the processor of programming data processing equipment performs produces for realizing in one flow process or multiple of flow chart
The device of the function specified in flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and can guide computer or other programmable data processing device
In the computer-readable memory worked in a specific way so that be stored in this computer-readable memory
Instruction produces the manufacture including command device, and this command device realizes at one flow process of flow chart or multiple stream
The function specified in journey and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, makes
Sequence of operations step must be performed to produce computer implemented process on computer or other programmable devices,
Thus the instruction performed on computer or other programmable devices provides for realizing in one flow process of flow chart
Or the step of the function specified in multiple flow process and/or one square frame of block diagram or multiple square frame.
The above, only presently preferred embodiments of the present invention, it is not intended to limit the protection model of the present invention
Enclose.
Claims (14)
1. the control method of a memorizer, it is characterised in that described method includes:
When obtaining the operation effective address of different operating type in the same time, obtain described in the same time
The operation effective address of the different operating type obtained compares, to judge whether to operate effective address phase
Same different operating type;
When the different operating type that judgement existence operation effective address is identical, determine and there is operating collision, and
Select corresponding conflict-solving strategy according to the action type that described operation effective address is identical, perform described punching
Prominent resolution policy.
The control method of memorizer the most according to claim 1, it is characterised in that
When the different operating type that described operation effective address is identical is read operation and write operation, described basis
The action type that operation effective address is identical selects corresponding conflict-solving strategy, performs conflict-solving strategy,
Including: the read operation identical according to operation effective address and write operation, select to rush with write operation for read operation
The first prominent strategy, performs described first strategy;
When the different operating type that described operation effective address is identical is read operation and refresh operation or write operation
During with refresh operation, the described action type identical according to operation effective address selects corresponding Conflict solving plan
Slightly, perform conflict-solving strategy, including: according to the identical read operation of operation effective address and refresh operation,
Or write operation and refresh operation, select to conflict with refresh operation for read operation or write operation and refresh operation
Second strategy of conflict, performs described second strategy.
The control method of memorizer the most according to claim 2, it is characterised in that described execution the first plan
Slightly include:
Identify the clash handle pattern identification of configuration in described first strategy;
When determining that the clash handle pattern identification being currently configured is the first mark, preferential execution clashes
Write operation in read operation and write operation;
When determining that the clash handle pattern identification being currently configured is the second mark, preferential execution clashes
Read operation in read operation and write operation;
When determining that the clash handle pattern identification being currently configured is the 3rd mark, it is judged that operate apart from this
Near in front action type, if apart from this operation nearest be read operation in front action type, the most preferentially hold
Write operation in the capable read operation clashed and write operation;If it is nearest in front operation class apart from this operation
Type is write operation, then preferentially perform the read operation in the read operation that clashes and write operation.
The control method of memorizer the most according to claim 3, it is characterised in that in described identification first
In strategy before the clash handle pattern identification of configuration, described method also includes:
Identify the pressure refreshing identification of configuration in described first strategy, if described pressure refreshing identification is the 4th mark
Know, then perform the pressure refresh operation to described operation effective address;If described pressure refreshing identification is the 5th
Mark, then identify the clash handle pattern identification of configuration in described first strategy.
The control method of memorizer the most according to claim 2, it is characterised in that described execution the second plan
Slightly include:
According to the very first time of configuration in refresh time, perform the refresh operation in the operation clashed;
According to the second time of configuration in refresh time, perform the read operation in the operation clashed or write operation.
The control method of memorizer the most according to claim 5, it is characterised in that described refresh time quilt
Being divided into N number of equal portions time, N is the integer more than or equal to 2, when each described equal portions time is divided into refreshing
Between and refresh free time, wherein, described refresh time is the time for performing refresh operation, described brush
New free time is the time for performing read or write;In described N number of equal portions time all refreshing time
Between form the described very first time, in described N number of equal portions time all refreshing free times composition described second
Time.
7. according to the control method of memorizer described in claim 5 or 6, it is characterised in that described method is also
Including:
In the refresh time performing described second strategy, when getting pressure refreshing instruction, perform accordingly
The pressure refresh operation of operation effective address.
8. the control device of a memorizer, it is characterised in that described device includes:
Comparing unit, during for obtaining the operation effective address of different operating type in the same time, by described
The operation effective address of the different operating type obtained in the same time compares, to judge whether behaviour
Make the different operating type that effective address is identical;
Clash handle unit, when the different operating type identical in judgement existence operation effective address, really
Surely there is operating collision, and select to conflict accordingly solution according to the action type that described operation effective address is identical
Decision-making slightly, performs described conflict-solving strategy.
The control device of memorizer the most according to claim 8, it is characterised in that described clash handle list
Unit is further used for, when the different operating type that described operation effective address is identical is read operation and write operation,
According to the operation identical read operation of effective address and write operation, select the conflicted for read operation with write operation
One strategy, performs described first strategy;
It is read operation and refresh operation or write operation in the different operating type that described operation effective address is identical
During with refresh operation, the read operation identical according to operation effective address and refresh operation or write operation and refreshing
Operation, selects to conflict with refresh operation for read operation or that write operation conflicts with refresh operation is second tactful,
Perform described second strategy.
The control device of memorizer the most according to claim 9, it is characterised in that described clash handle
It is tactful that unit is further used for performing following first:
Identify the clash handle pattern identification of configuration in described first strategy;
When determining that the clash handle pattern identification being currently configured is the first mark, preferential execution clashes
Write operation in read operation and write operation;
When determining that the clash handle pattern identification being currently configured is the second mark, preferential execution clashes
Read operation in read operation and write operation;
When determining that the clash handle pattern identification being currently configured is the 3rd mark, it is judged that operate apart from this
Near in front action type, if apart from this operation nearest be read operation in front action type, the most preferentially hold
Write operation in the capable read operation clashed and write operation;If it is nearest in front operation class apart from this operation
Type is write operation, then preferentially perform the read operation in the read operation that clashes and write operation.
The control device of 11. memorizeies according to claim 10, it is characterised in that described clash handle
Unit is further used for, and in described identification the first strategy before the clash handle pattern identification of configuration, identifies
In described first strategy, the pressure refreshing identification of configuration, if described pressure refreshing identification is the 4th mark, then holds
The row pressure refresh operation to described operation effective address;If described pressure refreshing identification is the 5th mark, then
Identify the clash handle pattern identification of configuration in described first strategy.
The control device of 12. memorizeies according to claim 9, it is characterised in that described clash handle
It is tactful that unit is further used for performing following second:
According to the very first time of configuration in refresh time, perform the refresh operation in the operation clashed;
According to the second time of configuration in refresh time, perform the read operation in the operation clashed or write operation.
13. according to the control device of memorizer described in claim 12, it is characterised in that described refresh time
Being divided into N number of equal portions time, N is the integer more than or equal to 2, and each described equal portions time is divided into refreshing
Time and refreshing free time, wherein, described refresh time is the time for performing refresh operation, described
Refreshing free time is the time for performing read or write;All refreshings in described N number of equal portions time
Time forms the described very first time, all refreshing free times compositions described the in described N number of equal portions time
Two times.
14. according to the control device of memorizer described in claim 12 or 13, it is characterised in that described punching
Prominent processing unit is further used for, and in the refresh time performing described second strategy, gets pressure and refreshes
During instruction, perform the pressure refresh operation to corresponding operating effective address.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510362628.0A CN106326145A (en) | 2015-06-26 | 2015-06-26 | Control method and device for memory |
PCT/CN2016/084587 WO2016206529A1 (en) | 2015-06-26 | 2016-06-02 | Memory control method and device, and computer storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510362628.0A CN106326145A (en) | 2015-06-26 | 2015-06-26 | Control method and device for memory |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106326145A true CN106326145A (en) | 2017-01-11 |
Family
ID=57584647
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510362628.0A Withdrawn CN106326145A (en) | 2015-06-26 | 2015-06-26 | Control method and device for memory |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106326145A (en) |
WO (1) | WO2016206529A1 (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106933512A (en) * | 2017-02-27 | 2017-07-07 | 深圳怡化电脑股份有限公司 | The method and its equipment of a kind of reading and writing data |
CN109491926A (en) * | 2018-10-26 | 2019-03-19 | 浙江工商大学 | The EMS memory management process in service life is write based on the optimization nonvolatile memory that the time is write in extension |
CN109872745A (en) * | 2017-12-05 | 2019-06-11 | 南亚科技股份有限公司 | Dynamic random access memory and its operating method |
CN111490906A (en) * | 2020-06-29 | 2020-08-04 | 武汉思普崚技术有限公司 | Method and device for analyzing gateway equipment policy and readable storage medium |
CN112068776A (en) * | 2020-09-02 | 2020-12-11 | 深圳市硅格半导体有限公司 | Adaptive adjustment method, system, device and medium for memory management algorithm |
CN112905368A (en) * | 2019-11-19 | 2021-06-04 | 杭州海康威视数字技术股份有限公司 | Data restoration method, device and equipment and storage medium |
CN113157606A (en) * | 2021-04-21 | 2021-07-23 | 上海燧原科技有限公司 | Buffer implementation method and device and data processing equipment |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106658050B (en) * | 2016-12-30 | 2020-02-21 | 北京奇虎科技有限公司 | Concurrent reading and writing method and device for stream data |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101625892A (en) * | 2009-08-07 | 2010-01-13 | 杭州华三通信技术有限公司 | Controller of dynamic random-access memory and user instruction treatment method |
CN101872299A (en) * | 2010-07-06 | 2010-10-27 | 浙江大学 | Conflict prediction realizing method and conflict prediction processing device used by transaction memory |
CN102024492A (en) * | 2009-09-23 | 2011-04-20 | 北京芯技佳易微电子科技有限公司 | Pseudo-static memory and method for controlling write operation and refresh operation of pseudo-static memory |
CN102024490A (en) * | 2009-09-23 | 2011-04-20 | 北京芯技佳易微电子科技有限公司 | Pseudo-static memory, and reading operation and refreshing operation control method thereof |
CN102081964A (en) * | 2009-11-30 | 2011-06-01 | 国际商业机器公司 | Method and system for refreshing dynamic random access memory |
CN102567243A (en) * | 2011-12-12 | 2012-07-11 | 华为技术有限公司 | Storage device and refreshing method for same |
CN103777894A (en) * | 2012-10-25 | 2014-05-07 | 深圳市中兴微电子技术有限公司 | Method and device for eliminating read-write conflict of memorizer |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4664208B2 (en) * | 2003-08-18 | 2011-04-06 | 富士通セミコンダクター株式会社 | Semiconductor memory and operation method of semiconductor memory |
-
2015
- 2015-06-26 CN CN201510362628.0A patent/CN106326145A/en not_active Withdrawn
-
2016
- 2016-06-02 WO PCT/CN2016/084587 patent/WO2016206529A1/en active Application Filing
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101625892A (en) * | 2009-08-07 | 2010-01-13 | 杭州华三通信技术有限公司 | Controller of dynamic random-access memory and user instruction treatment method |
CN102024492A (en) * | 2009-09-23 | 2011-04-20 | 北京芯技佳易微电子科技有限公司 | Pseudo-static memory and method for controlling write operation and refresh operation of pseudo-static memory |
CN102024490A (en) * | 2009-09-23 | 2011-04-20 | 北京芯技佳易微电子科技有限公司 | Pseudo-static memory, and reading operation and refreshing operation control method thereof |
CN102081964A (en) * | 2009-11-30 | 2011-06-01 | 国际商业机器公司 | Method and system for refreshing dynamic random access memory |
CN101872299A (en) * | 2010-07-06 | 2010-10-27 | 浙江大学 | Conflict prediction realizing method and conflict prediction processing device used by transaction memory |
CN102567243A (en) * | 2011-12-12 | 2012-07-11 | 华为技术有限公司 | Storage device and refreshing method for same |
CN103777894A (en) * | 2012-10-25 | 2014-05-07 | 深圳市中兴微电子技术有限公司 | Method and device for eliminating read-write conflict of memorizer |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106933512A (en) * | 2017-02-27 | 2017-07-07 | 深圳怡化电脑股份有限公司 | The method and its equipment of a kind of reading and writing data |
CN106933512B (en) * | 2017-02-27 | 2020-03-27 | 深圳怡化电脑股份有限公司 | Data reading and writing method and device |
CN109872745A (en) * | 2017-12-05 | 2019-06-11 | 南亚科技股份有限公司 | Dynamic random access memory and its operating method |
CN109872745B (en) * | 2017-12-05 | 2021-05-04 | 南亚科技股份有限公司 | Dynamic random access memory and operation method thereof |
CN109491926A (en) * | 2018-10-26 | 2019-03-19 | 浙江工商大学 | The EMS memory management process in service life is write based on the optimization nonvolatile memory that the time is write in extension |
CN109491926B (en) * | 2018-10-26 | 2023-03-28 | 浙江工商大学 | Memory management method for optimizing write life of nonvolatile memory based on prolonging write time |
CN112905368A (en) * | 2019-11-19 | 2021-06-04 | 杭州海康威视数字技术股份有限公司 | Data restoration method, device and equipment and storage medium |
CN111490906A (en) * | 2020-06-29 | 2020-08-04 | 武汉思普崚技术有限公司 | Method and device for analyzing gateway equipment policy and readable storage medium |
CN112068776A (en) * | 2020-09-02 | 2020-12-11 | 深圳市硅格半导体有限公司 | Adaptive adjustment method, system, device and medium for memory management algorithm |
WO2022048108A1 (en) * | 2020-09-02 | 2022-03-10 | 深圳市硅格半导体有限公司 | Method and system for adaptively adjusting memory management algorithm, and device and medium |
CN113157606A (en) * | 2021-04-21 | 2021-07-23 | 上海燧原科技有限公司 | Buffer implementation method and device and data processing equipment |
Also Published As
Publication number | Publication date |
---|---|
WO2016206529A1 (en) | 2016-12-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106326145A (en) | Control method and device for memory | |
CA2949282C (en) | Method for refreshing dynamic random access memory and a computer system | |
KR20160144482A (en) | Fine-grained bandwidth provisioning in a memory controller | |
US10497422B2 (en) | Memory device performing care operation for disturbed row and operating method thereof | |
US20150301917A1 (en) | Memory Monitoring Method and Related Apparatus | |
JP2012118784A (en) | Data storage device, memory control device and memory control method | |
JP5751354B1 (en) | MEMORY CONTROL DEVICE, INFORMATION PROCESSING DEVICE, MEMORY CONTROL METHOD, AND COMPUTER PROGRAM | |
CN109634664A (en) | A kind of method and device of CPU to hardware circuit transmitting order to lower levels descriptor | |
CN109901890A (en) | A kind of method, apparatus, computer equipment and the storage medium of controller loading multi-core firmware | |
WO2018103472A1 (en) | Method and device for buffer optimization in deep learning network | |
CN106933512B (en) | Data reading and writing method and device | |
CN112506823A (en) | FPGA data reading and writing method, device, equipment and readable storage medium | |
CN102567243B (en) | Storage device and refreshing method for same | |
CN107368431B (en) | Memory access method, cross switch and computer system | |
CN116501249A (en) | Method for reducing repeated data read-write of GPU memory and related equipment | |
US10482027B2 (en) | Cache management method and apparatus | |
CN109710187A (en) | Read command accelerated method, device, computer equipment and the storage medium of NVMe SSD main control chip | |
CN105740064B (en) | The method and device for preventing server-side from restarting in linux system | |
US8452920B1 (en) | System and method for controlling a dynamic random access memory | |
CN106982176A (en) | A kind of data transmission method and equipment | |
CN209590838U (en) | A kind of SoC system | |
CN106502810B (en) | A kind of fault detection method and device of cache memory | |
CN112068948A (en) | Data hashing method, readable storage medium and electronic device | |
US20130290535A1 (en) | Apparatus and method for managing an access control list in an internet device | |
CN104516823A (en) | Method and device for storing data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20170111 |
|
WW01 | Invention patent application withdrawn after publication |