Asynchronous alternating receiving and sending method, receiving and sending system and device for writing data stream
By setting the storage capacity threshold Y in the asynchronous data cache system and dynamically expanding the storage space, the problem of data readout transmission rate fluctuation in the asynchronous communication environment is solved, and efficient utilization of later-stage communication and data uninterruptible data are achieved.
Patent Information
- Application Number
- CN202010013238.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-01-07
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2040-01-07
AI Technical Summary
When the existing asynchronous data caching technology faces fluctuations in the data readout transmission rate in the asynchronous communication environment, it leads to idle state and waste of resources in the later-stage communication part, and it is difficult to ensure uninterrupted and efficient use of data.
By setting a smaller storage capacity threshold Y in the two storage spaces, data can be written and read alternately, and the storage space is dynamically expanded when the read rate is lower than the write rate, ensuring that the later communication part obtains sufficient cache space To resist rate fluctuations.
It avoids the long-term idle state and resource waste of the later-stage communication part, ensures uninterrupted and efficient use of data, and is particularly suitable for the connection between real-time acquisition and asynchronous communication.
Smart Images

Figure CN111124317B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of digital signal processing, and in particular to an asynchronous alternating receiving and sending method, a receiving and sending system and a device for writing data streams. Background Art
[0002] With the rapid development of electronic information technology, wireless communication technology, semiconductor integrated circuit technology, and biomedical technology, many fields such as electronics, biology, and medicine have merged and promoted each other, and the demand for wireless or real-time acquisition of various signals or large-scale data streams has increased day by day. This puts higher requirements on the data cache between the acquisition front end and the back-end communication end. The cache should not only serve as a data throughput unit, but more importantly, as a coordination mechanism between the front and back two levels of different rates, asynchronous synchronization, or different system circuits. In terms of the engineering implementation of this mechanism, it is also necessary to compromise between product performance, implementation complexity, and cost.
[0003] The existing data stream caching technology can be summarized into two modes: synchronous and asynchronous. The synchronous mode requires the front-stage and back-stage circuits of the buffer to have strict timing constraints, requires complex synchronization processing units, and has poor application flexibility, especially it is not compatible with the existing mainstream mobile networks, Ethernet, Wi-Fi, Bluetooth and other civilian mainstream wireless communication technologies based on asynchronous packetization mechanism. For example, Song Huilong. Design of infrared video signal test system based on FPGA [D]. Xidian University, 2017. A data cache unit, whose data writing and reading rates are fixed and unchanged, realizes data buffering in the process of data bit width conversion. Relatively speaking, the asynchronous mode has good flexibility, simple system structure, and good compatibility with mainstream civilian wireless communication systems. Therefore, the asynchronous mode has also become a development trend in this field. Asynchronous caching technology is becoming a powerful technical support in the fields of radio and television network construction, satellite communication, civilian low-cost communication, digital home, and mobile medical detection communication.
[0004] A commonly used asynchronous data caching method is to read and write data based on RAM (SRAM, SDRAM, DDR, etc.). However, the data writing and reading of the widely used RAM devices need to be carried out in time. Data cannot be read when it is written, and data cannot be written when it is read. Therefore, when carrying data stream buffering services, data "interruption" will be caused. Another asynchronous caching method is based on the "ping-pong" reading and writing technology of dual RAM, which alternately writes and reads data to two symmetrical storage spaces. When the first storage space is full, the second storage space is switched to write. If the data in the second storage space has not been fully sent, it is necessary to wait for it to be sent or discard part of the unsent data. In the process of waiting for it to be sent, the newly input data will be lost due to lack of space for storage. For example, a ping-pong cache system used for data buffering in the image data transmission process is described in Tu Yun. Design and Implementation of Data Interface of Multispectral Invoice Image Acquisition System [D]. Huazhong University of Science and Technology, 2017. This method is more suitable for dealing with the situation where the read speed is always greater than or equal to the write speed, and is not conducive to supporting the data reading and sending of mainstream civilian communications such as mobile networks, Ethernet, Wi-Fi, and Bluetooth. Because such communication technologies are all based on asynchronous packetization mechanisms and there are phenomena such as "network congestion", there will be relatively large fluctuations in the data read-out and transmission rates. In terms of design, it can only be guaranteed that the average read-out and transmission rate of the cache is greater than the write-in rate over a long period of time, but the read-out rate may be lower than the write-in rate in a certain period of time, and in severe cases, there may even be a temporary stop in reading. In order to deal with this problem, one solution of the existing ping-pong read-write technology is to make the storage space capacity as large as possible, which brings new problems. Since the storage capacity is increased, if the first storage space is not full of data, even if the second storage space has been read and sent, the data can only be read and sent again after the first storage space is full, which causes the "idle" of the subsequent communication line, reduces the system operation efficiency, and wastes unnecessary resource overheads of the system and communication link. Moreover, as the storage capacity increases, this problem becomes more obvious. Summary of the invention
[0005] The present invention provides an asynchronous alternating receiving and sending method, receiving and sending system and equipment for data stream writing. The present invention sets a relatively small storage capacity threshold value Y in two storage spaces (a first storage space (i.e., storage space A) and a second storage space (i.e., storage space B)), and sets the conditions for alternating reading and writing in storage space A (i.e., memory A) and storage space B (i.e., memory B) as follows: the amount of data stored in the space currently being written as data reaches the threshold value Y, and the data in the storage space currently being read out of data is all read out and sent. When the read data rate of the rear-stage communication part is greater than or equal to the write rate to the storage space, it can be ensured that the rear-stage communication will not be idle for a long time, avoiding the waste of resource overhead; when the read data rate of the rear-stage communication part is temporarily less than the write rate to the storage space, the written data reaches the capacity threshold of storage space A and the data in storage space B has not been read out, the storage space A is first dynamically expanded, breaking through the threshold Y limit, and the data continues to be written to the remaining part of storage space A until it is full. In this process, real-time monitoring of storage space B is enabled. As long as the data in storage space B has been read out and sent (the read data rate is restored to be greater than the write rate in this process), it is immediately switched to write storage space B, and the storage space A data is read out at the same time, thereby using sufficient cache space to resist the rate fluctuation of the rear-stage data read out and sent, and ensuring the continuity of the rear-stage communication part to obtain data, thereby improving the utilization efficiency. The present invention is particularly suitable for use as a connection between real-time acquisition and asynchronous communication.
[0006] The present invention is achieved by at least one of the following technical solutions.
[0007] An asynchronous alternate receiving and sending method for data stream writing comprises the following steps:
[0008] 1) creating a storage module, wherein the storage module includes a first storage space and a second storage space;
[0009] 2) First, data is written to the first storage space. When the specified data volume threshold Y is reached, data is written to the second storage space through the read-write switching control module. At the same time, the data written to the first storage space is read out and sent to the subsequent data sending circuit; when the data is sent, a sending completion flag signal DA is sent to the read-write switching control module;
[0010] 3) Before the read-write switching control module receives the sending completion flag signal DA, data is written into the second storage space. If the amount of data written into the second storage space has reached a specified threshold, a capacity expansion operation is performed; if the second storage space is full, new data is overwritten starting from the first address of the second storage space, and an overwrite flag signal F is sent to the read-write switching control module at the same time;
[0011] 4) If the read / write switching control module receives the sending completion flag signal DA, it determines whether the overwriting flag signal F of the second storage space is given and whether the amount of data written in the second storage space reaches a specified threshold, and then sends a sending completion flag signal DB to the read / write switching control module after all data are sent in the second storage space;
[0012] 5) Before the read-write switching control module receives the sending completion flag signal DB, the first storage space keeps writing data; if the amount of data written in the first storage space has reached the specified threshold, the expansion operation is performed; if the first storage space is full, the new data is overwritten from the first address of the first storage space, and an overwrite flag signal F is issued at the same time;
[0013] 6) If the read / write switching control module receives the sending completion flag signal DB, it performs read / write operations on the first storage space and the second storage space alternately according to the above steps 4) and 5), and then the first storage space and the second storage space perform alternate operations in a cyclic manner according to the above steps.
[0014] Further, the specified threshold value Y is less than the storage capacity of the first storage space and the specified threshold value Y is less than the storage capacity of the second storage space.
[0015] The first storage space and the second storage space are implemented by calling an IP core integrated inside a processor or a programmable logic device, or by calling an external storage device.
[0016] The data in the first storage space and the second storage space are written or read out and sent in units of integer multiples of the basic frame data length, and the written data is a continuous data stream, or a data stream in any non-continuous form.
[0017] The data read out and sent from the first storage space and the second storage space are read out and sent in integer multiples of the basic frame data length.
[0018] Furthermore, the expansion operation described in step 3) is to continue writing data to the remaining addresses of the second storage space; and the expansion operation described in step 5) is to continue writing data to the remaining addresses of the first storage space.
[0019] The judgment of step 4) is specifically as follows:
[0020] If the overwrite flag signal F is not given, it is determined whether the amount of data currently written to the second storage space is greater than the specified data amount threshold value Y; if it is greater, it is switched to write data to the first storage space, and data is sent from the first address of the second storage space until all the data in the second storage space is sent, and a sending completion flag signal DB is given; if it is less than, it is waited until the amount of data written to the second storage space reaches the specified data amount threshold value Y, and then it is switched to write data to the first storage space, and data is sent from the first address of the second storage space until all the data in the second storage space is sent, and a sending completion flag signal DB is sent to the read-write switching control module;
[0021] If the overwrite flag signal F has been given, then switch to writing data to the first storage space, and start sending data from the current write data address of the second storage space. After sending the data at the end address of the second storage space, go back and send the data at the first address of the second storage space until the data in the address before the current write address is sent, and send a sending completion flag signal DB to the read-write switching control module.
[0022] Furthermore, the post-stage data sending circuit may be some kind of communication device, such as Wi-Fi, wired Ethernet, Bluetooth, etc.; the read-write switching control module adopts FPGA (Field Programmable Gate Array) to control the first storage space and the second storage space.
[0023] A system applicable to the asynchronous alternating receiving and sending method of data stream writing, comprising: a read-write switching control module, a storage module, a data writing module and a data reading module;
[0024] The storage module includes a first storage space and a second storage space, and is used to store data in the first storage space and the second storage space. The module can be implemented by calling an IP core integrated inside a processor or a programmable logic device, or by calling an external storage device, and the external storage device includes but is not limited to SRAM, SDRAM or DDR;
[0025] The data writing module, the data reading module and the storage module are connected in sequence;
[0026] The read / write switching control module is connected to the data writing module and the data reading module, and is used to switch the read / write operation between the first storage space and the second storage space, that is, to determine whether the state of the storage space at the current moment is to write data or to read data;
[0027] A data writing module, used for controlling data writing into a storage space, where the storage space is the storage space currently performing a data writing operation designated by the read-write switching control module;
[0028] The data reading module is used to control the reading of data from the storage space, and the storage space is the storage space currently performing the data reading operation designated by the read-write state switching control module.
[0029] Furthermore, the read-write switching control module further includes a first decision module and a second decision module;
[0030] A first judgment module is used to compare the amount of data written in the storage space currently performing the data writing operation with a specified threshold, and judge whether the amount of data written reaches the specified threshold according to the comparison result;
[0031] The second judgment module is used to compare the amount of data read out from the storage space currently performing the data read operation with the amount of data stored in the storage space, and judge whether the data in the storage space has been completely read out according to the comparison result.
[0032] An asynchronous alternating transceiver device for data stream writing includes a first buffer, a counter, a decision device, a state selector, a first first-in-first-out memory, a second first-in-first-out memory, a second buffer, a first AND gate, a first OR gate, a first NOT gate, and a second NOT gate;
[0033] The first buffer input terminal is connected to the external data output terminal, and the first buffer output terminal is connected to the data input terminals of the first FIFO memory and the second FIFO memory; the first buffer read clock terminal is connected to the counter count input terminal;
[0034] The count result output terminal of the counter is connected to an input terminal of the decision device, the other input terminal of the decision device is connected to the input of the external threshold value Y, and the decision result output terminal of the decision device is connected to the input terminal of the state selector as the decision result input of the state selector;
[0035] The write enable output terminal of the state selector is connected to the write enable input terminal of the first FIFO memory, and at the same time, the write enable output terminal of the state selector is connected to the write enable input terminal of the second FIFO memory through a first NOT gate;
[0036] The read enable output terminal of the state selector is connected to the read enable input terminal of the first FIFO memory, and at the same time, the read enable output terminal of the state selector is connected to the read enable input terminal of the second FIFO memory through a second NOT gate;
[0037] The empty signal output ends of the first FIFO memory and the second FIFO memory are respectively connected to the two input ends of the first OR gate, the output end of the first OR gate and the decision result output end of the decision device are respectively connected to the two input ends of the first AND gate, and the output end of the first AND gate is connected to the clear end of the counter.
[0038] Further, the data output terminals of the first FIFO memory and the second FIFO memory are both connected to the data input terminal of the second buffer, and the data output terminal of the second buffer is connected to the external data sending circuit;
[0039] The empty signal output terminals of the first FIFO memory and the second FIFO memory are connected to the input terminals of the state selector, serving as the first empty flag input and the second empty flag input of the state selector respectively.
[0040] The state selector controls the read and write states of the first first-in-first-out memory and the second first-in-first-out memory to switch alternately; the state selector realizes respectively: writing the data of the first buffer into the first first-in-first-out memory, writing the data of the first buffer into the second first-in-first-out memory, reading the data of the first first-in-first-out memory into the second buffer, and reading the data of the second first-in-first-out memory into the second buffer by outputting a first write enable signal, a second write enable signal, a first read enable signal, and a second read enable signal.
[0041] The first buffer caches the external input data stream. When the first write enable signal is valid, the data of the first buffer is written into the first FIFO memory; when the second write enable signal is valid, the data of the first buffer is written into the second FIFO memory.
[0042] The counter calculates the amount of data written into the first FIFO memory and the amount of data written into the second FIFO memory. When the first write enable signal is valid, the counter counts the amount of data written into the first FIFO memory, and the counting result is sent to the decision device; when the second write enable signal is valid, the counter counts the amount of data written into the second FIFO memory, and the counting result is sent to the decision device.
[0043] The decision device decides whether the count result Q of the counter reaches a specified threshold value, and sends the decision result to the state selector. When the count result Q of the counter reaches or exceeds the specified threshold value Y, the decision result of the decision device is established, otherwise the decision is not established.
[0044] The second buffer caches the data stream output to the outside. When the first read enable signal is valid, the second buffer receives the data read out of the first FIFO memory; when the second read enable signal is valid, the second buffer receives the data read out of the second FIFO memory.
[0045] After all the data in the first FIFO memory are read out, a first empty flag signal is sent to the state selector; after all the data in the FIFO memory B are read out, a second empty flag signal is sent to the state selector;
[0046] If the state selector receives the judgment result of the judgement device and the empty flag, i.e., the first empty flag or the second empty flag signal, at the same time, the state selector switches the read and write enable states of the first FIFO memory and the second FIFO memory, i.e., the FIFO memory originally enabled for writing is switched to read enable, and the FIFO memory originally enabled for reading is switched to write enable. At the same time, the counting result of the counter is cleared.
[0047] Before the read-write state is switched, if the first write enable signal is valid: the data in the first buffer is always written into the first FIFO memory. If the counter counts that the amount of data written into the first FIFO memory has reached the specified threshold value Y, the expansion operation is performed: the data in the first buffer is written into the remaining space of the first FIFO memory, that is, the spare space. If the first FIFO memory is full, the data first written into the first FIFO memory overflows and is overwritten by the data written later; if the second write enable signal is valid: the data in the first buffer is always written into the second FIFO memory. If the counter counts that the amount of data written into the second FIFO memory has reached the specified threshold value Y, the expansion operation is performed: the data in the first buffer is written into the remaining space of the second FIFO memory, that is, the spare space. If the second FIFO memory is full, the data first written into the second FIFO memory overflows and is overwritten by the data written later.
[0048] Furthermore, a threshold value Y of storage capacity is set in the first first-in-first-out memory and the second first-in-first-out memory, and the condition for alternating reading and writing in the first first-in-first-out memory and the second first-in-first-out memory is set as follows: the amount of data stored in the first-in-first-out memory currently being written as data reaches the threshold value Y, and the data in the first-in-first-out memory currently being read as data is all read out and sent.
[0049] When the read data rate of the subsequent communication part is greater than or equal to the write rate to the first-in-first-out memory, it can be ensured that the subsequent communication will not be idle for a long time, thereby avoiding waste of resource overhead; when the read data rate of the subsequent communication part is temporarily lower than the write rate to the first-in-first-out memory, the written data reaches the capacity threshold of the first first-in-first-out memory and the data in the second first-in-first-out memory has not been read out, the first first-in-first-out memory is first dynamically expanded to break through the threshold Y limit, and the data continues to be written to the remaining part of the first first-in-first-out memory until it is full. In this process, real-time monitoring of the second first-in-first-out memory is started. As long as the data in the second first-in-first-out memory has been read out and sent (in this process, the read data rate is restored to be greater than the write rate), it is immediately switched to write to the second first-in-first-out memory, and the data on the first first-in-first-out memory is read out at the same time, thereby using sufficient cache space to resist the rate fluctuation of the subsequent data read and sent, and ensuring the uninterrupted acquisition of data by the subsequent communication part, thereby improving utilization efficiency.
[0050] Further, the threshold value Y is input by an external circuit, the designated threshold value Y is less than the storage capacity of the first storage space, and the designated threshold value Y is less than the storage capacity of the second storage space.
[0051] Furthermore, the first write enable signal of the first first-in-first-out memory is used as the second write enable signal of the second first-in-first-out memory after passing through the first NOT gate, and at the same time, one of the first write enable signal and the second write enable signal is valid and the other is invalid; the first read enable signal of the first first-in-first-out memory is used as the second read enable signal of the second first-in-first-out memory after passing through the second NOT gate, and at the same time, one of the first read enable signal and the second read enable signal is valid and the other is invalid.
[0052] Furthermore, the state selector is a data selector, or a gate and a logic circuit.
[0053] Further, the gates and logic circuits include a third NOT gate, a fourth NOT gate, a fifth NOT gate, an XOR gate, a second AND gate, a third AND gate, a fourth AND gate, a second OR gate, a third OR gate, and an SR latch;
[0054] The output signal terminal of the decision device is connected to the first input pin of the XOR gate, the second empty flag signal is connected to the second input pin of the XOR gate, and the XOR gate outputs a signal XOR;
[0055] The first empty flag signal is connected to the first input pin of the second AND gate after passing through the fourth NOT gate, the second empty flag signal is connected to the second input pin of the second AND gate after passing through the fifth NOT gate, and the second AND gate outputs a signal AND1;
[0056] The XOR gate output signal XOR is connected to the first input pin of the second OR gate, the second AND gate output signal AND1 is connected to the second input pin of the second OR gate, and the second OR gate outputs a signal OR1;
[0057] The second OR gate output signal OR1 is connected to the input pin S of the SR latch. D The output signal of the judgement device is connected to the first input pin of the third AND gate, the first empty flag signal is connected to the second input pin of the third AND gate after passing through the fourth NOT gate, and the third AND gate outputs a signal AND2;
[0058] The output signal of the decision device is connected to the first input pin of the fourth AND gate after passing through the third NOT gate, the second empty flag signal is connected to the second input pin of the fourth AND gate after passing through the fifth NOT gate, and the fourth AND gate outputs a signal AND3;
[0059] The third AND gate output signal AND2 is connected to the first input pin of the third OR gate, the fourth AND gate output signal AND3 is connected to the second input pin of the third OR gate, and the third OR gate output signal OR2;
[0060] The third OR gate output signal OR2 is connected to the input pin R of the SR latch. D ;
[0061] The SR latch output pin Q is connected to the write enable terminal of the first FIFO memory, and the SR latch output signal Q′ is connected to the read enable terminal of the first FIFO memory.
[0062] Compared with the prior art, the advantages of the present invention are: when the read data rate of the subsequent communication part is greater than or equal to the write rate to the storage space, it can ensure that the subsequent communication will not be idle for a long time, avoiding the waste of resource overhead; when the read data rate of the subsequent communication part is temporarily lower than the write rate to the storage space, it provides sufficient cache space to resist the rate fluctuation of the subsequent data read and sent, and ensures the uninterrupted acquisition of data by the subsequent communication part, thereby improving the utilization efficiency. This design is particularly suitable for the connection between real-time acquisition and asynchronous communication. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] Figure 1 The overall flow chart of the asynchronous alternating sending method written for the data stream of this embodiment;
[0064] Figure 2 A flowchart of the storage module read / write state switching of the asynchronous alternating sending method for data stream writing of this embodiment;
[0065] Figure 3 Asynchronous alternating transmission system diagram written for the data stream of this embodiment;
[0066] Figure 4The overall flow chart of the asynchronous alternating receiving and transmitting device written for a data stream of this embodiment;
[0067] Figure 5 A diagram showing the implementation of the state selector using logic gates and latches in the asynchronous alternating receiving and transmitting device for writing data streams in this embodiment. DETAILED DESCRIPTION
[0068] The technical solution of the present invention is described below in conjunction with the accompanying drawings.
[0069] like Figure 1 As shown, a method for asynchronous alternating receiving and sending of data stream writing comprises the following steps:
[0070] S1. When the system starts working or performs a reset operation, a first storage space, storage space A, and a second storage space, storage space B, are first created. This step can be implemented by calling an IP core integrated inside a processor or a programmable logic device, or by calling an external storage device.
[0071] S2, start writing data to the first storage space until the amount of written data reaches the specified data amount threshold Y, and switch to step S3. It is worth noting that the specified threshold Y is less than the storage capacity of the first storage space and the specified threshold Y is less than the storage capacity of the second storage space.
[0072] The data writing operation may be triggered by the previous writing circuit. For example, when a data writing request sent by the previous writing circuit is received, the data writing operation is triggered.
[0073] S3, start writing data to the second storage space, and start sending data to the first storage space at the same time. After all the data in the first storage space are sent, a sending completion mark signal DA is sent to the read-write switching control module.
[0074] S4. Before the read-write switching control module receives the sending completion mark signal DA, the data is always written to the second storage space. If the amount of data written to the second storage space has reached the specified threshold value Y, the expansion operation is performed to write data to the remaining addresses of the second storage space; if the second storage space is full, the data is overwritten starting from the first address of the second storage space, and an overwrite mark signal F is issued at the same time.
[0075] S5, if the read-write switching control module receives the sending completion signal DA, it means that the data written in the previous round in the first storage space has been sent. At this time, the second storage space where data is being written can be tested, firstly to see whether it has given an overwrite signal F.
[0076] S6. If the overwrite flag signal F has been given, it means that the second storage space is full at least once and the new data is overwritten from the first address. At this time, the second storage space must be full, which means that the amount of data stored in the second storage space must exceed the specified threshold. Therefore, the read-write state switching operation can be directly performed: the first storage space starts to write new data from the first address, and the second storage space starts to read data and send it.
[0077] Since the data in the second storage space has been overwritten, it is necessary to read out data from the current written data address and send it. After sending the data of the last address, it goes back and sends data from the first address until all the data is sent and a sending completion signal DB is given. This ensures that the original arrangement order of the data remains unchanged.
[0078] When switching between read and write states, the overwrite flag signal must be cleared.
[0079] S7. If the overwrite mark signal F has not been given, it means that the second storage space has not been full. At this time, two situations need to be discussed: the first situation is that the data written in the second storage space is greater than or equal to the specified threshold Y, and the second situation is that the amount of data written in the second storage space is less than the specified threshold Y.
[0080] If the amount of data written in the second storage space is greater than or equal to the specified threshold value Y, it means that the amount of data written in the second storage space has reached the preset requirement, and since the overwrite flag signal is not given, it means that the data written to the second storage space is arranged in sequence from the first address to the current address. Therefore, the switching operation of the read-write state can be directly performed: the first storage space starts to write new data from the first address, and the second storage space starts to send data from the first address until all the data in the second storage space is sent, and the sending completion flag signal DB is given.
[0081] If the amount of data written in the second storage space is less than the specified threshold value Y, it means that the amount of data written in the second storage space does not meet the preset requirement. Therefore, continue to write data to the second storage space until the amount of data in the second storage space reaches the specified threshold value Y, and then perform the read-write state switching operation, the specific operation is: the first storage space starts to write new data from the first address, and the second storage space starts to send data from the first address until all the data in the second storage space is sent, and a sending completion flag signal DB is given.
[0082] S8, before receiving the sending completion signal DB, the data is written to the first storage space. If the amount of data written to the first storage space has reached the specified threshold value Y, the expansion operation is performed to write data to the remaining addresses of the first storage space; if the first storage space is full, the data is overwritten from the first address of the first storage space, and an overwriting flag signal F is given. This state continues until all the data in the second storage space is sent and a sending completion flag signal DB is sent to the read-write switching control module.
[0083] S9, when the read-write switching control module receives the sending completion flag signal DB, the operation performed is as follows:
[0084] S4 to step S8.
[0085] It is not difficult to see that at this time, the read and write states of the first storage space and the second storage space are switched. Thereafter, the first storage space and the second storage space will alternately perform the above-mentioned read and write operations.
[0086] The data in the first storage space and the second storage space are written or read out and sent in units of integer multiples of the basic frame data length, and the written data is a continuous data stream, or a data stream in any non-continuous form.
[0087] Regarding the switching of the read / write status of the first storage space and the second storage space, the specific switching flow chart is as follows: Figure 2 shown.
[0088] The transmission completion signal, overwrite flag signal and other signals are sent to the read-write switching control module, and are also controlled by the read-write switching control module. The read-write switching control module determines the read-write status of the two storage spaces A and B according to whether these flag information is detected at the current moment. The conditions for switching the read-write status are: the amount of data stored in the space currently being written as data reaches the threshold value T (or it is full and overwritten with new data from the beginning, at which time the overwrite flag signal F is given), and the data in the storage space currently being used as the read data is all read out and sent.
[0089] like Figure 3 As shown, the present invention also provides an asynchronous alternating sending system for data stream writing, comprising: a read-write switching control module, a data writing module, a data reading module and a storage module.
[0090] The storage module includes a first storage space and a second storage space, and is used to store data in the first storage space and the second storage space. The module can be implemented by calling an IP core integrated inside a processor or a programmable logic device, or by calling an external storage device, and the external storage device includes but is not limited to SRAM, SDRAM or DDR.
[0091] The read-write switching control module is connected to the data writing module and the data reading module, and is used to determine which block of the first storage space and the second storage space is currently in the data writing state and which block is in the data sending state. The specific method is as follows:
[0092] First, when the write operation is performed for the first time after the system is reset, the first storage space (i.e., storage space A) is selected to write data, and at the same time, the second storage space (i.e., storage space B) neither writes data nor sends data. When the amount of data written to the first storage space reaches the specified threshold Y, the read-write state is switched: data is written to the second storage space, and at the same time, the data stored in the first storage space is read and sent.
[0093] When all the data in the first storage space is read out and sent, a sending completion flag signal DA is sent to the read-write switching control module. Before receiving this signal, that is, before all the data in the first storage space is sent, the second storage space always performs the data writing operation. If the amount of written data reaches the specified threshold value Y, the expansion operation is performed to write data to the remaining addresses of the second storage space; if it is full, it goes back and writes new data from the first address of the second storage space, and gives an overwrite flag signal F at the same time.
[0094] When receiving the transmission completion signal DA, it can be divided into the following three situations:
[0095] Case 1: Overwrite flag signal F has been given. If the overwrite flag signal F has been given, it means that the second storage space has been filled at least once and new data has been overwritten from the beginning. It can be seen that the amount of data in the second storage space must exceed the specified threshold value Y and meet the state switching condition. Therefore, the overwrite flag signal F is cleared and the read-write state switching operation is directly performed: write data to the first storage space, and start sending data in the second storage space at the same time. Since the data in the second storage space is overwritten, in order to ensure the correctness of the data sequence, data must be sent from the current write address. After sending the data of the last address, go back and send from the first address until the previous address of the current write address is sent. All data is sent, and a sending completion signal DB is sent to the read-write switching control module.
[0096] Case 2: The overwrite flag signal F is not given, but the amount of data written in the second storage space is greater than or equal to the specified threshold value Y. The overwrite flag signal F is not given, which means that the second storage space is not full, but the amount of data written in the second storage space is greater than or equal to the specified threshold value Y, which meets the state switching condition, and the data is arranged in sequence from the first address to the current address, so the read-write state switching operation is directly executed: write data to the first storage space, and send data from the first address of the second storage space at the same time. When all the data in the second storage space has been sent, a sending completion signal DB is sent to the read-write switching control module.
[0097] Case 3: The overwrite flag signal F is not given, and the amount of data written in the second storage space is less than the specified threshold value Y. In this case, since the amount of data written in the second storage space is less than the specified threshold value Y, the state switching condition has not been met. Therefore, data continues to be written to the second storage space until the amount of data written reaches the specified threshold value Y, and the read-write state switching operation is performed: data is written to the first storage space, and data is sent from the first address of the second storage space. When all the data in the second storage space is sent, a sending completion signal DB is sent to the read-write switching control module.
[0098] Before receiving the signal DB indicating the completion of sending, that is, before all the data in the second storage space is sent, the first storage space continues to perform data writing operations. If the amount of data written reaches the specified threshold Y, the expansion operation is performed to write data to the remaining addresses of the first storage space; if it is full, the new data is written back starting from the first address of the first storage space, and an overwrite mark signal F is given at the same time.
[0099] When the sending completion flag signal DB is received, the operation of the read-write switching control module is consistent with the above three cases, the only difference is that the read-write states of the two spaces A and B are interchanged.
[0100] Thereafter, the first storage space and the second storage space cyclically and alternately perform switching of read and write operations in the above manner.
[0101] The data writing module is used to control the data to be written into the storage space specified by the read-write switching control module when the data writing operation is triggered. The data writing operation can be triggered by the previous writing circuit. For example, when a data writing request sent by the previous writing circuit is received, the data writing operation is triggered according to the instruction of the read-write state switching module.
[0102] The data sending module is used to read and send the data in the storage space specified by the read-write state conversion control module when the data sending operation is triggered.
[0103] like Figure 4As shown, an asynchronous alternating receiving and transmitting device for data stream writing includes a first buffer (buffer A), a counter, a judge, a state selector, a first first-in-first-out memory (first-in-first-out memory A), a second first-in-first-out memory (first-in-first-out memory B), a second buffer (buffer B) and a first AND gate 1D, a first OR gate 1C, a first NOT gate 1A and a second NOT gate 1B.
[0104] The first buffer input terminal is connected to the external data output terminal, and the first buffer output terminal is connected to the data input terminals of the first FIFO memory and the second FIFO memory; the first buffer read clock terminal is connected to the counter count input terminal; a storage capacity threshold Y is set in the first FIFO memory and the second FIFO memory, and the condition for alternating reading and writing in the first FIFO memory and the second FIFO memory is set as follows: the amount of data stored in the FIFO memory currently being written as data reaches the threshold Y, and the data in the FIFO memory currently being read out is all read out and sent.
[0105] The count result output terminal of the counter is connected to an input terminal of the decision device, the other input terminal of the decision device is connected to the input of the external threshold value Y, and the decision result output terminal of the decision device is connected to the input terminal of the state selector as the decision result input of the state selector;
[0106] The write enable A output terminal of the state selector is connected to the write enable input terminal of the first FIFO memory, and at the same time, the write enable output terminal of the state selector is connected to the write enable input terminal of the second FIFO memory through a first NOT gate 1A;
[0107] The read enable A output terminal of the state selector is connected to the read enable input terminal of the first FIFO memory, and at the same time, the write enable output terminal of the state selector is connected to the read enable input terminal of the second FIFO memory through a second NOT gate 1B;
[0108] The data output terminals of the first FIFO memory and the second FIFO memory are both connected to the data input terminal of the second buffer, and the data output terminal of the second buffer is connected to an external data sending circuit;
[0109] The empty signal output terminals of the first FIFO memory and the second FIFO memory are connected to the input terminal of the state selector, and serve as the first empty flag (empty flag A) input and the second empty flag (empty flag B) input of the state selector respectively;
[0110] The empty signal output terminals of the first FIFO memory and the second FIFO memory are respectively connected to the two input terminals of the first OR gate 1C, the output terminal of the first OR gate 1C and the decision result output terminal of the decision device are respectively connected to the two input terminals of the first AND gate 1D, and the output terminal of the first AND gate 1D is connected to the reset terminal of the counter;
[0111] The state selector controls the read and write states of the first first-in-first-out memory and the second first-in-first-out memory to switch alternately; the state selector outputs a first write enable signal (write enable A signal), a second write enable signal (write enable B signal), a first read enable signal (read enable A signal), and a second read enable signal (read enable B signal) to respectively implement: writing the data of the first buffer into the first first-in-first-out memory, writing the data of the first buffer into the second first-in-first-out memory, reading the data of the first first-in-first-out memory into the second buffer, and reading the data of the second first-in-first-out memory into the second buffer.
[0112] The first buffer caches the external input data stream. When the first write enable signal is valid, the data of the first buffer is written into the first FIFO memory; when the second write enable signal is valid, the data of the first buffer is written into the second FIFO memory.
[0113] The counter calculates the amount of data written into the first FIFO memory and the amount of data written into the second FIFO memory. When the first write enable signal is valid, the counter counts the amount of data written into the first FIFO memory, and the counting result is sent to the decision device; when the second write enable signal is valid, the counter counts the amount of data written into the second FIFO memory, and the counting result is sent to the decision device.
[0114] When the device starts working, the count result of the counter is 0, the first FIFO memory and the second FIFO memory are empty, therefore, the judgment result of the judge is not established, and the first empty flag (empty flag A) and the second empty flag (empty flag B) signals are valid. The state selector write-enables the first FIFO memory and read-enables the second FIFO memory.
[0115] The first buffer caches the external input data stream, and the first FIFO memory starts writing the data in the first buffer after receiving the write enable signal of the state selector.
[0116] The counter counts the amount of data written into the first FIFO memory, and sends the counting result to the decision device.
[0117] The decision device decides whether the count result Q of the counter reaches a specified threshold value, and sends the decision result to the state selector. When the count result Q of the counter reaches or exceeds the specified threshold value Y, the decision result of the decision device is established, otherwise the decision is not established.
[0118] The second FIFO memory starts to read data into the second buffer after receiving the read enable signal of the state selector. If all the data in the second FIFO memory are read out, the second FIFO memory sends a second empty flag to the state selector.
[0119] Before all the data in the second FIFO memory is read out, the data in the first buffer is written into the first FIFO memory. If the counter counts that the amount of data written into the first FIFO memory has reached a specified threshold value Y, a capacity expansion operation is performed: the data in the first buffer is written into the remaining space of the first FIFO memory, i.e., the spare space. If the first FIFO memory is full, the data first written into the first FIFO memory overflows and is overwritten by the data written later.
[0120] If the state selector receives the judgment result of the judge and the empty flag (first empty flag or second empty flag) signal at the same time, the state selector switches the read and write enable states of the first FIFO memory and the second FIFO memory, that is, the FIFO memory that was originally write-enabled is switched to read-enabled, and the FIFO memory that was originally read-enabled is switched to write-enabled. At the same time, the counting result of the counter is cleared.
[0121] The first FIFO memory starts to read data into the second buffer after receiving the read enable signal of the state selector. If all the data in the first FIFO memory are read out, the first FIFO memory sends a first empty flag to the state selector.
[0122] The second FIFO memory starts writing the data of the first buffer after receiving the write enable signal of the state selector.
[0123] The counter counts the amount of data written into the second FIFO memory, and the counting result is sent to the decision device.
[0124] The decision device decides whether the count result Q of the counter reaches a specified threshold value, and sends the decision result to the state selector. When the count result Q of the counter reaches or exceeds the specified threshold value Y, the decision result of the decision device is established, otherwise the decision is not established.
[0125] Before all the data in the first FIFO memory is read out, the data in the first buffer is always written into the second FIFO memory. If the counter counts that the amount of data written into the second FIFO memory has reached a specified threshold value Y, the expansion operation is performed: the data in the first buffer is written into the remaining space of the second FIFO memory, i.e., the spare space. If the second FIFO memory is full, the data first written into the second FIFO memory overflows and is overwritten by the data written later.
[0126] If the state selector receives the judgment result of the judge and the empty flag (first empty flag or second empty flag) signal at the same time, the state selector switches the read and write enable states of the first first-in-first-out memory and the second first-in-first-out memory, and thereafter the read and write states of the first first-in-first-out memory and the second first-in-first-out memory are switched alternately.
[0127] The state selector can be implemented by a data selector, or by a gate and a logic circuit. Figure 5 As shown, the gate and logic circuit include a third NOT gate A, a fourth NOT gate B, a fifth NOT gate C, an XOR gate D, a second AND gate E, a third AND gate F, a fourth AND gate G, a second OR gate H, a third OR gate I and an SR latch;
[0128] The output signal terminal of the decision device is connected to the first input pin 1 of the XOR gate D, the second empty flag signal is connected to the second input pin 2 of the XOR gate D, and the XOR gate D outputs a signal XOR;
[0129] The first empty flag signal is connected to the first input pin 1 of the second AND gate E after passing through the fourth NOT gate B, the second empty flag signal is connected to the second input pin 2 of the second AND gate E after passing through the fifth NOT gate C, and the second AND gate E outputs a signal AND1;
[0130] The XOR gate output signal XOR is connected to the first input pin 1 of the second OR gate H, the second AND gate E output signal AND1 is connected to the second input pin 2 of the second OR gate H, and the second OR gate H outputs a signal OR1;
[0131] The second OR gate H output signal OR1 is connected to the input pin S of the SR latch. D The output signal of the judgement device is connected to the first input pin 1 of the third AND gate F, the first empty flag signal is connected to the second input pin 2 of the third AND gate F after passing through the fourth NOT gate B, and the third AND gate F outputs a signal AND2;
[0132] The output signal of the decision device is connected to the first input pin 1 of the fourth AND gate G after passing through the third NOT gate A, the second empty flag signal is connected to the second input pin 2 of the fourth AND gate G after passing through the fifth NOT gate C, and the fourth AND gate G outputs a signal AND3;
[0133] The output signal AND2 of the third AND gate F is connected to the input pin 1 of the third OR gate I, the output signal AND3 of the fourth AND gate G is connected to the second input pin 2 of the third OR gate I, and the third OR gate I outputs a signal OR2;
[0134] The output signal OR2 of the third OR gate I is connected to the input pin R of the SR latch. D ;
[0135] The SR latch output pin Q is connected to the write enable terminal of the first FIFO memory, and the SR latch output signal Q′ is connected to the read enable terminal of the first FIFO memory.
[0136] When the device starts working, the count result of the counter is 0, the first FIFO memory and the second FIFO memory are empty, therefore, the judgment result of the judge is not established, and the first empty flag and the second empty flag signals are valid. The state selector writes to enable the first FIFO memory and reads to enable the second FIFO memory.
[0137] If the amount of data written into the first FIFO memory reaches a specified threshold, the decision result of the decider is established. Since the second FIFO memory is empty, the empty signal B is valid. At this time, the output result of the SR latch is: write enable A is invalid, read enable A is valid, and write enable B is valid and read enable B is invalid.
[0138] If the amount of data written to the second FIFO memory reaches the specified threshold, the decision result of the decision device is established, otherwise the decision result is not established, and all the data of the first FIFO memory are read out, and the empty signal A is valid, otherwise the empty signal A is invalid. At the same time, if the decision result of the decision device is established and the empty signal A is valid, the output result of the SR latch is switched to: write enable A is valid, read enable A is invalid, and write enable B is invalid, and read enable B is valid. Otherwise, the output result of the SR latch remains unchanged.
[0139] Similarly, when the SR latch output result switches to: write enable A is valid, read enable A is invalid, write enable B is invalid, and read enable B is valid, if at the same time, if the decision result is established and the empty signal B is valid, the SR latch result switches to: write enable A is invalid, read enable A is valid, and write enable B is valid and read enable B is invalid. Otherwise, the SR latch output result remains unchanged.
[0140] The state selector controls the read and write states of the first FIFO memory and the second FIFO memory to switch alternately.
[0141] The above embodiments are preferred implementation modes of the present invention, but the implementation modes of the present invention are not limited to the above embodiments. Any other changes, modifications, substitutions, combinations, and simplifications that do not deviate from the spirit and principles of the present invention should be equivalent replacement methods and are included in the protection scope of the present invention.
Claims
1. A method for asynchronous alternating receiving and sending of data stream writing, characterized in that: The following steps are involved: 1) Creating a storage module, wherein the storage module includes a first storage space and a second storage space; 2) First, write data to the first storage space. When the specified data volume threshold Y is reached, write data to the second storage space through the read-write switching control module. At the same time, read the data written in the first storage space and send it to the subsequent data sending circuit. When the data is sent, send a sending completion flag signal DA to the read-write switching control module. 3) Before receiving the sending completion flag signal DA, data is written into the second storage space. If the amount of data written into the second storage space has reached the specified threshold, the expansion operation is performed; if the second storage space is full, new data is overwritten starting from the first address of the second storage space, and an overwrite flag signal F is sent to the read-write switching control module at the same time; 4) If the read / write switching control module receives the sending completion flag signal DA, it determines whether the overwriting flag signal F of the second storage space is given and whether the amount of data written in the second storage space reaches a specified threshold, and then sends a sending completion flag signal DB to the read / write switching control module after all data is sent in the second storage space; 5) Before the read-write switching control module receives the sending completion flag signal DB, the first storage space keeps writing data; If the amount of data written in the first storage space has reached a specified threshold, the expansion operation is performed; if the first storage space is full, new data is overwritten starting from the first address of the first storage space, and an overwrite flag signal F is issued at the same time; 6) If the read / write switching control module receives the transmission completion flag signal DB, it performs read / write operations on the first storage space and the second storage space alternately according to the above steps 4) and 5), and then the first storage space and the second storage space perform alternate operations in a cyclic manner according to the above steps.
2. The asynchronous alternate receiving and sending method for data stream writing according to claim 1, characterized in that: The specified threshold value Y is less than the storage capacity of the first storage space and the specified threshold value Y is less than the storage capacity of the second storage space; The first storage space and the second storage space are implemented by calling an IP core integrated inside a processor or a programmable logic device, or by calling an external storage device; The data in the first storage space and the second storage space are written or read out and sent in units of integer multiples of the basic frame data length, and the written data is a continuous data stream, or a data stream in any non-continuous form; The data read out and sent from the first storage space and the second storage space are read out and sent in integer multiples of the basic frame data length.
3. The asynchronous alternate receiving and sending method for data stream writing according to claim 1, characterized in that: The expansion operation described in step 3) is to continue writing data to the remaining addresses of the second storage space; the expansion operation described in step 5) is to continue writing data to the remaining addresses of the first storage space; The specific judgment of step 4) is: If the overwrite flag signal F is not given, it is determined whether the amount of data currently written to the second storage space is greater than the specified data amount threshold value Y; if it is greater, it is switched to write data to the first storage space, and data is sent from the first address of the second storage space until all the data in the second storage space is sent, and a sending completion flag signal DB is given; if it is less than, it is waited until the amount of data written to the second storage space reaches the specified data amount threshold value Y, and then it is switched to write data to the first storage space, and data is sent from the first address of the second storage space until all the data in the second storage space is sent, and a sending completion flag signal DB is sent to the read-write switching control module; If the overwrite flag signal F has been given, then switch to writing data to the first storage space, and start sending data from the current write data address of the second storage space. After sending the data at the end address of the second storage space, go back and send the data at the first address of the second storage space until the data in the address before the current write address is sent, and send a sending completion flag signal DB to the read-write switching control module.
4. The asynchronous alternate receiving and sending method for data stream writing according to claim 1, characterized in that: The post-stage data transmission circuit is Wi-Fi or wired Ethernet or Bluetooth; the read-write switching control module adopts FPGA (Field Programmable Gate Array) to control the first storage space and the second storage space.
5. A system applicable to the asynchronous alternating receiving and sending method for data stream writing according to claim 1, characterized in that: include: Read-write switching control module, storage module, data writing module and data reading module; The storage module includes a first storage space and a second storage space, and is used to store data in the first storage space and the second storage space. The module can be implemented by calling an IP core integrated inside a processor or a programmable logic device, or by calling an external storage device, and the external storage device includes but is not limited to SRAM, SDRAM or DDR; The data writing module, the data reading module and the storage module are connected in sequence; The read / write switching control module is connected to the data writing module and the data reading module, and is used to switch the read / write operation between the first storage space and the second storage space, that is, to determine whether the state of the storage space at the current moment is to write data or to read data; A data writing module, used for controlling data writing into a storage space, where the storage space is the storage space currently performing a data writing operation designated by the read-write switching control module; The data reading module is used to control the reading of data from the storage space, and the storage space is the storage space currently performing the data reading operation designated by the read-write state switching control module.
6. The system according to claim 5, characterized in that The read-write switching control module also includes a first decision module and a second decision module; A first judgment module is used to compare the amount of data written in the storage space currently performing the data writing operation with a specified threshold, and judge whether the amount of data written reaches the specified threshold according to the comparison result; The second judgment module is used to compare the amount of data read out from the storage space currently performing the data read operation with the amount of data stored in the storage space, and judge whether the data in the storage space has been completely read out according to the comparison result.
7. A device suitable for the asynchronous alternating receiving and sending method for data stream writing according to claim 1, characterized in that: It includes a first buffer, a counter, a decision device, a state selector, a first first-in-first-out memory, a second first-in-first-out memory, a second buffer, a first AND gate (1D), a first OR gate (1C), a first NOT gate (1A) and a second NOT gate (1B); The first buffer input terminal is connected to the external data output terminal, and the first buffer output terminal is connected to the data input terminals of the first FIFO memory and the second FIFO memory; the first buffer read clock terminal is connected to the counter count input terminal; The count result output terminal of the counter is connected to an input terminal of the decision device, the other input terminal of the decision device is connected to the input of the external threshold value Y, and the decision result output terminal of the decision device is connected to the input terminal of the state selector as the decision result input of the state selector; The write enable output terminal of the state selector is connected to the write enable input terminal of the first FIFO memory, and at the same time, the write enable output terminal of the state selector is connected to the write enable input terminal of the second FIFO memory through a first NOT gate (1A); The read enable output terminal of the state selector is connected to the read enable input terminal of the first FIFO memory, and at the same time, the read enable output terminal of the state selector is connected to the read enable input terminal of the second FIFO memory through a second NOT gate (1B); The empty signal output ends of the first FIFO memory and the second FIFO memory are respectively connected to the two input ends of the first OR gate (1C), the output end of the first OR gate (1C) and the decision result output end of the decision device are respectively connected to the two input ends of the first AND gate (1D), and the output end of the first AND gate (1D) is connected to the reset end of the counter.
8. The device of the asynchronous alternating receiving and sending method for data stream writing according to claim 7, characterized in that: The data output terminals of the first FIFO memory and the second FIFO memory are both connected to the data input terminal of the second buffer, and the data output terminal of the second buffer is connected to an external data sending circuit; The empty signal output terminals of the first FIFO memory and the second FIFO memory are connected to the input terminals of the state selector, serving as the first empty flag input and the second empty flag input of the state selector respectively; A storage capacity threshold Y is set in the first first-in-first-out memory and the second first-in-first-out memory, and the conditions for alternating reading and writing in the first first-in-first-out memory and the second first-in-first-out memory are set as follows: the amount of data stored in the first-in-first-out memory currently being written as data reaches the threshold Y, and the data in the first-in-first-out memory currently being read as data is all read out and sent.
9. The device of the asynchronous alternating receiving and sending method for data stream writing according to claim 7, characterized in that: The state selector is a data selector, or a gate and a logic circuit.
10. The device of the asynchronous alternate receiving and sending method for data stream writing according to claim 9, characterized in that: The gates and logic circuit include a third NOT gate (A), a fourth NOT gate (B), a fifth NOT gate (C), an XOR gate (D), a second AND gate (E), a third AND gate (F), a fourth AND gate (G), a second OR gate (H), a third OR gate (I) and an SR latch; The output signal terminal of the decision device is connected to the first input pin of the XOR gate (D), the second empty flag signal is connected to the second input pin of the XOR gate (D), and the XOR gate (D) outputs a signal XOR; The first empty flag signal is connected to the first input pin of the second AND gate (E) after passing through the fourth NOT gate (B), the second empty flag signal is connected to the second input pin of the second AND gate (E) after passing through the fifth NOT gate (C), and the second AND gate (E) outputs a signal AND1; The XOR gate output signal XOR is connected to the first input pin of the second OR gate (H), the second AND gate (E) output signal AND1 is connected to the second input pin of the second OR gate (H), and the second OR gate (H) outputs a signal OR1; The second OR gate (H) output signal OR1 is connected to the input pin S of the SR latch. D The output signal of the judgement device is connected to the first input pin of the third AND gate (F), the first empty flag signal is connected to the second input pin of the third AND gate (F) after passing through the fourth NOT gate (B), and the third AND gate (F) outputs a signal AND2; The output signal of the decision device is connected to the first input pin of the fourth AND gate (G) after passing through the third NOT gate (A), the second empty flag signal is connected to the second input pin of the fourth AND gate (G) after passing through the fifth NOT gate (C), and the fourth AND gate (G) outputs a signal AND3; The output signal AND2 of the third AND gate (F) is connected to the first input pin of the third OR gate (I), the output signal AND3 of the fourth AND gate (G) is connected to the second input pin of the third OR gate (I), and the output signal OR2 of the third OR gate (I); The output signal of the third OR gate (I) OR2 is connected to the input pin R of the SR latch. D ; The SR latch output pin Q is connected to the write enable terminal of the first FIFO memory, and the SR latch output signal Q′ is connected to the read enable terminal of the first FIFO memory.
Citation Information
Cited By
Memory transaction timing compensation
US12769451B2
