Data acquisition device and method and electronic equipment

By setting the full and read empty flags in the data acquisition device, the metastability problem in cross-clock domain processing is solved, the data transmission efficiency and accuracy are improved, and the real-time transmission requirements of data streams in complex scenarios are met.

CN118779283APending Publication Date: 2024-10-15BEIJING ESWIN COMPUTING TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410789535.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

In the existing technology, on-chip networks are prone to transmission metastability in cross-clock domain processing designs, which affects the efficiency and accuracy of data transmission, and a single voltage clock domain has limited performance improvement and power consumption reduction.

Method used

A data acquisition device is designed, including an input selector, a multi-data buffer memory and an output selector. By setting full and read empty flags in multiple read and write units, the selector is informed in advance of the status of the next read and write unit. , avoid waiting time and achieve cross-clock domain synchronization design.

Benefits of technology

It improves the efficiency and accuracy of data transmission, meets the real-time transmission requirements of data streams in complex scenarios, and reduces the impact of metastable phenomena.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118779283A_ABST
    Figure CN118779283A_ABST
Patent Text Reader

Abstract

The invention provides a data acquisition device and method and electronic equipment. The data acquisition device comprises an input selector, a multi-data buffer memory and an output selector, the multi-data buffer memory comprises: a plurality of read-write units; when a frame of data frame is written into the target read-write unit, under the condition that the remaining idle storage amount is smaller than or equal to a first threshold value, the target read-write unit is used for setting a full-write flag bit in the first register, and the full-write flag bit is used for an input selector to select the next read-write unit to write the data frame; and when a frame of data frame is read in the target read-write unit and the remaining stored data volume is empty, setting an empty read flag bit in the second register, the empty read flag bit being used for the output selector to select the next read-write unit to read the data frame. According to the invention, on the basis of satisfying the cross-clock domain processing design, the influence caused by a transmission metastable state phenomenon is reduced, and the efficiency and accuracy of data transmission are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a data acquisition device, method and electronic equipment. Background Art

[0002] The on-chip network for data acquisition can meet the communication needs of many integrated circuit cores.

[0003] Currently, under one solution, the on-chip network can use a single voltage clock domain; under another solution, the on-chip network can use clock domains of different frequencies. Such a cross-clock domain processing mechanism can better meet the needs of distributed scenarios.

[0004] However, in the current scheme, the use of a single voltage clock domain has a limiting effect on the performance improvement and power consumption reduction of the on-chip network, and the current cross-clock domain processing design is prone to transmission metastable phenomena, affecting the efficiency and accuracy of data transmission. Summary of the invention

[0005] The embodiments of the present application provide a data acquisition device, method and electronic device to solve the problems in the prior art.

[0006] In a first aspect, an embodiment of the present application provides a data acquisition device, the data acquisition device comprising:

[0007] An input selector, a multi-data buffer memory and an output selector; the multi-data buffer memory comprises: a plurality of read-write units arranged in sequence;

[0008] The input selector is used to obtain input data and write the data frame of the input data into the multiple data buffer memory according to the first arrangement order of the read-write units; the output selector is used to read the data frame stored in the multiple data buffer memory according to the second arrangement order of the read-write units;

[0009] For any target read-write unit among the multiple read-write units, when a frame of data frame is written into the target read-write unit, if the remaining free storage capacity is less than or equal to the first threshold, the target read-write unit is used to set a full flag in the first register, and the full flag is used for the input selector to select the next read-write unit of the target read-write unit to write the data frame;

[0010] When a frame of data is read from the target read-write unit and the remaining amount of stored data is empty, a read empty flag is set in the second register, and the read empty flag is used for the output selector to select the next read-write unit of the target read-write unit to read the data frame.

[0011] In a second aspect, an embodiment of the present application provides a data collection method, including:

[0012] Get input data;

[0013] Writing the data frame of the input data into the multiple data buffer memory through the output selector according to a first arrangement order of the multiple read-write units included in the multiple data buffer memory;

[0014] Reading the data frames stored in the multiple data buffer memory through the output selector according to the second arrangement order of the plurality of read-write units;

[0015] When a frame of data is written into the target read-write unit, and the remaining free storage capacity is less than or equal to the first threshold, a full flag is set in the first register, and the full flag is used for the input selector to select the next read-write unit of the target read-write unit to write the data frame; the target read-write unit is any read-write unit among the multiple read-write units,

[0016] When a frame of data is read from the target read-write unit and the remaining amount of stored data is empty, a read empty flag is set in the second register, and the read empty flag is used for the output selector to select the next read-write unit of the target read-write unit to read the data frame.

[0017] In a third aspect, an embodiment of the present application provides an electronic device, wherein the electronic device includes: a data acquisition device.

[0018] The embodiment of the present application integrates multiple read-write units into one to obtain a multi-data buffer memory. The design of integrating multiple read-write units into one can achieve the effect of increasing the overall data read / write throughput. By further providing multiple independent read-write units, the architecture basis of the data writing and reading processes are independent of each other, thereby meeting the needs of cross-clock domain synchronization design. In addition, the embodiment of the present application sets a full flag bit in the first register and sets a read empty flag bit in the second register, so that the input selector can be informed one step in advance that the target read-write unit currently being written is full and the output selector can be informed one step in advance that the target read-write unit currently being read is empty, so that the input selector and the output selector can immediately select the next read-write unit for processing, eliminating the waiting time of the input selector and the output selector when the read-write unit cannot perform the next operation, and improving the overall writing and reading efficiency. Therefore, on the basis of meeting the cross-clock domain processing design, the embodiment of the present application reduces the impact of the transmission metastable phenomenon and improves the efficiency and accuracy of data transmission.

[0019] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 It is a structural block diagram of a data acquisition device provided in an embodiment of the present application;

[0021] Figure 2 is a flow chart of the steps of a data collection method provided in an embodiment of the present application;

[0022] Figure 3 is a structural block diagram of an electronic device provided in an embodiment of the present application;

[0023] Figure 4 It is a logic block diagram of an electronic device provided in an embodiment of the present application;

[0024] Figure 5 It is a logic block diagram of another electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0025] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to enable the scope of the present invention to be fully communicated to those skilled in the art.

[0026] In the embodiments of this application, refer to Figure 1, which shows a structural block diagram of a data acquisition device, including: an input selector, a multi-data buffer memory and an output selector; the multi-data buffer memory includes: a plurality of read-write units arranged in sequence; the input selector is used to obtain input data, and write the data frame of the input data into the multi-data buffer memory according to the first arrangement order of the read-write units; the output selector is used to read the data frame stored in the multi-data buffer memory according to the second arrangement order of the read-write units; for any target read-write unit among the multiple read-write units, when a frame of data frame is written into the target read-write unit, if the remaining free storage amount is less than or equal to the first threshold value, the target read-write unit is used to set a full flag bit in the first register, and the full flag bit is used for the input selector to select the next read-write unit of the target read-write unit to write the data frame; when a frame of data frame is read from the target read-write unit, if the remaining amount of stored data is empty, a read empty flag bit is set in the second register, and the read empty flag bit is used for the output selector to select the next read-write unit of the target read-write unit to read the data frame.

[0027] Although multiple processor cores in a multi-core processor chip each execute their own code, data sharing and synchronization are required between processor cores. Therefore, the hardware structure of the multi-core processor must support efficient inter-core communication, and the performance of the on-chip communication structure will directly affect the performance of the processor. Therefore, the network on chip (NoC) aims to solve the communication problem within the multi-core processor. The network on chip is an integrated circuit on a communication subsystem based on a router network. The network on chip is a packet switching network based on routers between systems on chip. The network on chip technology draws on the interconnection network structure of parallel computers, integrating a large number of computing resources and an on-chip communication network connecting these resources on a single chip. Each processor core has an independent router and its private cache, and is connected together through an on-chip communication network. The message communication mechanism is used between the processor cores, and the on-chip bus of the related technology is replaced by routers and packet switching technology to complete the communication task, thereby solving the various bottleneck problems caused by bus interconnection in the related technology.

[0028] The data acquisition device of the embodiment of the present application can be applied to a network on chip, such as a network on chip project based on a high-speed video acquisition and processing system. In addition, the data acquisition device can also be applied to other scenarios, such as high-speed interface scenarios.

[0029] Furthermore, the data acquisition device of the embodiment of the present application adopts a cross-clock domain synchronization design to meet the demand for real-time transmission of data code streams in complex scenarios.

[0030] Specifically, refer to Figure 1The function of the input selector is to continuously receive input data, input the data frames of the input data into the multi-data buffer memory in sequence, and select a read-write unit in the multi-data buffer memory as the storage object of the current data frame, that is, the input selector has the functions of receiving data, writing data and selecting a read unit; the function of the output selector is to select a read-write unit in the multi-data buffer memory for a read operation, and output the read data frame, that is, the output selector has the functions of reading data, selecting a read unit and outputting data.

[0031] Furthermore, the read / write unit may be a circular asynchronous first-in-first-out queue (FIFO, First Input First Output) unit, that is, the instruction that first enters the read / write unit is completed and retired first, and then the second instruction is executed. The embodiment of the present application integrates multiple read / write units into one to obtain a multi-data buffer memory. The design of integrating multiple read / write units into one can achieve the effect of increasing the overall data read / write throughput, and further provide multiple independent read / write units to meet the architectural basis of the independent writing and reading processes of data, that is, at a certain moment, the writing operation and the reading operation can occur synchronously, and of course the writing operation and the reading operation can also occur asynchronously. For example, the writing operation occurs in a read / write unit in the multi-data buffer memory, and the reading operation occurs in another read / write unit in the multi-data buffer memory, so that the writing and reading processes are independent of each other, avoiding the existence of a read / write unit that is both written and read at the same time, thereby meeting the requirements of cross-clock domain synchronization design.

[0032] In an embodiment of the present application, the data acquisition device also maintains multiple registers. During the read / write operation, the data acquisition device achieves precise control of the read / write operation by setting / resetting the registers, so that the entire operation process can solve the metastable problem caused by the read / write unit being occupied by write and read operations at the same time, while meeting the cross-clock domain synchronization design requirements.

[0033] Specifically, the input selector writes data to the multiple read-write units in sequence according to a first arrangement order, and the output selector reads data from the multiple read-write units in sequence according to a second arrangement order. Preferably, the first arrangement order and the second arrangement order are opposite.

[0034] The embodiment of the present application can be directed to any target read-write unit among multiple read-write units. When a frame of data frame is written to the target read-write unit, and the remaining free storage capacity is less than or equal to the first threshold value, the target read-write unit is used to set a full flag bit (1) in the first register, and the full flag bit is used for the input selector to select the next read-write unit of the target read-write unit to write the data frame; that is, the target read-write unit can inform the input selector that the target read-write unit is currently full by setting the full flag bit (1) in the first register, so as to control the input selector to select the next read-write unit of the target read-write unit to write the data frame. That is, by setting the full flag bit in the first register, the input selector can be informed one step in advance that the target read-write unit currently being written is full, so that the input selector can immediately select the next read-write unit for writing, thereby eliminating the waiting time when the input selector cannot write the data frame because the read-write unit is full. The embodiment of the present application triggers the efficient circulation of the input selector in multiple read-write units through the first register, thereby improving the writing efficiency. It should be noted that when the value in the first register is the not full flag bit (0), it indicates that the target read / write unit is not full yet and data frames can continue to be written.

[0035] For example, assuming that a read / write unit can store 10 data frames, the first threshold is 1; if the target read / write unit has been written with 8 data frames, then for the 9th data frame currently input to the target read / write unit by the input selector, after the 9th data frame is stored, the remaining free storage capacity (1) of the target read / write unit is exactly equal to the first threshold. At this time, the target read / write unit is used to set the full flag in the first register, and the input selector can write the 10th frame of data after the 9th frame into the next read / write unit of the target read / write unit. It should be noted that the first threshold is 1 in order to leave an empty buffer space in the read / write unit that can store 1 data frame, thereby improving the stability of the read / write unit.

[0036] In addition, when a frame of data frame is read by the target read-write unit, and the remaining amount of stored data is empty, a read empty flag is set in the second register, and the read empty flag is used for the output selector to select the next read-write unit of the target read-write unit to read the data frame. That is, by setting the read empty flag (1) in the second register, the target read-write unit can inform the output selector that the target read-write unit has been read empty, so as to control the output selector to select the next read-write unit of the target read-write unit to read the data frame. That is, by setting the read empty flag in the second register, the output selector can be informed one step in advance that the current target read-write unit has been read empty, so that the output selector can immediately select the next read-write unit for reading, eliminating the waiting time when the output selector cannot continue to read the data frame because the read-write unit has been read empty. The embodiment of the present application triggers the high-efficiency flow of the output selector in multiple read-write units through the second register, thereby improving the reading efficiency. It should be noted that when the value in the second register is the unread empty flag (0), it indicates that the target read-write unit has not been read empty and the data frame can continue to be read.

[0037] For example, assume that a read-write unit can store 10 frames of data frames; if the target read-write unit has read 9 frames of data frames, then for the 10th frame of data frame of the target read-write unit that the output selector is currently reading, after the 10th frame of data frame is read, the target read-write unit is read empty. At this time, the target read-write unit is used to set the read empty flag in the second register, and the output selector can read the 11th frame of data after the 10th frame from the next read-write unit of the target read-write unit.

[0038] The embodiment of the present application integrates multiple read-write units into one to obtain a multi-data buffer memory. The design of integrating multiple read-write units into one can achieve the effect of increasing the overall data read / write throughput. By further providing multiple independent read-write units, the architecture basis of the data writing and reading processes are independent of each other, thereby meeting the needs of cross-clock domain synchronization design. In addition, the embodiment of the present application sets a full flag bit in the first register and sets a read empty flag bit in the second register, so that the input selector can be informed one step in advance that the target read-write unit currently being written is full and the output selector can be informed one step in advance that the target read-write unit currently being read is empty, so that the input selector and the output selector can immediately select the next read-write unit for processing, eliminating the waiting time of the input selector and the output selector when the read-write unit cannot perform the next operation, and improving the overall writing and reading efficiency. Therefore, on the basis of meeting the cross-clock domain processing design, the embodiment of the present application reduces the impact of the transmission metastable phenomenon and improves the efficiency and accuracy of data transmission.

[0039] Optional, see Figure 1The target read-write unit is also used to: write the amount of data stored in the current target read-write unit into the third register, the value in the third register is used for the output selector to determine the amount of readable data, and generate and execute a read command based on the amount of readable data; the output selector is also used to stop the read operation when the value in the third register is 0.

[0040] In the embodiment of the present application, the target read / write unit can also write the amount of data stored in the current target read / write unit into the third register in real time, and the value in the third register is used for the output selector to determine the amount of data that can be read, and generate and execute a read command based on the amount of data that can be read, that is, the value in the third register is used to inform the output selector of the amount of data that can be read currently, so that the output selector can accurately construct a read command based on the value in the third register. In addition, the output selector is also used to stop the read operation when the value in the third register is 0.

[0041] For example, assuming that the current target read / write unit still has 200 frames of unread data frames, the value in the third register may be 200.

[0042] Optional, see Figure 1 The output selector is also used to: set a read occupied flag in a fourth register corresponding to the target read-write unit during the process of the output selector performing a read operation on the target read-write unit; the input selector is used to stop writing data frames to the target read-write unit during the existence of the read occupied flag, and determine that the target read-write unit is writable after the read occupied flag is canceled.

[0043] In an embodiment of the present application, the output selector also maintains a fourth register corresponding to each read-write unit. The output selector reflects the occupancy status of the read-write unit corresponding to the fourth register by configuring the value in the fourth register. That is, when the output selector performs a read operation on the target read-write unit, the output selector can set a read occupied flag (1) in the fourth register corresponding to the target read-write unit, which indicates that the output selector is currently occupying the target read-write unit. The input selector can determine whether the target read-write unit is occupied by the output selector at this time by calling the value in the fourth register corresponding to the target read-write unit. If occupied (the read occupied flag (1) is stored in the fourth register), the input selector will not currently perform a write operation on the target read-write unit; if not occupied (the unoccupied flag (0) is stored in the fourth register), the target read-write unit is determined to be writable.

[0044] For example, refer to Figure 1Assuming that the output selector is currently performing a read operation on read-write unit 1, the output selector will set the read occupied flag (1) in the fourth register corresponding to read-write unit 1 during the reading process. If the input selector is ready to write to read-write unit 1 during the reading process, the input selector will call the read occupied flag (1) set in the fourth register corresponding to the read-write unit 1 before writing, so as to cancel the write operation and avoid a read-write conflict in read-write unit 1 (being read and written at the same time).

[0045] Optional, see Figure 1 The input selector is also used to: set a write occupied flag in a fifth register corresponding to the target read-write unit during the process of the input selector performing a write operation on the target read-write unit; the output selector is used to stop reading the target read-write unit during the existence of the write occupied flag, and determine that the target read-write unit is readable after the write occupied flag is canceled.

[0046] In an embodiment of the present application, the input selector also maintains a fifth register corresponding to each read-write unit. The input selector reflects the occupancy status of the read-write unit corresponding to the fifth register by configuring the value in the fifth register. That is, when the input selector performs a write operation on the target read-write unit, the input selector can set a write occupied flag (1) in the fifth register corresponding to the target read-write unit, which indicates that the input selector is currently occupying the target read-write unit. The output selector can determine whether the target read-write unit is occupied by the input selector at this time by calling the value in the fifth register corresponding to the target read-write unit. If it is occupied (the write occupied flag (1) is stored in the fifth register), the output selector will not currently perform a read operation on the target read-write unit; if it is not occupied (the unoccupied flag (0) is stored in the fifth register), the target read-write unit is determined to be readable.

[0047] For example, refer to Figure 1 , assuming that the input selector is currently performing a write operation on the read-write unit 2, the input selector will set the write occupied flag (1) in the fifth register corresponding to the read-write unit 2 during the write process. If the output selector is ready to read the read-write unit 2 during the write process, the output selector will call the write occupied flag (1) set in the fifth register corresponding to the read-write unit 2 before reading, thereby canceling the read operation and avoiding a read-write conflict in the read-write unit 2 (being read and written at the same time).

[0048] Therefore, the embodiment of the present application realizes the mutual isolation of read operation and write operation through the configuration of the fourth register and the fifth register, so that the read operation and the write operation are staggered, and the read operation and the write operation do not occur simultaneously on the same read-write unit, thereby meeting the requirements of cross-clock domain synchronization design, and can solve the adverse effects caused by metastable state, improve the overall response speed of read / write, reduce data error rate, and improve calculation accuracy.

[0049] Optional, see Figure 1 The multi-data buffer memory includes: read-write unit 0, read-write unit 1...read-write unit n; the first arrangement order is read-write unit 0 to read-write unit n; the second arrangement order is read-write unit n to read-write unit 0.

[0050] In an embodiment of the present application, read-write unit 0 to read-write unit n form a ring structure (i.e., read-write unit 0 is connected to read-write unit n), the input selector can first write to read-write unit 0, and then write to read-write unit 1 after read-write unit 0 is full, and then write to read-write unit 2 after read-write unit 1 is full... and the input selector can first read read-write unit n, and then read read-write unit n-1 after reading read-write unit n, and then read read-write unit n-2 after reading read-write unit n-1... Such a design has the effect of the opposite writing order and reading order. When the data stored in the read-write unit is read, the new data will be written to the read-write unit immediately, thereby maximizing the utilization rate of the multi-data buffer memory and reducing the probability of read-write conflicts in the read-write unit.

[0051] Optionally, the multiple read-write units included in the multi-data buffer memory are integrated into one structure.

[0052] In an embodiment of the present application, multiple read-write units are integrated into one to obtain a multi-data buffer memory. The design of integrating multiple read-write units into one can achieve the effect of increasing the overall data read / write throughput. By further providing multiple independent read-write units, the architectural basis of independent data writing and reading processes is satisfied, that is, at a certain moment, the write operation and the read operation can occur synchronously, and of course the write operation and the read operation can also occur asynchronously.

[0053] Optionally, the data acquisition device also includes: a front-end module; the front-end module is used to: receive scene definition input and obtain scene parameters; receive configuration parameters set for scene parameters, and configure the multi-data buffer memory through the configuration parameters.

[0054] In an embodiment of the present application, the data acquisition device may run in different scenarios. Different scenarios have different requirements for data acquisition specifications based on their respective hardware resources, which is specifically reflected in the different specifications of the multi-data buffer memory required in different scenarios. Therefore, the embodiment of the present application can also set a front-end module, which can provide a display and related configuration interface, so that it can receive the user's scene definition input to obtain scene parameters, and further receive configuration parameters for scene parameter settings, and configure the multi-data buffer memory through the configuration parameters, so as to realize the personalized specification configuration requirements of the data acquisition device for the scene.

[0055] Optionally, the configuration parameters include: one or more of the total number of read / write units included in the multi-data buffer memory, the storage capacity of each read / write unit, and the read / write execution frequency of the read / write unit.

[0056] In the embodiment of the present application, the configuration parameters include but are not limited to the total number of read-write units included in the multi-data buffer memory, the storage capacity of each read-write unit, and the read / write execution frequency of the read-write unit. For example, in a scenario where the hardware resources are sufficient and there is a large throughput requirement, the total number of read-write units included in the multi-data buffer memory, the storage capacity of each read-write unit, and the read / write execution frequency of the read-write unit can be configured to higher values. In a scenario where the hardware resources are less and there is a smaller throughput requirement, the total number of read-write units included in the multi-data buffer memory, the storage capacity of each read-write unit, and the read / write execution frequency of the read-write unit can be configured to lower values.

[0057] Reference Figure 2 The present application also provides a data collection method step flow chart, the method is applied to Figure 1 The data acquisition device of the present invention comprises:

[0058] Step 201: Obtain input data.

[0059] Step 202: Write the data frame of the input data into the multiple data buffer memory through the output selector according to the first arrangement order of the multiple read-write units included in the multiple data buffer memory.

[0060] Step 203: read the data frames stored in the multiple data buffer memory through the output selector according to the second arrangement order of the plurality of read-write units.

[0061] Step 204: When a frame of data is written into the target read-write unit and the remaining free storage is less than or equal to a first threshold, a full flag is set in the first register, and the full flag is used for the input selector to select the next read-write unit of the target read-write unit to write the data frame; the target read-write unit is any read-write unit among the multiple read-write units.

[0062] Step 205: When a frame of data is read from the target read-write unit and the remaining amount of stored data is empty, a read empty flag is set in the second register, and the read empty flag is used for the output selector to select the next read-write unit of the target read-write unit to read the data frame.

[0063] In the embodiment of the present application, the specific description of steps 201 to 205 can refer to the above Figure 1 The relevant description of the embodiments is not repeated here.

[0064] Reference Figure 3 , an embodiment of the present application also provides an electronic device, the electronic device includes the data acquisition device.

[0065] The embodiment of the present application integrates multiple read-write units into one to obtain a multi-data buffer memory. The design of integrating multiple read-write units into one can achieve the effect of increasing the overall data read / write throughput. By further providing multiple independent read-write units, the architecture basis of the data writing and reading processes are independent of each other, thereby meeting the needs of cross-clock domain synchronization design. In addition, the embodiment of the present application sets a full flag bit in the first register and sets a read empty flag bit in the second register, so that the input selector can be informed one step in advance that the target read-write unit currently being written is full and the output selector can be informed one step in advance that the target read-write unit currently being read is empty, so that the input selector and the output selector can immediately select the next read-write unit for processing, eliminating the waiting time of the input selector and the output selector when the read-write unit cannot perform the next operation, and improving the overall writing and reading efficiency. Therefore, on the basis of meeting the cross-clock domain processing design, the embodiment of the present application reduces the impact of the transmission metastable phenomenon and improves the efficiency and accuracy of data transmission.

[0066] Figure 4 is a block diagram of an electronic device 600 according to an exemplary embodiment. For example, the electronic device 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0067] Reference Figure 4The electronic device 600 may include one or more of the following components: a processing component 602, a memory 604, a power component 606, a multimedia component 608, an audio component 610, an input / output (I / O) interface 612, a sensor component 614, a data acquisition device 615, and a communication component 616. The data acquisition device 615 is the above Figure 1 The device shown in the embodiment.

[0068] The processing component 602 generally controls the overall operation of the electronic device 600, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 602 may include one or more modules to facilitate the interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate the interaction between the multimedia component 608 and the processing component 602.

[0069] The memory 604 is used to store various types of data to support the operation of the electronic device 600. Examples of such data include instructions for any application or method operating on the electronic device 600, contact data, phone book data, messages, pictures, multimedia, etc. The memory 604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0070] The power supply component 606 provides power to the various components of the electronic device 600. The power supply component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 600.

[0071] The multimedia component 608 includes a screen that provides an output interface between the electronic device 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front camera and / or a rear camera. When the electronic device 600 is in an operating mode, such as a shooting mode or a multimedia mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0072] The audio component 610 is used to output and / or input audio signals. For example, the audio component 610 includes a microphone (MIC), and when the electronic device 600 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is used to receive an external audio signal. The received audio signal can be further stored in the memory 604 or sent via the communication component 616. In some embodiments, the audio component 610 also includes a speaker for outputting audio signals.

[0073] I / O interface 612 provides an interface between processing component 602 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0074] The sensor assembly 614 includes one or more sensors for providing various aspects of status assessment for the electronic device 600. For example, the sensor assembly 614 can detect the open / closed state of the electronic device 600, the relative positioning of the components, such as the display and keypad of the electronic device 600, and the sensor assembly 614 can also detect the position change of the electronic device 600 or a component of the electronic device 600, the presence or absence of contact between the user and the electronic device 600, the orientation or acceleration / deceleration of the electronic device 600, and the temperature change of the electronic device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 614 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0075] The communication component 616 is used to facilitate wired or wireless communication between the electronic device 600 and other devices. The electronic device 600 can access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G or 5G), or a combination thereof. In an exemplary embodiment, the communication component 616 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0076] In an exemplary embodiment, the electronic device 600 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to implement a method executed by a data acquisition device provided in an embodiment of the present application.

[0077] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 604 including instructions, and the instructions can be executed by a processor 620 of an electronic device 600 to perform the above method. For example, the non-transitory storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0078] Figure 4 is a block diagram of an electronic device 700 according to an exemplary embodiment. For example, the electronic device 700 may be provided as a server. Figure 4 The electronic device 700 includes a processing component 722, which further includes one or more processors, and a memory resource represented by a memory 732 for storing instructions that can be executed by the processing component 722, such as an application. The application stored in the memory 732 may include one or more modules, each of which corresponds to a set of instructions. In addition, the processing component 722 is configured to execute instructions to execute the method performed by the data acquisition device provided in the embodiment of the present application. The electronic device 700 may also include a data acquisition device 742, wherein the data acquisition device 742 is the above-mentioned Figure 1 The device shown in the embodiment.

[0079] The electronic device 700 may also include a power supply component 726 configured to perform power management of the electronic device 700, a wired or wireless network interface 750 configured to connect the electronic device 700 to a network, and an input / output (I / O) interface 758. The electronic device 700 may operate based on an operating system stored in the memory 732, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™ or the like.

[0080] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the embodiment implemented by the above-mentioned data acquisition device are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0081] The embodiment of the present application also provides a computer program product, which is executed by a processor to implement the various processes of the embodiment implemented by the above data acquisition device, and can achieve the same technical effect. To avoid repetition, it is not repeated here. The computer program product can be stored in a storage medium.

[0082] In summary, the data acquisition device provided in the embodiments of the present application may be a chip or a chip system.

[0083] Those skilled in the art will readily appreciate other embodiments of the invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.

[0084] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. A data acquisition device, characterized in that: The data acquisition device comprises: An input selector, a multi-data buffer memory and an output selector; the multi-data buffer memory comprises: a plurality of read-write units arranged in sequence; The input selector is used to obtain input data and write the data frame of the input data into the multiple data buffer memory according to the first arrangement order of the read-write unit; the output selector is used to read the data frame stored in the multiple data buffer memory according to the second arrangement order of the read-write unit; For any target read-write unit among the multiple read-write units, when a frame of data frame is written into the target read-write unit, if the remaining free storage capacity is less than or equal to the first threshold, the target read-write unit is used to set a full flag in the first register, and the full flag is used for the input selector to select the next read-write unit of the target read-write unit to write the data frame; When a frame of data is read from the target read-write unit and the remaining amount of stored data is empty, a read empty flag is set in the second register, and the read empty flag is used for the output selector to select the next read-write unit of the target read-write unit to read the data frame.

2. The data acquisition device according to claim 1, characterized in that: The target read / write unit is further used to: write the amount of data currently stored in the target read / write unit into a third register, the value in the third register is used by the output selector to determine the amount of readable data, and generate and execute a read command according to the amount of readable data; The output selector is further configured to stop the reading operation when the value in the third register is 0.

3. The data acquisition device according to claim 1, characterized in that: The output selector is also used to: set a read occupied flag in a fourth register corresponding to the target read-write unit during the process of the output selector performing a read operation on the target read-write unit; the input selector is used to stop writing data frames to the target read-write unit during the existence of the read occupied flag, and determine that the target read-write unit is writable after the read occupied flag is canceled.

4. The data acquisition device according to claim 1, characterized in that: The input selector is also used to: set a write occupied flag in a fifth register corresponding to the target read-write unit during the process of the input selector performing a write operation on the target read-write unit; the output selector is used to stop reading the target read-write unit during the existence of the write occupied flag, and determine that the target read-write unit is readable after the write occupied flag is canceled.

5. The data acquisition device according to claim 1, characterized in that: The multi-data buffer memory comprises: a read-write unit 0, a read-write unit 1 ... a read-write unit n; The first arrangement order is from the read-write unit 0 to the read-write unit n; The second arrangement sequence is from the read-write unit n to the read-write unit 0.

6. The data acquisition device according to claim 1, characterized in that: The multiple read-write units included in the multi-data buffer memory are integrated into one structure.

7. The data acquisition device according to claim 1, characterized in that: The data acquisition device also includes: Front-end module; The front-end module is used for: Receive scene definition input and obtain scene parameters; A configuration parameter for the scene parameter setting is received, and the multiple data buffer memory is configured according to the configuration parameter.

8. The data acquisition device according to claim 7, characterized in that: The configuration parameters include: one or more of the total number of read / write units included in the multi-data buffer memory, the storage capacity of each of the read / write units, and the read / write execution frequency of the read / write units.

9. A data collection method, characterized in that: The data collection method comprises: Get input data; Writing the data frame of the input data into the multiple data buffer memory through the output selector according to a first arrangement order of the multiple read-write units included in the multiple data buffer memory; Reading the data frames stored in the multiple data buffer memory through the output selector according to the second arrangement order of the plurality of read-write units; When a frame of data is written into the target read-write unit, and the remaining free storage capacity is less than or equal to the first threshold, a full flag is set in the first register, and the full flag is used for the input selector to select the next read-write unit of the target read-write unit to write the data frame; the target read-write unit is any read-write unit among the multiple read-write units; When a frame of data is read from the target read-write unit and the remaining amount of stored data is empty, a read empty flag is set in the second register, and the read empty flag is used for the output selector to select the next read-write unit of the target read-write unit to read the data frame.

10. An electronic device, characterized in that: The electronic device comprises: A data acquisition device as described in any one of claims 1 to 8.