Background technology
Along with the raising that electronic product performance requires, the advantage that DDR storer (DoubleDataRate, Double Data Rate synchronous DRAM) is fast with its transmission speed and memory capacity is large, is widely used in increasing product.In order to prevent loss of data, DDR storer often needs to refresh at regular intervals, and the time cycle of the data read-write operation of DDR storer can be caused like this not fix, and the time delay of also i.e. data transmission is random, uncertain.
Controlling in complicated application scenario, DDR storer uncertain data transmission delay can cause serious problem.Such as, when using DDR storer to carry out data buffer storage, in the address that a certain data can be arranged stored in the 3rd row the 2nd, but, when needs read these data, because the address wire of DDR storer only carries out addressing, after read request sends to row, the data of the 3rd row address returned through several work periods by DDR storer, and the data returned comprise the data of all column addresss in the 3rd row.Time delay due to the read operation of DDR storer is unfixed, and the method not reading address by time delay, to identify the column address of sense data, causes column address to identify, and just cannot parse the data expecting the column address read from sense data.
In prior art, solution to the problems described above mainly contains following several:
1, only addressing is carried out to row address, also by data sequence write, sequentially read, therefore evaded the problem that uncertain time delay brings, but the read-write of data is strictly restricted to and is sequentially written in, sequentially reads by this mode, merges inapplicable at the controlling filed of complexity;
2, column address is write in DDR storer with data, when reading data, data and column address are parsed simultaneously, but the DDR storage space outside this method meeting occupying volume, cause the waste of resource, and the data-interface of DDR is generally fixing, such as 64bit or 32bit, if some positions to be wherein used for column address mark, the control of peripheral data can be made to become comparatively complicated;
3, the address wire of each column data is separated to control separately, but this mode makes the control mode of DDR storer become comparatively complicated, and data-interface narrowed width can be caused, various application scenario cannot be applicable to flexibly, especially when adopting FPGA to realize the control of DDR storer.
Summary of the invention
The technical problem to be solved in the present invention is to provide a kind of data access arrangement, method and magnetic resonance equipment, the problem that the uncertain column address caused of operation delay that can solve storer cannot identify.
For solving the problems of the technologies described above, the invention provides a kind of data access arrangement, comprising:
Memory module, is suitable for storing data, in response to the read command of the reading target data received, according to the defeated trip data of the row address of described target data and feedback signal;
Cache module, in response to the described read command received, carries out buffer memory to the column address information of described target data, and in response to described feedback signal, is exported by the described column address information of buffer memory;
Parsing module, is suitable for the column address information receiving the row data and the output of described cache module, and described target data is parsed from the row data according to described column address information.
According to one embodiment of present invention, described row data comprise the total data in the row of the row address instruction of described target data.
According to one embodiment of present invention, described memory module is the uncertain memory module of data transmission delay.
According to one embodiment of present invention, described memory module is DDR storer.
According to one embodiment of present invention, described memory module is the uncertain memory module of data transmission delay.
According to one embodiment of present invention, described cache module comprises FIFO memory.
According to one embodiment of present invention, the data write in described memory module are the performance data of hyperchannel nuclear magnetic resonance spectrometer, and described row address is for distinguishing different passages, and described column address information is for distinguishing performance datas different in each passage.
According to one embodiment of present invention, described device also comprises: selector switch, and the performance data of each passage of described hyperchannel nuclear magnetic resonance spectrometer writes described memory module by described selector switch.
In order to solve the problem, present invention also offers a kind of magnetic resonance equipment, comprise the data access arrangement described in above-mentioned any one.
In order to solve the problem, present invention also offers a kind of data access method, comprising:
Store data, in the address of preset described data write memory module;
In response to the read command of the reading target data received, according to the defeated trip data of the row address of described target data and feedback signal;
In response to described read command, buffer memory is carried out to column address information;
In response to described feedback signal, the described column address information of buffer memory is exported;
According to described column address information, described target data is parsed from the row data.
According to one embodiment of present invention, described row data comprise the total data in the row of the row address instruction of described target data.
According to one embodiment of present invention, described memory module is the uncertain memory module of data transmission delay.
According to one embodiment of present invention, in response to described read command, FIFO memory is used to carry out buffer memory to described column address information; In response to described feedback signal, the column address information of buffer memory in described FIFO memory is exported.
According to one embodiment of present invention, the data in write memory module preset address are the performance data of hyperchannel nuclear magnetic resonance spectrometer, and described row address is for distinguishing different passages, and described column address information is for distinguishing performance datas different in each passage.
According to one embodiment of present invention, the performance data of each passage of described hyperchannel nuclear magnetic resonance spectrometer writes described memory module by selector switch.
Compared with prior art, the present invention has the following advantages:
The data access arrangement of the embodiment of the present invention is in the read operation of memory module, based on read command by column address information stores synchronized in cache module, and based on the effective feedback signal of expression row data, by the column address synchronism output of buffer memory, thus in the row data that the column address information of reading can be utilized memory module to be read the Data Analysis of respective column address is out.Adopt the solution of the present invention, the problem that in the read operation that memory module (such as can comprise DDR storer) fixedly do not cause due to time delay, column address cannot identify can be solved, and the solution of the present invention is without the need to taking the internal resource of memory module, also without the need to the External control logic of complexity, realize simple, take resource few, cost is lower, can flexible Application in the application scenarios of various complexity.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent, below in conjunction with accompanying drawing, the specific embodiment of the present invention is elaborated.
Set forth a lot of detail in the following description so that fully understand the present invention, but the present invention can also adopt other to be different from alternate manner described here to implement, therefore the present invention is not by the restriction of following public specific embodiment.
First embodiment
With reference to figure 1, comprise data transmission network 11, cache module 12 according to the data access arrangement of the first embodiment.Wherein, data transmission network 11 comprises memory module, and the time delay of the read operation of this memory module is not fixed, such as, be DDR memory module or read operation time delay other memory modules unfixed.In addition, data transmission network 11 can also comprise with memory module with the use of various suitable peripheral circuit, such as reading and writing circuit.
Furthermore, memory module can store multiple data by the mode of write operation.Such as, by write data, writing address and the effective Signal transmissions of write to memory module, to make memory module, write data can be write corresponding address.Wherein, the width of write data can be consistent with the column data interface width of memory module, and, the column data interface width of memory module, all for storing data, does not take other additional datas of interface width yet.
When carrying out read operation, data transmission network 11 at least receives the row address of read command and target data.Such as, what read command can transfer to memory module reads enable port, and what row address can transfer to memory module reads address port.
This read command transfers to cache module 12 simultaneously.In addition, cache module 12 also receives column address information.In response to this read command, cache module 12 pairs of column address informations carry out buffer memory.Such as, what this read command can transfer to cache module 12 writes enable port, and what column address information can transfer to cache module 12 writes FPDP, makes column address information be written into cache module 12.Particularly, above-mentioned column address information is the mark characterizing column address, also can be column address itself.
It should be noted that, transfer to the read command of data transmission network 11 and cache module 12, row address and column address information and belong to same read operation.In other words, when carrying out a read operation, read command and corresponding row address transfer to data transmission network 11, and same read command and corresponding column address information transfer to cache module 12.
In response to this read command, memory module, after suitable delay (such as several work periods), reads corresponding row data according to row address and exports, and also exports in addition and represents the effective feedback signal of row data.Such as, row data can export via the data reading port of memory module, and feedback signal can export via the feedback signal port of memory module.Typically, the row data that memory module exports contain the total data in the row of row address instruction.
The feedback signal transmission that data transmission network 11 exports is to cache module 12, and what such as can transfer to cache module 12 reads enable port.In response to the feedback signal received, the column address information of buffer memory exports by cache module 12.Further, cache module 12 adopts the mode of first in first out to be exported by the column address information of buffer memory, and namely the column address information of first buffer memory first exports.
Parsing module 13 receives the row data of data transmission network 11 and the column address information of cache module 12 output, and target data is parsed from row data according to column address information.
In brief, cache module 12 carries out buffer memory based on read command to column address information, is exported by the column address information of buffer memory in the mode of first in first out based on feedback signal, for the parsing of the row data that parsing module 13 pairs of memory modules export.Adopt in such a way, no matter the read operation time delay of memory module is how many work periods, and when the defeated trip data of memory module, cache module 12 can the synchronism output column address information corresponding with current row data.Use the column address information that cache module 12 exports, parsing module 13 can be expert in data and be parsed corresponding column data, the data stored in the row address namely limited in read operation, column address.
Cache module 12 can adopt various suitable circuit, element realizes, and as a preferred example, cache module 12 can adopt FIFO memory to realize.Or as the interchangeable example of one, cache module 12 can adopt random access storage device (RAM) to realize, the read-write mode of first in first out only need be configured to by the peripheral circuit of RAM.
Cache module 12 can utilize existing resource in FPGA to realize, such as, in FPGA existing FIFO memory, RAM etc.; Or cache module 12 also can utilize special hardware circuit or hardware chip to realize.
Second embodiment
With reference to figure 2, comprise memory module 21, FIFO memory 22 and selector switch 23 according to the data access arrangement of the second embodiment.This data access arrangement may be used for hyperchannel nuclear magnetic resonance spectrometer, such as, for the hyperchannel nuclear magnetic resonance spectrometer in magnetic resonance equipment, to realize the read-write operation of the performance data of multiple passage.Wherein, memory module 21 can be DDR storer, or data transmission delay other memory modules unfixed.
The performance data of each passage of hyperchannel nuclear magnetic resonance spectrometer is write in address corresponding to described memory module by described selector switch.
Furthermore, in write operation, row address can be used to distinguish different passages, use column address to distinguish performance datas different in each passage.Such as, passage can corresponding a line, and the performance data of same passage is stored in same a line.So, channel number can directly or indirectly as row address, and the Function Identification in passage can directly or indirectly as column address.
In read operation, the read command and the row address that read target data transfer to memory module 21.Such as, what read command can transfer to memory module 21 reads enable port, and what row address transferred to memory module 21 reads address port.
In read operation, read command transfers to FIFO memory 22 simultaneously, and what such as transfer to FIFO memory 22 writes enable port, carries out buffer memory to make FIFO memory 22 pairs of column addresss (this column address corresponds to Function Identification).
In response to the read command received, memory module 21, after suitable time delay (such as several work periods), reads corresponding row data according to row address.Such as, row data are the full line performance data 20 of this row address instruction.While defeated trip data, memory module 21 exports in the lump and represents the effective feedback signal of row data, and the feedback signal port of such as memory module 21 is logic high by logic low saltus step.
The feedback signal transmission that memory module 21 exports is to FIFO memory 22, and what such as transfer to FIFO memory 22 reads enable port.In response to the feedback signal received, the mode of previously stored column address information according to first in first out exports by FIFO memory 22.
According to the column address information that FIFO memory 22 exports, parsing module (not shown in Fig. 2) can expecting that the performance data 201 read parses in full line performance data 20.Performance data 201 is exactly the row address of read operation, the performance data of column address instruction.
3rd embodiment
With reference to figure 3, the data access method according to the 3rd embodiment comprises the steps:
Step S31, stores data, in the address of preset described data write memory module;
Step S32, in response to the read command of the reading target data received, according to the defeated trip data of the row address of described target data and feedback signal;
Step S33, in response to described read command, carries out buffer memory to column address information;
Step S34, in response to described feedback signal, exports the described column address information of buffer memory;
Step S35, parses described target data according to described column address information from described row data.
As a nonrestrictive example, various suitable cache module can be used to carry out buffer memory and output in the mode of first in first out to column address, such as FIFO memory, but be not limited to this.
About more details of the method, refer to the associated description of aforementioned first embodiment and the second embodiment, repeat no more here.
To sum up, the read command of memory module is write indicator signal as cache module by technical scheme of the present invention, synchronization caching is carried out with the column address corresponding to read command, the feedback signal of memory module is read indicator signal as cache module, with the column address adopting the mode of first in first out to read buffer memory, thus overcome the unfixed problem of memory module time delay, the method at least tool has the following advantages:
(1) only need allocating cache module on the basis of memory module, be easy to realize, take resource few, sequential easily controls, and cost is lower;
(2) solve the problem that complicated application requirements time delay is fixing, make the application scenario of the unfixed memory module of read operation time delay more extensive;
(3) compared with column address together being write in prior art the mode of memory module, do not need the extra internal resource taking memory module, improve the utilization factor of memory module;
(4), compared with the mode of the column address conductor of control store module independent with prior art, without the need to changing data-interface width, make the application of memory module more flexible;
(5) implementation method is versatile and flexible, and this cache module both can realize in fpga chip, also can realize with special hardware chip;
(6) column address and row data synchronism output, can solve the unfixing problem caused of delay length;
(7) in read operation, the time delay of column address in cache module is identical with data transmission delay in a storage module, controls precisely.
Although the present invention describes with reference to current specific embodiment, but those of ordinary skill in the art will be appreciated that, above embodiment is only used to the present invention is described, change or the replacement of various equivalence also can be made when not departing from spirit of the present invention, therefore, as long as all will drop in the scope of claims of the application the change of above-described embodiment, modification in spirit of the present invention.