CN106445836A - Asynchronous data reading and writing method, system and device - Google Patents

Asynchronous data reading and writing method, system and device Download PDF

Info

Publication number
CN106445836A
CN106445836A CN201610836380.1A CN201610836380A CN106445836A CN 106445836 A CN106445836 A CN 106445836A CN 201610836380 A CN201610836380 A CN 201610836380A CN 106445836 A CN106445836 A CN 106445836A
Authority
CN
China
Prior art keywords
data
write
reading
memory space
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.)
Granted
Application number
CN201610836380.1A
Other languages
Chinese (zh)
Other versions
CN106445836B (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.)
South China University of Technology SCUT
Original Assignee
South China University of Technology SCUT
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 South China University of Technology SCUT filed Critical South China University of Technology SCUT
Priority to CN201610836380.1A priority Critical patent/CN106445836B/en
Publication of CN106445836A publication Critical patent/CN106445836A/en
Application granted granted Critical
Publication of CN106445836B publication Critical patent/CN106445836B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/06Addressing a physical block of locations, e.g. base addressing, module addressing, memory dedication
    • G06F12/0615Address space extension
    • G06F12/063Address space extension for I/O modules, e.g. memory mapped I/O
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/06Addressing a physical block of locations, e.g. base addressing, module addressing, memory dedication
    • G06F12/0646Configuration or reconfiguration

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Communication Control (AREA)

Abstract

The invention relates to an asynchronous data reading and writing method, system and device. The method comprises the steps that when a data writing operation is triggered, a current space allowance of a storage space is calculated, the space allowance is compared with the to-be-written data frame length, and if the space allowance is larger than or equal to the to-be-written data frame length, data frames in a data channel are written into the storage space; when a data reading operation is triggered, the current residual data volume of the storage space is calculated, and the residual data volume is compared with the to-be-read data frame length; if the residual data volume is larger than or equal to the to-be-read data frame length, frame data is read from the storage space; if the residual data volume is smaller than the to-be-read data frame length and the data frames are not written into the storage space currently, residual data in the storage space is used for filling till the to-be-read data frame length is reached and then the data is read out.

Description

Asynchronous data reading/writing method, system and device
Technical field
The present invention relates to digital signal processing technique field, more particularly to a kind of asynchronous data reading/writing method, system and Device.
Background technology
At present, with electronic information technology, wireless communication technology, semiconductor integrated circuit technology, bio-medical technology Fast development, the numerous areas such as electronics, biology, medical treatment mutually merge, promote each other, the application demand to larger scale data acquisition Grow with each passing day.Similar biological signal collecting etc. needs signal chains to keep the field of high accuracy, high transmission speed to flourish, simultaneously Market is growing to the demand of low complex degree, low-power consumption, the signaling system of low cost, thus gives the information of subsequent communications circuit Throughput rate proposes the requirement of harshness, and its Project Realization difficulty also accordingly increases.
Move aspect in information, be divided into synchronous and asynchronous two kinds of reading and writing data modes, synchronous read-write mode requires front stage Circuit possesses strict temporal constraint, concrete application very flexible, and asynchronous read and write mode motility is good, thus also becomes this skill The trend of art field development, the core of asynchronous communications is buffer technology.Data buffering is as adjustment signal transmission rate, guarantor Hold the key link of signal integrity, small-sized in such as CHINA RFTCOM Co Ltd construction, satellite communication, civilian low expense communication, digital home There is huge application potential in medical treatment detection communication equipment research field.
A kind of conventional asynchronous data reading/writing method is to carry out data buffering based on RAM (SRAM, SDRAM, DDR etc.), one Planting and realizing maneuver is based on single port RAM read-write sequence separately, can not read, can not write when reading data during write data, this Sample results in " cutout " to data flow, and data read-write efficiency is relatively low.
Content of the invention
Based on this it is necessary to for the relatively low problem of existing asynchronous data read-write mode data read-write efficiency, provide one Plant asynchronous data reading/writing method, system and device.
A kind of asynchronous data reading/writing method, comprises the following steps:
When trigger data write operation, spatial margin current for memory space is carried out with data frame length to be written Relatively, if described spatial margin is more than or equal to described data frame length to be written, by the Frame write in data channel Described memory space;
When trigger data read operation, calculate the current remaining data amount of memory space, by described remaining data amount with The data frame length being read out is compared;
If described remaining data amount is more than or equal to the described data frame length being read out, read one from described memory space Frame data;
If described remaining data amount is less than the data frame length being read out, and currently do not write data to described memory space Frame, the remaining data in described memory space is filled to the described data frame length being read out reading.
A kind of asynchronous data read-write system, including:
Writing module, for when trigger data write operation, by spatial margin current for memory space with to be written Data frame length is compared, if described spatial margin is more than or equal to described data frame length to be written, to described storage Space writes frame data;
Comparison module, for when trigger data read operation, calculating the current remaining data amount of memory space, will be described Remaining data amount is compared with the data frame length being read out;
First reading module, if being more than or equal to the described data frame length being read out for described remaining data amount, from Described memory space reads frame data;
Second reading module, if be less than, for described remaining data amount, the data frame length being read out, and currently not to institute State memory space write Frame, the remaining data in described memory space is filled to the described data frame length being read out Read.
A kind of asynchronous data read-write equipment, including:
Channel data gauge counting unit, write enable judgement unit, read enable judgement unit, memory space, write number According to amount statistic unit, surplus statistic unit and reading data volume statistic unit;
Described channel data gauge counting unit connects data channel, write data volume statistic unit and memory space, described Memory space connects reading and enables judgement unit and read data volume statistic unit, and described reading enables judgement unit connection rear class Reading circuit, described reading data volume statistic unit connects surplus statistic unit and rear class reading circuit, said write data volume Statistic unit connects write and enables judgement unit and surplus statistic unit, and it is single that said write enables judgement unit connection surplus statistics Unit and prime write circuit, described surplus statistic unit connects reading and enables judgement unit.
Above-mentioned asynchronous data reading/writing method, system and device, are more than or equal in the current spatial margin of memory space and treat During the data frame length of write, the Frame in data channel is write described memory space;In the current residue of memory space When data volume is more than or equal to the described data frame length being read out, read frame data from described memory space, described surplus Remaining data volume is less than the data frame length being read out, and during currently not to described memory space write Frame, by described storage Remaining data in space fills to the described data frame length being read out reading, can carry out data in synchronization simultaneously Write and reading, improve the efficiency of asynchronous data read-write.
Brief description
Fig. 1 is the asynchronous data reading/writing method flow chart of an embodiment;
Fig. 2 (a) is the programming flowchart of the asynchronous data writing mode of an embodiment;
Fig. 2 (b) is the programming flowchart of the asynchronous data playback mode of an embodiment;
Fig. 3 is the structural representation of the asynchronous data read-write system of an embodiment;
Fig. 4 is the structural representation of the asynchronous data read-write equipment of an embodiment;
Fig. 5 is that the signal of the asynchronous data read-write equipment of an embodiment flows to schematic diagram;
Fig. 6 is the application scenarios schematic diagram of the asynchronous data read-write equipment of an embodiment.
Specific embodiment
Below in conjunction with the accompanying drawings technical scheme is illustrated.
As shown in figure 1, the present invention provides a kind of asynchronous data reading/writing method, it may include following steps:
S1, when trigger data write operation, by spatial margin current for memory space and data frame length to be written It is compared, if described spatial margin is more than or equal to described data frame length to be written, by the Frame in data channel Write described memory space;
Wherein, data write operation can be triggered by prime write circuit.For example, when receive prime write circuit transmission During data write request, i.e. trigger data write operation.Before execution data write operation, can first calculate memory space current Spatial margin Y.Described spatial margin Y represents the current residual capacity of memory space.If described spatial margin Y is more than or equal to Described data frame length to be written, shows that described memory space currently can accommodate Frame to be written, at this point it is possible to will Frame in data channel writes described memory space.In one embodiment, the free time can be sent to prime write circuit Mark, this idle marker is used for notifying prime write circuit, currently can write Frame.
If conversely, described spatial margin Y is less than described data frame length to be written, showing that described memory space is current Spatial margin Y is not enough to accommodate Frame to be written, at this point it is possible to enter waiting state, treats the space of described memory space When surplus Y is more than or equal to described data frame length to be written, the Frame being just written into writes this memory space.One In individual embodiment, busy mark can be sent to prime write circuit, this is busy to indicate for notifying prime write circuit, Frame currently cannot be write.
S2, when trigger data read operation, calculates the current remaining data amount of memory space, by described remaining data amount It is compared with the data frame length being read out;
Wherein, data read-out operation can be triggered by rear class reading circuit.For example, when receive rear class reading circuit transmission When reading mark, i.e. trigger data read operation.The operation of this data read-out can be same with the data write operation in step S1 When triggering or trigger respectively in different time.Before execution data read-out operation, can first calculate memory space current Remaining data amount X.Described remaining data amount X represents the data volume being currently stored in described memory space.
S3, if described remaining data amount is more than or equal to the described data frame length being read out, reads from described memory space Go out frame data;
If described remaining data amount is more than or equal to the described data frame length R being read out, show that described memory space is worked as Before have enough data be available for read, at this point it is possible to the Frame in described memory space reads out to rear class reading circuit.
S4, if described remaining data amount is less than the data frame length being read out, and does not currently write to described memory space Frame, the remaining data in described memory space is filled to the described data frame length being read out reading.
If described remaining data amount be less than the described data frame length R being read out, show described memory space currently without Enough data are available for reading, at this point it is possible to determine whether currently whether write Frame to described memory space.If It is after write operation execution then can be waited to complete, then the remaining data in described memory space is filled to continue to described Read after the data frame length R going out.If current do not write Frame to described memory space, can be directly by described memory space In remaining data fill to the described data frame length R being read out reading.Because the read-write of data is all with Frame as list Position, therefore, if the remaining data amount in memory space is not enough, need to be filled with to remaining data, make the length of remaining data Read again after the data frame length being read out described in reaching.Above-mentioned filling can be to carry out data filling by way of zero padding, Can also be to carry out data filling by other means.
When write operation starts, write data volume can be counted, in write operation implementation procedure, if receiving To readout clock rising edge, count to reading data volume;Wherein, described readout clock rising edge is used for trigger data reading Operation;If the count value of write data volume reaches described data frame length to be written, to the current count value reading data volume Stored;Memory space can be calculated according to the described count value reading data volume and described data frame length to be written to work as Front spatial margin.Specifically, described spatial margin can be calculated according to equation below when not carrying out write operation:
Yn=C- [(nch×LA-RW)+Yn-1]+n_Rclk;
In formula, n_Rclk is not carry out readout clock rising edge number of times, n during write operationchFor the quantity of data channel, LA For the write data frame length of each passage, YnFor the spatial margin before n-th write, Yn-1Before (n-1)th write Spatial margin, C is memory space total capacity, RWFor reading the count value of data volume during write operation.W=nch×LAFor treating The data frame length of write.N be positive integer, when each write operation starts, will currently add up YnDeposit as Yn-1, and by RW With n_Rclk zero setting.
Shown in programming flowchart such as Fig. 2 (a) and Fig. 2 (b) of described asynchronous data read-write mode.
Compared with prior art, the asynchronous data reading/writing method of the present invention has the advantages that space availability ratio is high, read-write side Method is flexibly, easy and simple to handle.The asynchronous data reading/writing method of the present invention does not arrange fixed value to the read-write frame length of data, can basis Need to adjust, read-write sequence can be configured according to the demand that real data is processed, easy and simple to handle.The asynchronous data of the present invention is read Write method substantially increases the utilization rate of memory space, in the case of limited storage space, can reach its state the fullest. The read-write operation discriminant approach efficiency high of the present invention, can obtain spatial margin further by calculating data surplus, thus sentence The storage state of disconnected memory space, to trigger read-write operation, reaches low idle, the application effect of high throughput efficiency.
As shown in figure 3, the present invention also provides a kind of asynchronous data read-write system, it may include:
Writing module 11, for when trigger data write operation, by spatial margin current for memory space with to be written Data frame length be compared, if described spatial margin be more than or equal to described data frame length to be written, data is led to Frame in road writes described memory space;
Wherein, data write operation can be triggered by prime write circuit.For example, when receive prime write circuit transmission During data write request, i.e. trigger data write operation.Before execution data write operation, can first calculate memory space current Spatial margin.Described spatial margin represents the current residual capacity of memory space.If described spatial margin is more than or equal to institute State data frame length to be written, show that described memory space currently can accommodate Frame to be written, at this point it is possible to by number Write described memory space according to the Frame in passage.In one embodiment, idle mark can be sent to prime write circuit Will, this idle marker is used for notifying prime write circuit, currently can write Frame.
If conversely, described spatial margin is less than described data frame length to be written, showing that described memory space is current Spatial margin is not enough to accommodate Frame to be written, at this point it is possible to enter waiting state, treats more than the space of described memory space When amount is more than or equal to described data frame length to be written, the Frame being just written into writes this memory space.At one In embodiment, busy mark can be sent to prime write circuit, this is busy to indicate for notifying prime write circuit, when Before cannot write Frame.
Comparison module 12, for when trigger data read operation, calculating the current remaining data amount of memory space, by institute State remaining data amount and be compared with the data frame length being read out;
Wherein, data read-out operation can be triggered by rear class reading circuit.For example, when receive rear class reading circuit transmission When reading mark, i.e. trigger data read operation.The operation of this data read-out is permissible with the data write operation in writing module 11 It is to trigger simultaneously or trigger respectively in different time.Before execution data read-out operation, can first calculate memory space Current remaining data amount.Described remaining data amount represents the data volume being currently stored in described memory space.
First reading module 13, if being more than or equal to the described data frame length being read out for described remaining data amount, Read frame data from described memory space;
If described remaining data amount is more than or equal to the described data frame length being read out, show that described memory space is current Enough data are had to be available for reading, at this point it is possible to the Frame in described memory space reads out to rear class reading circuit.
Second reading module 14, if being less than the described data frame length being read out for described remaining data amount, shows institute State memory space to be available for reading currently without enough data, at this point it is possible to determine whether currently whether deposit to described Storage space write Frame.If so, write operation execution then can be waited to complete after, then by the residue in described memory space Data fills to the described data frame length being read out reading.If current do not write Frame to described memory space, permissible Directly the remaining data in described memory space is filled to the described data frame length being read out reading.Reading due to data Write all in units of Frame, therefore, if the remaining data amount in memory space is not enough, remaining data need to be filled with, Make remaining data length reach described in read again after the data frame length that is read out.Above-mentioned filling can be the side by zero padding Formula carries out data filling or carries out data filling by other means.
When write operation starts, write data volume can be counted, in write operation implementation procedure, if receiving To readout clock rising edge, count to reading data volume;Wherein, described readout clock rising edge is used for trigger data reading Operation;If the count value of write data volume reaches described data frame length to be written, to the current count value reading data volume Stored;Memory space can be calculated according to the described count value reading data volume and described data frame length to be written to work as Front spatial margin.Specifically, when not carrying out write operation, described spatial margin can be calculated according to equation below:
Yn=C- [(nch×LA-RW)+Yn-1]+n_Rclk;
In formula, n_Rclk is readout clock rising edge number of times when not carrying out write operation, nchFor the quantity of data channel, LAFor the write data frame length of each passage, YnFor the spatial margin before n-th write, Yn-1Before (n-1)th write Spatial margin, C be memory space total capacity, RWFor reading the count value of data volume during write operation.N is positive integer, When each write operation starts, will currently add up YnDeposit as Yn-1, and by RWWith n_Rclk zero setting.
Compared with prior art, the asynchronous data read-write system of the present invention has the advantages that space availability ratio is high, read-write side Method is flexibly, easy and simple to handle.The asynchronous data reading/writing method of the present invention does not arrange fixed value to the read-write frame length of data, can basis Need to adjust, read-write sequence can be configured according to the demand that real data is processed, easy and simple to handle.The asynchronous data of the present invention is read Write method substantially increases the utilization rate of memory space, in the case of limited storage space, can reach its state the fullest. The read-write operation discriminant approach efficiency high of the present invention, can obtain spatial margin further by calculating data surplus, thus sentence The storage state of disconnected memory space, to trigger read-write operation, reaches low idle, the application effect of high throughput efficiency.
As shown in figure 4, the present invention also provides a kind of asynchronous data read-write equipment 100, it may include:
Channel data gauge counting unit 21, write enable judgement unit 22, read enable judgement unit 23, memory space 24th, write data volume statistic unit 25, surplus statistic unit 26 and reading data volume statistic unit 27;
Described channel data gauge counting unit 21 connects data channel, write data volume statistic unit 25 and memory space 24, described memory space 24 connects reading and enables judgement unit 23 and read data volume statistic unit 27, and described reading enable is sentenced Other unit 23 connects rear class reading circuit 400, and described reading data volume statistic unit 27 connects surplus statistic unit 26 and rear class Reading circuit 400, said write data volume statistic unit 25 connects write and enables judgement unit 22 and surplus statistic unit 26, institute State write and enable judgement unit 22 connection surplus statistic unit 26 and prime write circuit, described surplus statistic unit 26 connects to be read Go out to enable judgement unit 23.
Wherein, write enable judgement unit 22 can include comparator, and it is directly to write data volume and spatial margin Two-way input is compared, and exports idle marker according to comparative result.
Read and enable judgement unit 23 and can include comparator, when reading mark and arriving, this comparator can be to more than data Amount is compared with reading frame length R, is read according to comparative result output and enables signal.
Memory space 24 can be dual-port asynchronous FIFO (First In First Out, first in first out) queue.
Surplus statistic unit 26 can be made up of adder, multiplier and depositor, completes formula Yn=C- [(nch× LA-RW)+Yn-1]+n_Rclk computing.Result of calculation YnWrite can be directly output to and enable judgement unit 22, when write starts When by result of calculation YnValue write depositor for when calculating next time substitute into formula calculate, at the same time it can also complete formula Xn =C-YnComputing, directly by result of calculation XnExport reading and enable judgement unit 23.In formula, XnBefore reading for n-th Remaining data amount.
Read data volume statistic unit 27 and can include enumerator, it directly counts to reading data volume, and will count Number result feeds back to surplus statistic unit 26.
In one embodiment, the input of described channel data gauge counting unit 21 connects data channel, described passage The data output end of data volume counting unit 21 connects the data input pin of memory space 24, described channel data gauge counting unit 21 outfan that enables connects the input writing data volume statistic unit 25, the output of said write data volume statistic unit 25 End connects write respectively and enables the first input end of judgement unit 22 and the first input end of surplus statistic unit 26, said write The outfan enabling judgement unit 22 connects prime write circuit, and the outfan of described surplus statistic unit 26 connects said write Enable the second input of judgement unit 22 and read the data input pin enabling judgement unit 23, described reading enable differentiates single The outfan of unit 23 connects the enable input of described memory space 24, and the outfan of described memory space 24 connects reading data The data input pin of amount statistic unit 27, the outfan of described reading data volume statistic unit 27 connects surplus statistic unit 26 Second input and rear class reading circuit 400.
During work, when not carrying out write operation, surplus statistic unit 26 calculates the current spatial margin of memory space 24, Described channel data gauge counting unit 21 obtains write data frame length, when receiving the write request of prime write circuit, Relatively spatial margin and write data frame length, if described spatial margin is more than or equal to data frame length to be written, described Write enables judgement unit 22 output idle marker to prime write circuit, and prime write circuit passes through data channel by Frame Write described memory space 24, said write data volume statistic unit 25 calculates write data volume, enables judgement unit when reading During the reading mark that 23 receive rear class reading circuit 400, send to memory space 24 and read enable signal, memory space 24 will The data read-out of storage, to rear class reading circuit 400, reads data volume statistic unit 27 and counts to reading data volume, surplus Statistic unit 26 according to write data volume and reads data volume number space surplus and remaining data amount, and spatial margin is sent Enable judgement unit 22 to write, remaining data amount is sent and enables judgement unit 23 to reading.Described asynchronous data read-write dress The signal flow direction put is as shown in Figure 5.
As shown in fig. 6, in actual applications, above-mentioned asynchronous data read-write equipment 100 can with analog acquisition front end 200, Multi-channel high-speed ADC300 (Analog to Digital Converter, analog-digital converter) and rear class reading circuit 400 are joined Set uses, and constitutes the asynchronous data read-write system of complete set, in this system, analog acquisition front end 200, multi-channel high-speed ADC300, asynchronous data read-write equipment 100 and rear class reading circuit 400 can be sequentially connected.
Each technical characteristic of embodiment described above can arbitrarily be combined, for making description succinct, not to above-mentioned reality The all possible combination of each technical characteristic applied in example is all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, all it is considered to be the scope of this specification record.
Embodiment described above only have expressed the several embodiments of the present invention, and its description is more concrete and detailed, but simultaneously Can not therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art Say, without departing from the inventive concept of the premise, some deformation can also be made and improve, these broadly fall into the protection of the present invention Scope.Therefore, the protection domain of patent of the present invention should be defined by claims.

Claims (8)

1. a kind of asynchronous data reading/writing method is it is characterised in that comprise the following steps:
When trigger data write operation, spatial margin current for memory space is compared with data frame length to be written Relatively, if described spatial margin is more than or equal to described data frame length to be written, by the Frame write institute in data channel State memory space;
When trigger data read operation, calculate the current remaining data amount of memory space, by described remaining data amount with continue The data frame length going out is compared;
If described remaining data amount is more than or equal to the described data frame length being read out, read a frame number from described memory space According to;
If described remaining data amount is less than the data frame length being read out, and currently do not write Frame to described memory space, Remaining data in described memory space is filled to the described data frame length being read out reading.
2. asynchronous data reading/writing method according to claim 1 is it is characterised in that further comprising the steps of:
If current write data to described memory space, and after write operation execution completes, described remaining data amount Less than the data frame length being read out, the remaining data in described memory space is filled to the described data frame length being read out After read.
3. asynchronous data reading/writing method according to claim 1 is it is characterised in that further comprising the steps of:
When write operation starts, write data volume is counted;
In write operation implementation procedure, if receiving readout clock rising edge, count to reading data volume;Wherein, institute State readout clock rising edge for trigger data read operation;
If the count value of write data volume reaches described data frame length to be written, the current count value reading data volume is entered Row storage;
The current sky of memory space is calculated according to the described count value reading data volume and described data frame length to be written Between surplus.
4. asynchronous data reading/writing method according to claim 3 it is characterised in that according to described read data volume counting The step that value and described data frame length to be written calculate the current spatial margin of memory space includes:
When not carrying out write operation, described spatial margin is calculated according to equation below:
Yn=C- [(nch×LA-RW)+Yn-1]+n_Rclk;
In formula, n_Rclk is readout clock rising edge number of times when not carrying out write operation, nchFor the quantity of data channel, LAFor The write data frame length of each passage, YnFor the spatial margin before n-th write, Yn-1For the sky before (n-1)th write Between surplus, C be memory space total capacity, RWFor reading the count value of data volume during write operation, when each write operation During beginning, will currently add up YnDeposit as Yn-1, and by RWWith n_Rclk zero setting.
5. asynchronous data reading/writing method according to claim 1 is it is characterised in that to described storage by way of zero padding Remaining data in space is filled with.
6. a kind of asynchronous data read-write system is it is characterised in that include:
Writing module, for when trigger data write operation, by spatial margin current for memory space and data to be written Frame length is compared, if described spatial margin is more than or equal to described data frame length to be written, to described memory space Write frame data;
Comparison module, for when trigger data read operation, calculating the current remaining data amount of memory space, by described residue Data volume is compared with the data frame length being read out;
First reading module, if be more than or equal to the described data frame length being read out for described remaining data amount, from described Memory space reads frame data;
Second reading module, if being less than, for described remaining data amount, the data frame length being read out, and does not currently deposit to described Storage space write Frame, the remaining data in described memory space is filled to the described data frame length being read out reading Go out.
7. a kind of asynchronous data read-write equipment is it is characterised in that include:
Channel data gauge counting unit, write enable judgement unit, read enable judgement unit, memory space, write data volume Statistic unit, surplus statistic unit and reading data volume statistic unit;
Described channel data gauge counting unit connects data channel, write data volume statistic unit and memory space, described storage Space connects reading and enables judgement unit and read data volume statistic unit, and described reading enables judgement unit connection rear class and reads Circuit, described reading data volume statistic unit connects surplus statistic unit and rear class reading circuit, and said write data volume counts Unit connects write and enables judgement unit and surplus statistic unit, said write enable judgement unit connect surplus statistic unit and Prime write circuit, described surplus statistic unit connects reading and enables judgement unit.
8. asynchronous data read-write equipment according to claim 7 receives writing of prime write circuit it is characterised in that working as When entering to ask, surplus statistic unit calculates the current spatial margin of memory space, and described channel data gauge counting unit obtains and writes Enter data frame length, if described spatial margin is more than or equal to data frame length to be written, said write enables judgement unit To prime write circuit, Frame is write described memory space by data channel to output idle marker by prime write circuit, Said write data volume statistic unit calculates write data volume, enables, when reading, the reading that judgement unit receives rear class reading circuit When going out to indicate, if data surplus is less than the data frame length being read out and is carrying out write operation, do not make remaining operation, no Then, send to read to memory space and enable signal, the data read-out storing to rear class reading circuit, is read data by memory space Amount statistic unit counts to reading data volume, and surplus statistic unit according to write data volume and reads data volume number space Surplus and remaining data amount, and spatial margin is sent to write enable judgement unit, remaining data amount is sent to be made to reading Can judgement unit.
CN201610836380.1A 2016-09-20 2016-09-20 Asynchronous data reading/writing method, system and device Active CN106445836B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610836380.1A CN106445836B (en) 2016-09-20 2016-09-20 Asynchronous data reading/writing method, system and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610836380.1A CN106445836B (en) 2016-09-20 2016-09-20 Asynchronous data reading/writing method, system and device

Publications (2)

Publication Number Publication Date
CN106445836A true CN106445836A (en) 2017-02-22
CN106445836B CN106445836B (en) 2018-03-23

Family

ID=58165693

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610836380.1A Active CN106445836B (en) 2016-09-20 2016-09-20 Asynchronous data reading/writing method, system and device

Country Status (1)

Country Link
CN (1) CN106445836B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114866492A (en) * 2022-04-29 2022-08-05 北京润科通用技术有限公司 Signal processing method, system and related device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020084807A1 (en) * 2000-12-05 2002-07-04 Yuichiro Miyamoto Asynchronous FIFO circuit and method of reading and writing data through asynchronous FIFO circuit
CN1540523A (en) * 2003-10-30 2004-10-27 中兴通讯股份有限公司 Quick method for reading/writing buffer in single task
CN105183423A (en) * 2015-09-02 2015-12-23 青岛中星微电子有限公司 Cross-clock domain asynchronous data processing method and apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020084807A1 (en) * 2000-12-05 2002-07-04 Yuichiro Miyamoto Asynchronous FIFO circuit and method of reading and writing data through asynchronous FIFO circuit
CN1540523A (en) * 2003-10-30 2004-10-27 中兴通讯股份有限公司 Quick method for reading/writing buffer in single task
CN105183423A (en) * 2015-09-02 2015-12-23 青岛中星微电子有限公司 Cross-clock domain asynchronous data processing method and apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114866492A (en) * 2022-04-29 2022-08-05 北京润科通用技术有限公司 Signal processing method, system and related device
CN114866492B (en) * 2022-04-29 2024-06-04 北京润科通用技术有限公司 Signal processing method, system and related device

Also Published As

Publication number Publication date
CN106445836B (en) 2018-03-23

Similar Documents

Publication Publication Date Title
CN107133011B (en) Multichannel data storage method of oscillograph
CN111832240B (en) FIFO data transmission method and FIFO storage device
CN101252536A (en) Router multi-queue data pack buffer management and output queue scheduling system
CN102497575B (en) Multi-piece area array CCD (Charge Coupled Device) screening test system
CN105446699A (en) Data frame queue management method
CN108197699A (en) Debugging module for convolutional neural network hardware accelerator
JP2017532908A (en) Data caching method, apparatus and storage medium
CN103517085B (en) Method for implementing remote server management based on video decoding design
CN100517498C (en) First in first out memory without read delay
CN104579240A (en) FPGA-based configurable-coefficient filter and filtering method, and electronic equipment
CN109902000B (en) Variable speed multi-channel debugging and tracing system, method, equipment and storage medium
CN111581132B (en) Extensible multiport DDR3 controller based on FPGA
CN103592489A (en) Method for designing deep storage of digital oscilloscope
CN106445836B (en) Asynchronous data reading/writing method, system and device
CN103309981A (en) ADC (analog-to-digital converter) data organization system with high storage efficiency and ADC data organization method
CN101854259B (en) Method and system for counting data packets
CN103412847B (en) USB based on FPGA turns multichannel link interface circuit
CN110096456A (en) A kind of High rate and large capacity caching method and device
CN101110259A (en) First-in first-out memory
CN101833431A (en) Bidirectional high speed FIFO storage implemented on the basis of FPGA
US20130002315A1 (en) Asynchronous clock adapter
CN201467129U (en) Quasi-synchronous multiple connection device at medium and low speed
CN105183664B (en) A kind of variable-length radar pulse data cache method
CN206400528U (en) Asynchronous data read-write equipment and system
CN106445842B (en) A kind of data buffer and data cache method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant