[go: up one dir, main page]

CN114185486A - A data writing method of DRAM memory and DRAM control system - Google Patents

A data writing method of DRAM memory and DRAM control system Download PDF

Info

Publication number
CN114185486A
CN114185486A CN202111361888.8A CN202111361888A CN114185486A CN 114185486 A CN114185486 A CN 114185486A CN 202111361888 A CN202111361888 A CN 202111361888A CN 114185486 A CN114185486 A CN 114185486A
Authority
CN
China
Prior art keywords
length
data
dram
continuous
written
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111361888.8A
Other languages
Chinese (zh)
Other versions
CN114185486B (en
Inventor
周恺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Demingli Electronics Co Ltd
Original Assignee
Shenzhen Demingli Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Demingli Electronics Co Ltd filed Critical Shenzhen Demingli Electronics Co Ltd
Priority to CN202111361888.8A priority Critical patent/CN114185486B/en
Publication of CN114185486A publication Critical patent/CN114185486A/en
Application granted granted Critical
Publication of CN114185486B publication Critical patent/CN114185486B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/061Improving I/O performance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • G06F3/0658Controller construction arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0679Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

本发明公开了一种DRAM存储器的数据写入方法和系统,所述方法包括:DRAM控制器接收待写入数据,待写入数据包括数据段和地址段,数据段与地址段对应;判断数据段的连续逻辑值的长度是否大于或等于预设长度,连续逻辑值为连续的0或1;若连续逻辑值的长度大于或等于预设长度,则获取查找表,查找表包括DRAM存储器中存储的连续逻辑值以及存储的连续逻辑值所在的地址范围;查询连续逻辑值对应的待写入地址范围是否在查找表中;若是,则向DRAM控制器发送连续逻辑值无需写入的指示信号,数据段中的其他逻辑值按照普通的写入方式写入,减少DRAM存储器的访问次数,提升连续逻辑值的写入速度,从而提升DRAM存储器的数据写入速度。

Figure 202111361888

The invention discloses a data writing method and system for a DRAM memory. The method includes: a DRAM controller receives data to be written, the data to be written includes a data segment and an address segment, and the data segment corresponds to the address segment; and judging the data Whether the length of the continuous logical value of the segment is greater than or equal to the preset length, and the continuous logical value is continuous 0 or 1; if the length of the continuous logical value is greater than or equal to the preset length, a look-up table is obtained, and the look-up table includes storage in the DRAM memory and the address range where the continuous logic value is stored; query whether the address range to be written corresponding to the continuous logic value is in the lookup table; if so, send an indication signal to the DRAM controller that the continuous logic value does not need to be written, Other logical values in the data segment are written in a common writing method, which reduces the number of accesses to the DRAM memory and improves the writing speed of consecutive logical values, thereby improving the data writing speed of the DRAM memory.

Figure 202111361888

Description

Data writing method of DRAM (dynamic random Access memory) and DRAM control system
Technical Field
The invention relates to the technical field of storage, in particular to a data writing method of a DRAM (dynamic random access memory) and a DRAM control system.
Background
DRAM is a commonly used data storage device, and the data storage is realized by charging and discharging a capacitor of each memory cell, so as to control a high level or a low level of stored data, corresponding to data 1 or 0. The DRAM controller, which currently controls and communicates data to the DRAM, requires time to precharge the DRAM before each write, a row activation pre-operation, and writes each memory cell sequentially in address order at each write (see fig. 1). Because the internal default storage units of the DRAM are all high level after the DRAM is electrified and initialized, if the data is transmitted to a string of continuous 1 data of the DRAM and written, the traditional method is to carry out pre-operation on the DRAM and access the storage units without modifying the data; for a read operation, a pre-operation is performed first, and then data is read for each memory cell. Access operations are added upon writing of such all-1 data. Some consecutive memory cells may have consecutive data 0's again. Likewise, re-accessing and writing 0 to consecutive data 0 addresses also increases the access operation, reducing the write speed of the DRAM.
Disclosure of Invention
The invention aims to provide a data writing method of a DRAM (dynamic random access memory) and a DRAM monitoring system.
In order to achieve the above object, a first aspect of the present invention provides a data writing method for a DRAM memory, including: the method comprises the steps that a DRAM controller receives data to be written, the data to be written comprises a data section and an address section, and the data section corresponds to the address section; judging whether the length of the continuous logic value of the data segment is greater than or equal to a preset length or not, wherein the continuous logic value is continuous 0 or 1; if the length of the continuous logic value is greater than or equal to the preset length, acquiring a lookup table, wherein the lookup table comprises the continuous logic value stored in a DRAM memory and an address range where the stored continuous logic value is located; inquiring whether the address range to be written corresponding to the continuous logic value is in the lookup table or not; and if so, sending an indication signal that the continuous logic value does not need to be written to the DRAM controller.
In one embodiment, the method further comprises the following steps: and receiving the preset length configured by the user.
In one embodiment, the method further comprises the following steps: determining a data length of the data segment; if the data length is smaller than the preset length, judging whether the data length is smaller than a burst length, wherein the burst length is smaller than the preset length and is the data length for setting the minimum write-once of the DRAM; and if the data length is smaller than the burst length, sending an indication signal that the data segment does not need to be written to the DRAM controller.
In one embodiment, the method further comprises the following steps: and if the data length is larger than the burst length, writing according to a preset writing rule of the DRAM.
In one embodiment, after determining whether the length of the continuous logical value of the data segment is greater than a preset length, the method further includes: and if the length of the continuous logic value is smaller than the preset length, writing according to a preset writing rule of the DRAM.
In one embodiment, after querying whether the address range to be written corresponding to the continuous logical value is in a lookup table according to the correspondence between the data segment and the address segment, the method further includes: if not, writing is executed according to the preset writing rule of the DRAM.
In one embodiment, the determining whether the length of the continuous logic value of the data segment is greater than a preset length includes: and judging whether the length of the continuous logic value of the data segment is greater than the preset length through a judging circuit.
In one embodiment, the method further comprises the following steps: acquiring a logic value stored in the DRAM memory and an address of the logic value; writing the logical value and the address of the logical value in the DRAM memory to the lookup table.
In one embodiment, after the obtaining the logical value and the address of the logical value stored in the DRAM memory, the method further includes: judging whether the logic values stored in the DRAM memory contain continuous logic values larger than the preset length; if yes, the writing the logical value in the DRAM memory and the address of the logical value into the lookup table includes: and writing addresses of continuous logic values larger than or equal to the preset length and continuous logic values larger than or equal to the preset length in the logic values in the DRAM memory into the lookup table.
A second aspect of the present invention provides a DRAM control system, comprising:
the device comprises a DRAM controller circuit, a lookup table, a DRAM memory and a judgment circuit;
the DRAM controller circuit comprises a DRAM controller and a judgment circuit;
the DRAM controller is used for receiving data to be written, the data to be written comprises a data segment and an address segment, and the data segment corresponds to the address segment;
the judging circuit is used for judging whether the length of the continuous logic value of the data segment is greater than a preset length, and the continuous logic value is continuous 0 or 1;
the DRAM controller is used for sending a query request to the lookup table if the length of the continuous logic value is greater than or equal to the preset length;
the lookup table is used for querying whether an address range to be written corresponding to the continuous logic value exists or not according to the query request, wherein the lookup table comprises the continuous logic value stored in the DRAM memory and the address range where the stored continuous logic value is located;
and the DRAM controller is used for sending an indication signal that the continuous logic value does not need to be written to the DRAM controller if the address range to be written corresponding to the continuous logic value exists in the lookup table.
The data writing method of the DRAM comprises the following steps: when the DRAM controller receives data to be written, the data to be written comprises a data segment and an address segment, and the data segment corresponds to the address segment; judging whether the length of the continuous logic value of the data segment is greater than a preset length, wherein the continuous logic value is continuous 0 or 1; if the length of the continuous logic value is greater than or equal to the preset length, acquiring a lookup table, wherein the lookup table comprises the continuous logic value stored in a DRAM memory and an address range where the stored continuous logic value is located; inquiring whether the address range to be written corresponding to the continuous logic value is in a lookup table or not; and if so, sending an indication signal that the continuous logic value does not need to be written to the DRAM controller. The lookup table of the method records data and data addresses stored in a DRAM memory, a DRAM controller judges the continuous logic value of the written data when receiving a task of the written data, if the length of the continuous logic value is longer, whether the DRAM memory has storage addresses with the same address range of the continuous logic value is judged through the recorded information in the lookup table, if the storage addresses exist, the data in the corresponding storage addresses in the DRAM memory are kept unchanged, the access times of the DRAM memory are reduced, and the data writing speed is accelerated.
Additional features and advantages of embodiments of the invention will be set forth in the detailed description which follows.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic diagram of a DRAM memory control system of the present invention;
FIG. 2 is a schematic diagram of a DRAM memory control system of the present invention;
FIG. 3 is a flow chart illustrating a data writing method of a DRAM memory according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be noted that the following examples are only illustrative of the present invention, and do not limit the scope of the present invention. Similarly, the following examples are only some but not all examples of the present invention, and all other examples obtained by those skilled in the art without any inventive work are within the scope of the present invention.
The invention provides a data writing method of a DRAM memory.
Referring to fig. 1, fig. 1 is a schematic diagram of a DRAM control system, the DRAM control system 100 includes: a DRAM controller 201, a lookup table 202, a DRAM memory 203, and a judgment circuit 204; the DRAM controller 201 is configured to receive data to be written, where the data to be written includes a data segment and an address segment, and the data segment corresponds to the address segment; the judging circuit 204 is configured to judge whether the length of a continuous logic value of the data segment is greater than a preset length, where the continuous logic value is a continuous 0 or 1; the DRAM controller 201 is configured to send a query request to the lookup table 202 if the length of the continuous logic value is greater than or equal to a preset length; a lookup table 202, configured to query whether an address range to be written corresponding to the continuous logical value exists according to the query request, where the lookup table 202 includes the continuous logical value stored in the DRAM 203 and an address range in which the stored continuous logical value is located; the DRAM controller 202 is configured to send an indication signal to the DRAM memory 203 to keep the address range to be written corresponding to the continuous logical value unchanged if the address range to be written corresponding to the continuous logical value exists in the lookup table 202.
As shown in fig. 2, fig. 2 is a flow chart illustrating a data writing method of a DRAM memory. It should be noted that the method of the present invention is not limited to the flow sequence shown in fig. 2 if the results are substantially the same.
The method comprises the following steps:
s301: the DRAM controller receives data to be written.
In this embodiment, the data to be written includes a data segment and an address segment, and the data segment corresponds to the address segment.
The DRAM controller is used for controlling data read-write operation of the DRAM. The data to be written refers to data that is ready to be written to the DRAM memory. The data to be written comprises a data segment and an address segment, wherein the data segment refers to the data to be stored, and the address segment refers to the storage address of the data. Data segment to address segment correspondence means that there is a unique corresponding address for each data.
And after the DRAM control receives the data to be written, writing the data to be written into the DRAM according to the address section according to the preset writing rule. The DRAM controller reads data from the DRAM memory according to a preconfigured read rule upon receiving a read request to read the data.
S302, judging whether the length of the continuous logic value of the data segment is larger than or equal to a preset length.
In this particular embodiment, consecutive logical values are consecutive 0 or 1.
The continuous logic value of a data segment refers to that the same logic value in the data segment is continuous, such as continuous 0 or 1, that is, 1 appears multiple times continuously or 0 appears multiple times continuously, such as a data segment "0000, 1111, 1110, 0000, 0000", where the data segment includes four continuous 0 s in front, 7 continuous 1 s in the middle, and 9 continuous 0 s in the back, where 4, 7, and 9 are lengths of continuous logic values, and the lengths of continuous logic values may also be expressed in other forms. The preset length is a preset length threshold value, and the length threshold value is related to the specified read-write length of the DRAM memory, for example, the maximum length that the DRAM memory can write at a time is taken as the preset length. When the DRAMA memory is shipped, a corresponding write rule is configured, and the write rule includes a maximum length that data can be written each time.
S303, if the length of the continuous logic value is larger than or equal to the preset length, a lookup table is obtained.
In this particular embodiment, the lookup table includes consecutive logical values stored in the DRAM memory and a range of addresses in which the consecutive logical values are stored.
S304, inquiring whether the address range to be written corresponding to the continuous logic value is in the lookup table.
S305, if yes, sending an indication signal that the continuous logic value does not need to be written to the DRAM controller.
The lookup table is a table for storing data and data addresses in the DRAM memory, and the lookup table may be stored in the DRAM memory or in another memory, and the other memory may communicate with the DRAM. The lookup table may store the continuous logic value stored in the DRAM memory and the address where the stored continuous logic value is located, or may store the discontinuous logic value and the address where the discontinuous logic value is located.
And when the length of the continuous logic value of the data segment of the data to be written is greater than the preset length, inquiring whether an address range corresponding to the address range of the continuous logic value exists in the lookup table. If the logical value identical to the continuous logical value is found in the lookup table, and the address range of the continuous logical value is correspondingly consistent with the address range in the lookup table, it indicates that the continuous logical value already exists in the DRAM memory, and the write operation on the data to be written is stopped without performing the write operation again. And sending an indication signal for indicating that the writing operation is not needed to be carried out to the DRAM controller, wherein the DRAM controller only needs to keep the data of the address range where the continuous logic value is located unchanged after receiving the indication signal, so that the frequency of accessing the DRAM memory is reduced, the writing speed of the continuous logic value is increased, and the writing speed of the data to be written is increased.
According to the data writing method of the DRAM, the data and the addresses in the DRAM are stored in the lookup table, when the data are written into the DRAM, the length of the continuous logic value of the data segment of the data to be written is judged firstly, if the length of the continuous logic value is larger than or equal to the preset critical length, whether consistent data and addresses exist is searched in the lookup table, and if yes, the writing operation is not required to be executed, so that the writing times of the DRAM are reduced, and the data writing speed of the DRAM is improved.
In one embodiment, the data writing method for a DRAM memory further includes: and receiving the preset length configured by the user.
Specifically, the data write length of the DRAM memory configuration refers to the write length determined by the user according to the requirement. Wherein the preset length is less than or equal to the maximum writing length of data written each time. The DRAM memory can write the maximum data length every time as a critical value, the writing times of data can be effectively reduced, if the maximum writing length is 8, and 8 is taken as a preset length, whether the writing operation needs to be executed or not is judged, if the length of the continuous logic value of the data segment is more than or equal to 8, and the address corresponding to the continuous logic value is found in the lookup table, the writing operation can be directly skipped, and only the DRAM controller needs to be informed that the writing is existed in the memory. Therefore, the access times of the DRAM memory are reduced, and the data writing speed of the DRAM memory is improved.
In one embodiment, the data writing method for a DRAM memory further includes: determining a data length of the data segment; if the data length is smaller than the preset length, judging whether the data length is smaller than a burst length, wherein the burst length is smaller than the preset length and is the data length for setting the minimum write-once of the DRAM; and if the data length is smaller than the burst length, sending an indication signal that the data segment does not need to be written to the DRAM controller.
Specifically, a preset length inside the DRAM memory is used to set a minimum write-once data length, which is termed a "burst length". And if the data length of the data segment is smaller than the burst length, not writing. The input data length is set to be larger than the burst length by default, and the preset length is set to be larger than the burst length by default.
In one embodiment, after determining whether the length of the continuous logic value of the data segment is greater than the preset length, the method further includes: and if the length of the continuous logic value in the data section is smaller than the preset length, performing writing according to a preset writing rule of the DRAM.
The writing rule configured in advance is that the writing rule of the DRAM memory is defined in advance before data is written into the DRAM memory, and the writing rule includes rules related to the written data, such as a writing sequence and a writing length, wherein the writing sequence includes rows/columns of memory cells written first. If the DRAM memory includes a plurality of BANKs, each of which includes a plurality of memory cells, the location of the memory cell is represented by the BANK (BANK), the row and the column of the BANK.
And if the length of the continuous logic value of the data segment is smaller than the preset length, if so, the data segment to be written is written into the DRAM according to the write-in rule defined before and the maximum write-in length of each time. And writing data according to a common data writing rule for the data segment without longer continuous logic values.
In one embodiment, if the data length < burst length < preset length, no write operation is performed to the DRAM memory at all; if the burst length is less than the data length and less than the preset length, directly writing into the DRAM, if the burst length is less than the preset length and less than the data length, searching the lookup table, and if the value of the address range in the lookup table is the same as the data section, not writing into the DRAM.
In one embodiment, after querying whether the address range to be written corresponding to the continuous logical value is in the lookup table according to the correspondence between the data segment and the address segment, the method further includes: if not, the writing is executed according to the preset writing rule of the DRAM.
The writing rule is defined the same as the writing rule in the above embodiment, and is not described herein again. If the address consistent with the address range of the continuous logic value cannot be found in the lookup table, it indicates that no data consistent with the data of the continuous logic value of the data segment exists in the DRAM, and the data segment is written according to a common writing method.
In one embodiment, the preconfigured write rule includes a preset length, and the preset length is a maximum length of data written in each time of the DRAM storage; performing a write data segment according to a preconfigured write rule for a DRAM memory, comprising: determining a logic value to be written in the data segment at the time according to the preset length; and writing the logic value to be written into the DRAM according to the address of the logic value to be written.
Specifically, the length of the data segment is greater than the maximum length of a single write of the DRAM memory, i.e., the length of the data segment is greater than the maximum length of each write of data of the DRAM memory. And splitting the data segment according to the maximum length of the single writing, wherein the data segment is split into multiple times of writing, and the maximum value of the writing length of each time of the data segment is the maximum length of the single writing. And writing the split data segment and the address to be written of the split data segment into the DRAM.
In one embodiment, determining whether the length of the continuous logic value of the data segment is greater than a preset length includes: and judging whether the length of the continuous logic value of the data segment is greater than the preset length through a judging circuit.
Specifically, the judgment circuit is configured to judge whether a length of a continuous logic value in a data segment of the data to be written is greater than a preset length. The judgment circuit is connected with the DRAM controller and judges the continuous logic value of the data to be written received by the DRAM controller.
In one embodiment, the writing method of the DRAM memory further includes: acquiring a logic value stored in a DRAM memory and an address of the logic value; the logical values and the addresses of the logical values in the DRAM memory are written to a look-up table.
Specifically, before the lookup table is obtained, the logical value and the address of the logical value stored in the DRAM memory are written into the lookup table, and the logical value and the address of the logical value stored in the DRAM memory are read by the DRAM controller, and the DRAM controller writes the read data into the lookup table. After the DRAM controller acquires the logical value and the address of the logical value from the DRAM memory, it may also determine the acquired logical value and determine whether to write the acquired logical value and the address of the logical value into the lookup table.
In one embodiment, when the logical value and the address of the logical value are obtained from the DRAM, data obtaining may be performed according to a preset condition, if corresponding data is returned, the returned data is written into the lookup table, and if data is not returned, the writing operation of the lookup table is not required to be performed.
In one embodiment, after obtaining the logical value and the address of the logical value stored in the DRAM memory, the method further includes: judging whether the logic values stored in the DRAM memory contain continuous logic values larger than or equal to a preset length; if so, writing the logical value in the DRAM memory and the address of the logical value into a lookup table, comprising: and writing addresses of continuous logic values larger than a preset length and continuous logic values larger than the preset length in the logic values in the DRAM into a lookup table.
After the logical values stored in the DRAM memory are obtained, it is determined whether the length of consecutive logical values in the logical values stored in the DRAM memory is greater than a preset length, if not, it indicates that data of the DRAM memory does not need to be written into the lookup table, if so, consecutive logical values whose length is greater than or equal to the preset length in the consecutive logical values stored in the DRAM memory are written into the lookup table, and addresses of the consecutive logical values are also written into the lookup table, where the writing of the addresses may be writing an address corresponding to each logical value, or writing an address where a start logical value of the consecutive logical value is located and a position where an end logical value is located, or writing an address where the start logical value is located and a length of the consecutive logical value, and the like, and specifically, the address representing the consecutive logical value is not specifically limited herein.
In one embodiment, the data writing method for a DRAM memory further includes: initializing a DRAM memory so that data stored in the DRAM memory are all 1; initializing a lookup table, wherein the lookup table represents a logical value stored in the DRAM memory and an address of the logical value, wherein each logical value of the logical values stored in the DRAM memory is 1.
After the DRAM control system is powered on, the DRAM is initialized, wherein after the DRAM is initialized, the data stored in each storage unit is 1. Initializing a lookup table, wherein the lookup table records that the data stored in the DRAM memory are all 1, and the addresses comprise all the addresses of the DRAM memory.
In one embodiment, the data writing method of the DRAM memory further includes: and if the address range to be written corresponding to the continuous logic value is in the lookup table and the data segment further comprises other logic values except the other logic values before the continuous logic value, writing the other logic values into the DRAM according to the preset writing rule of the DRAM.
In the several embodiments provided in the present invention, it should be understood that the disclosed system and method may be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, a division of modules or units is merely a logical division, and an actual implementation may have another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be substantially or partially implemented in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only a part of the embodiments of the present invention, and not intended to limit the scope of the present invention, and all equivalent devices or equivalent processes performed by the present invention through the contents of the specification and the drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1.一种DRAM存储器的数据写入方法,其特征在于,包括:1. a data writing method of DRAM memory, is characterized in that, comprises: DRAM控制器接收待写入数据,所述待写入数据包括数据段和地址段,所述数据段与所述地址段对应;The DRAM controller receives data to be written, the data to be written includes a data segment and an address segment, and the data segment corresponds to the address segment; 判断所述数据段的连续逻辑值的长度是否大于或等于预设长度,所述连续逻辑值为连续的0或1;Determine whether the length of the continuous logical value of the data segment is greater than or equal to the preset length, and the continuous logical value is continuous 0 or 1; 若所述连续逻辑值的长度大于或等于所述预设长度,则获取查找表,所述查找表包括DRAM存储器中存储的连续逻辑值以及所述存储的连续逻辑值所在的地址范围;If the length of the continuous logic value is greater than or equal to the preset length, obtain a look-up table, where the look-up table includes the continuous logic value stored in the DRAM memory and the address range where the stored continuous logic value is located; 查询所述连续逻辑值对应的待写入地址范围是否在所述查找表中;query whether the address range to be written corresponding to the continuous logic value is in the lookup table; 若是,则向所述DRAM控制器发送所述连续逻辑值无需写入的指示信号。If so, send an indication signal to the DRAM controller that the continuous logic value does not need to be written. 2.根据权利要求1所述的方法,其特征在于,所述方法还包括:2. The method according to claim 1, wherein the method further comprises: 接收用户配置的所述预设长度。The preset length configured by the user is received. 3.根据权利要求1所述的方法,其特征在于,所述方法还包括:3. The method according to claim 1, wherein the method further comprises: 确定所述数据段的数据长度;determining the data length of the data segment; 若所述数据长度小于所述预设长度,则判断所述数据长度是否小于突发长度,其中所述突发长度小于所述预设长度,所述突发长度为设定所述DRAM存储器最小一次写入的数据长度;If the data length is less than the preset length, it is determined whether the data length is less than the burst length, wherein the burst length is less than the preset length, and the burst length is set to the minimum value of the DRAM memory The length of data written at one time; 若所述数据长度小于所述突发长度,则向所述DRAM控制器发送所述数据段无需写入的指示信号。If the data length is less than the burst length, an indication signal that the data segment does not need to be written is sent to the DRAM controller. 4.根据权利要求3所述的方法,其特征在于,所述方法还包括:4. The method according to claim 3, wherein the method further comprises: 若所述数据长度大于所述突发长度,则则按照所述DRAM存储器的预先配置的写入规则执行写入。If the data length is greater than the burst length, writing is performed according to a preconfigured writing rule of the DRAM memory. 5.根据权利要求1所述的方法,其特征在于,所述判断所述数据段的连续逻辑值的长度是否大于预设长度之后,所述方法还包括:5. The method according to claim 1, wherein after judging whether the length of the consecutive logical values of the data segment is greater than a preset length, the method further comprises: 若所述连续逻辑值的长度小于所述预设长度,则按照所述DRAM存储器的预先配置的写入规则执行写入。If the length of the continuous logic value is less than the preset length, writing is performed according to a preconfigured writing rule of the DRAM memory. 6.根据权利要求1所述的方法,其特征在于,所述根据所述数据段与所述地址段的对应关系,查询所述连续逻辑值对应的待写入地址范围是否在查找表中之后,所述方法还包括:6 . The method according to claim 1 , wherein, according to the corresponding relationship between the data segment and the address segment, query whether the address range to be written corresponding to the continuous logical value is after the lookup table. 7 . , the method also includes: 若否,则按照所述DRAM存储器的预先配置的写入规则执行写入。If not, the writing is performed according to the preconfigured writing rules of the DRAM memory. 7.根据权利要求1所述的方法,其特征在于,所述判断所述数据段的连续逻辑值的长度是否大于预设长度,包括:7. The method according to claim 1, wherein the judging whether the length of the consecutive logical values of the data segment is greater than a preset length comprises: 通过判断电路判断所述数据段的连续逻辑值的长度是否大于所述预设长度。Whether the length of the consecutive logical values of the data segment is greater than the preset length is judged by the judgment circuit. 8.根据权利要求1-7中任一项所述的方法,其特征在于,所述方法还包括:8. The method according to any one of claims 1-7, wherein the method further comprises: 获取所述DRAM存储器中存储的逻辑值和逻辑值的地址;Obtain the logical value and the address of the logical value stored in the DRAM memory; 将所述DRAM存储器中的逻辑值和逻辑值的地址写入所述查找表。The logical value and the address of the logical value in the DRAM memory are written to the look-up table. 9.根据权利要求8所述的方法,其特征在于,所述获取所述DRAM存储器中存储的逻辑值和逻辑值的地址之后,所述方法还包括:9. The method according to claim 8, wherein after acquiring the logical value and the address of the logical value stored in the DRAM memory, the method further comprises: 判断所述DRAM存储器中存储的逻辑值是否包含大于所述预设长度的连续逻辑值;Judging whether the logical value stored in the DRAM memory contains a continuous logical value greater than the preset length; 若包含,所述将所述DRAM存储器中的逻辑值和逻辑值的地址写入所述查找表,包括:将所述DRAM存储器中的逻辑值中大于或等于所述预设长度的连续逻辑值和大于或等于所述预设长度的连续逻辑值的地址写入所述查找表。If included, the writing the logical value and the address of the logical value in the DRAM memory into the look-up table includes: writing consecutive logical values greater than or equal to the preset length among the logical values in the DRAM memory and addresses of consecutive logical values greater than or equal to the preset length are written into the look-up table. 10.一种DRAM控制系统,其特征在于,所述控制系统包括:10. A DRAM control system, wherein the control system comprises: DRAM控制器电路、查找表、DRAM存储器和判断电路;DRAM controller circuit, look-up table, DRAM memory and judgment circuit; 所述DRAM控制器电路包括DRAM控制器和判断电路;The DRAM controller circuit includes a DRAM controller and a judgment circuit; 所述DRAM控制器,用于接收待写入数据,所述待写入数据包括数据段和地址段,所述数据段与所述地址段对应;the DRAM controller, configured to receive data to be written, the data to be written includes a data segment and an address segment, and the data segment corresponds to the address segment; 所述判断电路,用于判断所述数据段的连续逻辑值的长度是否大于预设长度,所述连续逻辑值为连续的0或1;The judgment circuit is used to judge whether the length of the continuous logical value of the data segment is greater than the preset length, and the continuous logical value is continuous 0 or 1; 所述DRAM控制器,用于若所述连续逻辑值的长度大于或等于所述预设长度,则向所述查找表发送查询请求;the DRAM controller, configured to send a query request to the lookup table if the length of the continuous logic value is greater than or equal to the preset length; 所述查询表,用于根据所述查询请求,查询所述连续逻辑值对应的待写入地址范围是否存在,其中,所述查询表中包含所述DRAM存储器中存储的连续逻辑值以及所述存储的连续逻辑值所在的地址范围;The look-up table is used to query whether the address range to be written corresponding to the continuous logical value exists according to the query request, wherein the look-up table includes the continuous logical value stored in the DRAM memory and the The address range where the consecutive logical values are stored; 所述DRAM控制器,用于若所述查找表中存在与所述连续逻辑值对应的待写入地址范围,则向所述DRAM控制器发送所述连续逻辑值无需写入的指示信号。The DRAM controller is configured to send an indication signal to the DRAM controller that the continuous logic value does not need to be written if there is an address range to be written corresponding to the continuous logic value in the look-up table.
CN202111361888.8A 2021-11-17 2021-11-17 A method for writing data into a DRAM memory and a DRAM control system Active CN114185486B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111361888.8A CN114185486B (en) 2021-11-17 2021-11-17 A method for writing data into a DRAM memory and a DRAM control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111361888.8A CN114185486B (en) 2021-11-17 2021-11-17 A method for writing data into a DRAM memory and a DRAM control system

Publications (2)

Publication Number Publication Date
CN114185486A true CN114185486A (en) 2022-03-15
CN114185486B CN114185486B (en) 2024-07-30

Family

ID=80540256

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111361888.8A Active CN114185486B (en) 2021-11-17 2021-11-17 A method for writing data into a DRAM memory and a DRAM control system

Country Status (1)

Country Link
CN (1) CN114185486B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0381418A2 (en) * 1989-01-31 1990-08-08 International Business Machines Corporation A small fast lookup table for use in a data processing system
US5274788A (en) * 1990-02-26 1993-12-28 Nec Corporation High speed memory access for a data processor
JPH0845275A (en) * 1994-07-29 1996-02-16 Toshiba Corp Control method for memory reading and writing, and memory device using the method
US20060190515A1 (en) * 2003-08-04 2006-08-24 Fujitsu Limited Lookup table and data acquisition method
US20070094474A1 (en) * 2005-10-26 2007-04-26 James Wilson Lookup table addressing system and method
US20100070733A1 (en) * 2008-09-18 2010-03-18 Seagate Technology Llc System and method of allocating memory locations
US20110125961A1 (en) * 2009-11-26 2011-05-26 Via Technologies, Inc. DRAM Control Method and the DRAM Controller Utilizing the Same
CN102650931A (en) * 2012-04-01 2012-08-29 华为技术有限公司 Method and system for writing data
JP2013114650A (en) * 2011-12-01 2013-06-10 Nec Corp Address space conversion device, address space conversion method of the same, and computer program
CN106897026A (en) * 2016-10-07 2017-06-27 威盛电子股份有限公司 Nonvolatile memory device and address classification method thereof
CN109542332A (en) * 2017-09-21 2019-03-29 东芝存储器株式会社 Storage system and the control method for controlling nonvolatile memory
CN112799601A (en) * 2021-02-24 2021-05-14 群联电子股份有限公司 Efficient data combining method, memory storage device and control circuit unit
CN113625943A (en) * 2020-05-08 2021-11-09 美光科技公司 Compressed logical to physical mapping for sequentially stored data

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0381418A2 (en) * 1989-01-31 1990-08-08 International Business Machines Corporation A small fast lookup table for use in a data processing system
US5274788A (en) * 1990-02-26 1993-12-28 Nec Corporation High speed memory access for a data processor
JPH0845275A (en) * 1994-07-29 1996-02-16 Toshiba Corp Control method for memory reading and writing, and memory device using the method
US20060190515A1 (en) * 2003-08-04 2006-08-24 Fujitsu Limited Lookup table and data acquisition method
US20070094474A1 (en) * 2005-10-26 2007-04-26 James Wilson Lookup table addressing system and method
US20100070733A1 (en) * 2008-09-18 2010-03-18 Seagate Technology Llc System and method of allocating memory locations
US20110125961A1 (en) * 2009-11-26 2011-05-26 Via Technologies, Inc. DRAM Control Method and the DRAM Controller Utilizing the Same
JP2013114650A (en) * 2011-12-01 2013-06-10 Nec Corp Address space conversion device, address space conversion method of the same, and computer program
CN102650931A (en) * 2012-04-01 2012-08-29 华为技术有限公司 Method and system for writing data
CN106897026A (en) * 2016-10-07 2017-06-27 威盛电子股份有限公司 Nonvolatile memory device and address classification method thereof
CN109542332A (en) * 2017-09-21 2019-03-29 东芝存储器株式会社 Storage system and the control method for controlling nonvolatile memory
CN113625943A (en) * 2020-05-08 2021-11-09 美光科技公司 Compressed logical to physical mapping for sequentially stored data
CN112799601A (en) * 2021-02-24 2021-05-14 群联电子股份有限公司 Efficient data combining method, memory storage device and control circuit unit

Also Published As

Publication number Publication date
CN114185486B (en) 2024-07-30

Similar Documents

Publication Publication Date Title
US20200218662A1 (en) Data caching device and control method therefor, data processing chip, and data processing system
CN112506823B (en) FPGA data reading and writing method, device, equipment and readable storage medium
CN109582598B (en) Preprocessing method for realizing efficient hash table searching based on external storage
US20220091780A1 (en) Memory access method and intelligent processing apparatus
CN117632043B (en) CXL memory module, control chip, data processing method, medium and system
CN113282249A (en) Data processing method, system, device and medium
CN101174198A (en) Data storage system and its data access method
US12260112B2 (en) Method and apparatus for accessing solid state disk
CN101599049B (en) Method for controlling discontinuous physical addresses of DMA access and DMA controller
CN114185486A (en) A data writing method of DRAM memory and DRAM control system
CN103176753B (en) Storing device and data managing method thereof
CN116705101B (en) Data processing method of multi-PSRAM (particle random Access memory) particle chip, electronic equipment and storage medium
CN112084121A (en) Hard disk pre-reading method and device, computer readable storage medium and electronic equipment
CN108519860B (en) SSD read hit processing method and device
US20230008332A1 (en) Parsing method, parsing apparatus, electronic device, and computer storage medium
CN108027765B (en) A memory access method and computer system
JP2004030090A (en) Cache memory management method
US11308010B2 (en) Memory system having memories of different capacities
CN107861846B (en) Device and method for testing memory access effective bandwidth
CN115964084A (en) Data interaction method, electronic equipment and storage medium
CN111581127A (en) Mapping relation processing method and device
JP2016095734A (en) Memory controller, storage device, information processing system and control method therefor
US11895043B2 (en) Method for accessing system memory and associated processing circuit within a network card
US7213142B2 (en) System and method to initialize registers with an EEPROM stored boot sequence
CN112416262B (en) Data pre-reading method in solid state disk, storage medium and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A Data Writing Method and DRAM Control System for DRAM Memory

Granted publication date: 20240730

Pledgee: Shenzhen hi tech investment small loan Co.,Ltd.

Pledgor: Shenzhen deminli Technology Co.,Ltd.

Registration number: Y2025980015288

PE01 Entry into force of the registration of the contract for pledge of patent right