Vector data storage and calculation method, sampling signal processing circuit and vectorization acquisition, storage and calculation integrated device
By introducing vector data storage and calculation methods and non-volatile memory into the sampling signal processing circuit, vector calculation processing is realized, solving the problems of CPU calculation pressure and data delay in traditional technology, and improving real-time processing capabilities.
Patent Information
- Application Number
- CN202410717604.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-04
- Publication Date
- 2024-08-30
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Traditional vector acquisition terminals have problems such as high CPU computing pressure, long data delay, and slow writing speed of FLASH storage during data processing, and cannot meet the high-speed and high-frequency writing requirements of real-time processing systems.
A vector data storage and calculation method is designed. The sampling signal processing circuit includes a conversion module, a calculation module and a storage module. Vector calculation processing is performed through the storage module, and non-volatile memory such as PCRAM is used for fast storage and calculation to avoid data being stored in the CPU. Repeated reading and writing between FLASH and FLASH reduce data processing delay.
It effectively relieves the computing pressure of the computing module, reduces the data processing delay, meets the needs of real-time processing, and improves the data circulation rate and processing efficiency.
Smart Images

Figure CN118568048A
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of sampling equipment, and in particular, relates to a vector data storage and calculation method, a sampling signal processing circuit, and a vectorized acquisition, storage and calculation integrated device. Background Art
[0002] In the design of traditional vector acquisition terminals, analog input signal acquisition is completed by each sampling channel. After the signal is input, converted, and filtered, it enters the analog-to-digital conversion (AD) acquisition circuit. The AD acquisition circuit communicates with the bus controller on the CPU submodule. The CPU reads the acquired signal into the cache, reads the acquired data from the cache for processing, and stores the processed data in FLASH. Applications have shown that CPU processing will cause data delays. FLASH storage has the disadvantages of slow writing speed and limited writing times, and cannot meet the requirements of high-speed and high-frequency writing in real-time processing systems. How to propose a new design to alleviate the CPU computing pressure, reduce the delay of data processing, and meet the needs of real-time processing is a technical problem that technicians in this field need to solve urgently.
[0003] The preceding description is intended to provide general background information and does not necessarily constitute prior art. Summary of the invention
[0004] Based on this, it is necessary to propose a vector data storage method, a sampling signal processing circuit and a vectorized acquisition and storage integrated device to address the above problems, which can reduce the delay of data processing of the sampling equipment and meet the needs of real-time processing.
[0005] The present application solves the technical problem by adopting the following technical solutions:
[0006] The present application provides a vector data storage and calculation method, which is applied to a sampling signal processing circuit; the sampling signal processing circuit includes: a conversion module, a calculation module and a storage module; the calculation module is connected to the conversion module and the storage module respectively; the method includes: when the conversion module obtains an analog signal, the analog signal is converted into a digital signal and sent to the calculation module; the calculation module performs a calibration operation on the digital signal to obtain a calibration signal, and sends the calibration signal to the storage module; the storage module performs vector calculation processing on the sent calibration signal, and stores the vector data obtained by the calculation processing.
[0007] In an optional embodiment of the present application, the storage module performs vector calculation processing on the sent calibration signal, including: setting the number of sampling points per cycle to N, obtaining the sampled voltage and sampled current in the calibration signal; calculating the real part of the sampled voltage, the imaginary part of the sampled voltage, the real part of the sampled current, and the imaginary part of the sampled current according to the number of sampling points, the sampled voltage, and the sampled current, respectively, and the calculation process includes:
[0008]
[0009] Among them, U k is the sampling voltage, I k is the sampling current; ReU is the real part of the sampling voltage; ImU is the imaginary part of the sampling voltage; ReI is the real part of the sampling current; ImI is the imaginary part of the sampling current; k represents a point within a cycle; vector data is calculated based on the real part of the sampling voltage, the imaginary part of the sampling voltage, the real part of the sampling current and the imaginary part of the sampling current, and the vector data includes voltage amplitude, current amplitude, voltage angle and current angle.
[0010] In an optional embodiment of the present application, the vector data is calculated according to the real part of the sampled voltage, the imaginary part of the sampled voltage, the real part of the sampled current and the imaginary part of the sampled current, including: the voltage amplitude of the sampling point is calculated according to the real part of the sampled voltage and the imaginary part of the sampled voltage, and the calculation process is:
[0011]
[0012] The current amplitude at the sampling point is calculated based on the real part of the sampling current and the imaginary part of the sampling current. The calculation process is:
[0013]
[0014] The voltage angle of the sampling point is calculated based on the real part of the sampled voltage and the imaginary part of the sampled voltage. The calculation process is:
[0015]
[0016] The current pressure angle of the sampling point is calculated based on the real part of the sampling current and the imaginary part of the sampling current. The calculation process is:
[0017]
[0018] Among them, U is the voltage amplitude; I is the current amplitude; ∠θ u is the voltage angle; ∠θ i is the current angle.
[0019] In an optional embodiment of the present application, the sampling signal processing circuit also includes a volatile memory and a Flash memory; after the vector data obtained by calculation and processing is stored, the method also includes: the calculation module reads the vector data from the storage module, and implements the functional processing of the vectorized sampling terminal according to the processing of the vector data; the vector data in the processing process is marked as intermediate data, and the intermediate data is controlled to flow between the calculation module and the storage module, and is not stored in the volatile memory or the Flash memory; the processed vector data is marked as result data, and the result data is stored in the volatile memory or the Flash memory.
[0020] The present application also provides a sampling signal processing circuit, comprising: a conversion module, a computing module and a storage module; the computing module is connected to the conversion module and the storage module respectively; the conversion module is configured to convert the input analog signal into a digital signal and provide it to the computing module for processing; the computing module is composed of a processor designed with a reduced instruction set architecture, and is configured to calibrate the digital signal to obtain a calibration signal, and send it to the storage module for storage and processing; the storage module is composed of a non-volatile memory, and is configured to perform vector calculation processing on the sent calibration signal, and store the vector data obtained by the calculation processing.
[0021] In an optional embodiment of the present application, the storage module is composed of a phase change memory; the processor used by the computing module is designed based on the RISC-V instruction set architecture.
[0022] In an optional embodiment of the present application, the sampling signal processing circuit also includes a volatile memory and a Flash memory, the volatile memory temporarily stores the data being processed; the Flash memory is used to fixedly store the processed data; during the vector calculation processing, the calibration data and / or vector data will not be cached in the volatile memory or the Flash memory.
[0023] The present application also provides a vectorized acquisition, storage and computing integrated device, including a front-stage input circuit, and a sampling signal processing circuit as provided above; the sampling signal processing circuit is used to execute the method provided above; the front-stage input circuit is connected to the sampling signal processing circuit, and is used to obtain the original sampling data and then process it into an analog signal and output it to the sampling signal processing circuit.
[0024] In an optional embodiment of the present application, the front-stage input circuit includes: the front-stage input circuit includes an acquisition module and a preprocessing module; the acquisition module is used to obtain original sampling data; the preprocessing module is used to process the original sampling data into an analog signal.
[0025] In an optional embodiment of the present application, the preprocessing module includes a filtering circuit and an amplifying circuit; the filtering circuit is used to filter the original sampling data to filter out valid data therefrom; the amplifying circuit is used to amplify the valid data according to a preset ratio and mark the amplified valid data as an analog signal.
[0026] The embodiments of the present application have the following beneficial effects:
[0027] This application innovatively designs a sampling signal processing circuit, so that the sampling value calculation and storage are integrated in the storage module, which alleviates the calculation pressure of the calculation module. In addition, the storage module is composed of non-volatile memory, so during the vector calculation process, the storage and processing processes are executed by the storage module. There is no need to cache in other storage modules, so that data is repeatedly read in the calculation module and memory, reducing the delay of data processing and meeting the needs of real-time processing.
[0028] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented according to the contents of the specification, and in order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the following preferred embodiments are specifically cited and described in detail with the accompanying drawings. It should be understood that the above general description and the detailed description below are only exemplary and explanatory, and cannot limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0030] in:
[0031] Figure 1 A schematic diagram of a flow chart of a vector data storage and calculation method provided by an embodiment;
[0032] Figure 2 A diagram showing the relationship between internal functional modules of a sampling signal processing circuit provided by an embodiment;
[0033] Figure 3 A schematic diagram of the structure of a sampling signal processing circuit provided by an embodiment;
[0034] Figure 4 A diagram showing the relationship between internal functional modules of a vectorized acquisition, storage and computing integrated device provided by an embodiment;
[0035] Figure 5 A diagram showing the relationship between the internal functional modules of a front-stage input circuit provided by an embodiment;
[0036] Figure 6 A diagram showing the relationship between the internal functional modules of a preprocessing module provided by an embodiment;
[0037] Figure 7 A schematic diagram of the structure of a vectorized acquisition, storage and computing integrated device provided in one embodiment. DETAILED DESCRIPTION
[0038] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0039] In the process of acquiring analog signals and converting them into digital signals, existing acquisition devices often need to read and write back and forth between the CPU of the computing module and the FLASH memory of the storage module, resulting in poor timeliness. In order to solve the technical problems existing in the prior art, this application proposes a vector data storage method. To clearly describe the vector data storage method provided by this embodiment, please refer to Figure 1-2 .
[0040] The vector data storage method is applied to a sampling signal processing circuit 10. The present application also proposes improvements to the sampling signal processing circuit 10. The specific improvements will be described in detail in the relevant structure later, and will not be expanded here. Figure 2 It is sufficient to understand the connection mode of each functional module in the sampling signal processing circuit 10. The sampling signal processing circuit 10 applied by the vector data storage and calculation method includes a conversion module 11, a calculation module 12 and a storage module 13. The calculation module 12 is respectively connected to the conversion module 11 and the storage module 13, and the connection mode can be connected through a data bus to realize the flow of data between various modules.
[0041] This embodiment provides a vector data storage and calculation method, which includes steps S110 to S130.
[0042] Step S110 : After the conversion module 11 obtains the analog signal, it converts the analog signal into a digital signal and sends it to the calculation module 12 .
[0043] In one embodiment, the conversion module 11 may specifically be an analog-to-digital (AD) acquisition circuit. It can be used to convert the acquired analog signal into a digital signal. The conversion module 11 may specifically include, but is not limited to, a successive approximation ADC, a flash ADC, an integrating ADC, and a Sigma-Delta ADC. These conversion modules 11 have their own advantages and disadvantages and applicable scopes according to different application requirements. Therefore, when specifically selecting the conversion module 11, factors such as the bandwidth, resolution, speed, power consumption, and system cost of the signal need to be considered according to actual conditions, and no specific restrictions are made here.
[0044] Step S120 : the calculation module 12 performs a calibration operation on the digital signal to obtain a calibration signal, and sends the calibration signal to the storage module 13 .
[0045] In one embodiment, the calculation module 12 can be connected to the conversion module 11 through a serial high-speed interface, and the conversion module 11 outputs the sampled original value to the calculation module 12 for calibration operation. The calculation module 12 can be various processor micro-architectures designed based on the RISC-V architecture, specifically a RISC-V SoC. The calculation module 12 can perform calibration operations on the digital signal obtained from the conversion module 11, and the calibration operation usually involves adjusting certain parameters of the input signal or the processor to ensure correct and reliable processing of data. These calibration operations may include the following aspects: clock calibration, input / output calibration, and signal integrity calibration.
[0046] Clock calibration: The clock inside the computing module 12 is key to its operation. The accuracy of the clock frequency is critical to the performance and stability of the computing module 12. Therefore, the computing module 12 can calibrate the clock through internal calibration circuits or software control to ensure that it is synchronized with the standard clock signal, thereby avoiding data processing errors or timing problems caused by clock deviation.
[0047] Input / output calibration: The computing module 12 may need to calibrate the input / output interface to ensure that the data of the external device is correctly read or the correct signal is output to the external device. This calibration may involve delay calibration of the data line, signal amplitude calibration, etc.
[0048] Signal integrity calibration: The signal path inside the computing module 12 needs to ensure that data is not lost or disturbed during processing. Therefore, the computing module 12 may perform signal integrity calibration, including verification and error correction functions of data transmission, as well as adjustment and optimization of signal lines.
[0049] The digital signal after calibration is marked as a calibration signal, which can be sent to the storage module 13 for processing or storage.
[0050] Step S130: the storage module 13 performs vector calculation processing on the sent calibration signal, and stores the vector data obtained by the calculation processing.
[0051] In one embodiment, step S130: the storage module 13 performs vector calculation processing on the sent calibration signal, including: setting the number of sampling points per cycle as N, obtaining the sampled voltage and sampled current in the calibration signal; calculating the real part of the sampled voltage, the imaginary part of the sampled voltage, the real part of the sampled current, and the imaginary part of the sampled current according to the number of sampling points, the sampled voltage, and the sampled current, respectively.
[0052] In one embodiment, the storage module 13 can be specifically a phase change memory PCRAM. Phase change memory PCRAM has the advantages of fast reading speed, low static power consumption, long cycle life, strong scalability, and high reliability. Applying PCRAM to vector acquisition terminals integrates data storage and calculation, which will effectively relieve the pressure of CPU calculation and reduce the delay of traditional computing technology architecture. In other words, the calibration signal after the calibration operation of the calculation module 12 in the traditional process is originally to be transmitted to the memory or Flash memory 15 for storage, but in this application, it is no longer necessary to pass through the traditional memory and write to the Flash. Instead, the calibration signal is transmitted to the storage module 13 composed of PCRAM by utilizing the fast read / write and non-volatile storage performance of PCRAM. PCRAM quickly stores the current calibration signal, performs calculations, and stores the calculation results in PCRAM. RISC-V SoC calls the processed sampled data from PCRAM according to the application function requirements.
[0053] The calculation process for PCRAM includes: assuming that the number of sampling points per cycle of the acquisition terminal is N, the real and imaginary parts of the corresponding sampled voltage and current are calculated according to the fast Fourier transform formula. The specific calculation process is shown in the following formulas (1) to (4):
[0054]
[0055] In formulas (1) to (4), U k is the sampling voltage, I k is the sampling current; ReU is the real part of the sampling voltage; ImU is the imaginary part of the sampling voltage; ReI is the real part of the sampling current; ImI is the imaginary part of the sampling current; k represents a point in a cycle. Further, vector data is calculated based on the real part of the sampling voltage, the imaginary part of the sampling voltage, the real part of the sampling current and the imaginary part of the sampling current, and the vector data includes voltage amplitude, current amplitude, voltage angle and current angle.
[0056] In one embodiment, the voltage amplitude at the sampling point is calculated by using the formulas (1) to (4), the real part of the sampled voltage and the imaginary part of the sampled voltage, and the calculation process is:
[0057]
[0058] The current amplitude at the sampling point is calculated based on the real part of the sampling current and the imaginary part of the sampling current. The calculation process is:
[0059]
[0060] The voltage angle of the sampling point is calculated based on the real part of the sampled voltage and the imaginary part of the sampled voltage. The calculation process is:
[0061]
[0062] The current pressure angle of the sampling point is calculated based on the real part of the sampling current and the imaginary part of the sampling current. The calculation process is:
[0063]
[0064] In equations (5) to (8), U is the voltage amplitude; I is the current amplitude; ∠θ u is the voltage angle; ∠θ i is the current angle. The vector data corresponding to the sampling point can be obtained by summarizing the voltage amplitude, current amplitude, voltage angle and current angle. It is also worth noting that in the above processing, the calibration signal and vector data are all circulated in the calculation module 12 and the storage module 13, which improves the data circulation rate. The calculation and storage of the terminal sampling value are integrated in the storage module 13, which relieves the calculation pressure of the calculation module 12.
[0065] In one embodiment, the sampling signal processing circuit 10 also includes a volatile memory 14 and a Flash memory 15; after the vector data obtained by the calculation processing is stored, the method also includes: the calculation module 12 reads the vector data from the storage module 13, and realizes the functional processing of the vectorized sampling terminal according to the processing of the vector data; the vector data in the processing process is marked as intermediate data, and the intermediate data is controlled to flow between the calculation module 12 and the storage module 13, and is not stored in the volatile memory 14 or the Flash memory 15; the processed vector data is marked as result data, and the result data is stored in the volatile memory 14 or the Flash memory 15.
[0066] In one embodiment, in a general scheme, the sampling signal processing circuit 10 includes a traditional volatile memory and a Flash memory. Therefore, the sampling signal processing circuit 10 provided in the present application may also include a volatile memory and a Flash memory. Among them, it is worth noting that in the process of processing vector data, the calculation module 12 calls the vector data in the storage module 13 at any time for processing to process and realize the function of the vectorized sampling terminal. The vector data in the processing process is marked as intermediate data, and the intermediate data is controlled to circulate between the calculation module 12 and the storage module 13, and is not stored in the volatile memory or the Flash memory. The vector data and intermediate data in the storage module 13 will not be lost even if the power is off. This solution relieves the calculation pressure of the calculation module 12, reduces the delay of data processing, and meets the needs of real-time processing.
[0067] As for the processed vector data marking result data, the result data is stored in a volatile memory or a Flash memory. The volatile memory or the Flash memory can be used to store the processed data according to the usual design and provide it to the outside according to the demand. The specific providing method belongs to the scope of the prior art and will not be further explained.
[0068] According to the above description, the actual method flow of the present application needs to be implemented with the help of a sampling signal processing circuit 10. To clearly describe a sampling signal processing circuit 10 provided by the present application, please refer to Figure 3 .
[0069] The sampling signal processing circuit 10 provided in the present application includes: a conversion module 11, a calculation module 12 and a storage module 13. The calculation module 12 is connected to the conversion module 11 and the storage module 13 respectively; the conversion module 11 is configured to convert the input analog signal into a digital signal and provide it to the calculation module 12 for processing; the calculation module 12 is composed of a processor designed with a reduced instruction set architecture, and is configured to calibrate the digital signal to obtain a calibration signal, and send it to the storage module 13 for storage and processing; the storage module 13 is composed of a non-volatile memory 14, and is configured to perform vector calculation processing on the sent calibration signal, and store the vector data obtained by the calculation processing.
[0070] In one embodiment, the calculation module 12 can be connected to the conversion module 11 and the storage module 13 respectively through a serial high-speed interface for transmitting data. The conversion module 11 can be specifically an analog-to-digital (AD) acquisition circuit. It can be used to convert the acquired analog signal into a digital signal. The conversion module 11 can specifically include but is not limited to successive approximation ADC, flash ADC, integrating ADC and Sigma-Delta ADC. These conversion modules 11 have their own advantages and disadvantages and scope of application according to different application requirements. Therefore, when the conversion module 11 is specifically selected, factors such as the bandwidth, resolution, speed, power consumption and system cost of the signal need to be considered according to the actual situation, and no specific restrictions are made here.
[0071] In one embodiment, the storage module 13 is composed of a phase change memory; the processor used by the computing module 12 is designed based on the RISC-V instruction set architecture.
[0072] In one embodiment, the storage module 13 may specifically be a phase change memory PCRAM. Phase change memory PCRAM has the advantages of fast reading speed, low static power consumption, long cycle life, strong scalability, and high reliability. Applying PCRAM to the vectorized acquisition storage and calculation integrated device 20, which integrates data storage and calculation, will effectively alleviate the pressure of calculation of the calculation module 12 and reduce the delay of the traditional computing technology architecture. PCRAM has the performance of fast read / write and non-volatile storage, and the calibration signal is transmitted to the storage module 13 composed of PCRAM. PCRAM quickly stores the current calibration signal, performs calculations, and stores the calculation results in PCRAM. The calculation module 12 calls the processed sampled data from PCRAM according to the application function requirements.
[0073] In one embodiment, the computing module 12 can be based on various processor microarchitectures designed based on the RISC-V architecture, which is referred to as RISC-V SoC in this application. The computing module 12 can perform a calibration operation on the digital signal obtained from the conversion module 11. The calibration operation usually involves adjusting the input signal or certain parameters inside the processor to ensure correct and reliable processing of data. These calibration operations may include the following aspects: clock calibration, input / output calibration, and signal integrity calibration. The steps performed by the conversion module 11, the computing module 12, and the storage module 13 have been described in detail in the previous method. Please refer to the previous text for details, and no further details will be given here.
[0074] In one embodiment, the sampling signal processing circuit 10 also includes a volatile memory 14 and a Flash memory 15, the volatile memory 14 temporarily stores the data being processed; the Flash memory 15 is used to fixedly store the processed data; during the vector calculation processing, the calibration data and / or vector data will not be cached in the volatile memory 14 or the Flash memory 15.
[0075] In one embodiment, the volatile memory 14 and the Flash memory 15 are just common designs for compatibility, that is, only the processed vector data will be stored in the volatile memory 14 or the Flash memory 15. During the vector calculation process, the calibration data and / or the vector data will not be cached in the volatile memory 14 or the Flash memory 15. Therefore, the processing of the vector data is all performed in the storage module 13, and there is no need to circulate in the calculation module 12 and the traditional volatile memory 14 or the Flash memory 15, thereby improving the data processing efficiency.
[0076] Furthermore, the present application also provides a vectorized acquisition, storage and calculation integrated device 20, including a front-stage input circuit 21, and a sampling signal processing circuit 10 as provided above. In order to clearly describe the vectorized acquisition, storage and calculation integrated device 20 provided by the present application, please refer to Figures 4 to 7 To understand the overall architecture of the vectorized acquisition, storage and computing integrated device 20, please refer to Figure 7 The specific structure of the vectorized data acquisition, storage and calculation integrated device 20 may be a current or voltage acquisition device, and there is no limitation to this.
[0077] like Figure 4 As shown, the vectorized acquisition storage and calculation integrated device 20 includes a front-stage input circuit 21 and a sampling signal processing circuit 10. The structure of the sampling signal processing circuit 10 has been described in detail in the previous text, and will not be repeated here. In addition, the sampling signal processing circuit 10 is used to execute the method provided in the previous text, and the corresponding method is also described in detail in the previous text, which will not be expanded here.
[0078] For the front-stage input circuit 21, please refer to Figure 5-6 The front-stage input circuit 21 is connected to the sampling signal processing circuit 10, and is used to obtain the original sampling data and then process it into an analog signal and output it to the sampling signal processing circuit 10. Specifically, refer to Figure 5 In one embodiment, the front-stage input circuit 21 includes: the front-stage input circuit 21 includes an acquisition module 22 and a preprocessing module 23; the acquisition module 22 is used to obtain original sampling data; the preprocessing module 23 is used to process the original sampling data into an analog signal.
[0079] In one embodiment, the acquisition module 22 may be a mutual inductor, which can be used to measure electrical quantities such as current, voltage, power, etc. It may generally be composed of two or more coils, one of which is called a main coil, and the other or other coils are called secondary coils. The main coil and the secondary coil affect each other through magnetic field coupling.
[0080] In one embodiment, the preprocessing module 23 includes a filtering circuit 24 and an amplifying circuit 25; the filtering circuit 24 is used to filter the original sampling data to filter out valid data; the amplifying circuit 25 is used to amplify the valid data according to a preset ratio and mark the amplified valid data as an analog signal.
[0081] In one embodiment, the relationship between the functional modules in the preprocessing module 23 can be referred to Figure 6 .like Figure 6 As shown, the filtering circuit 24 and the amplifying circuit 25 can be parallel to each other. This means that there is no need to decide which comes first and which comes later. It can be filtering first and then amplifying, or vice versa. However, it is worth noting that the data processing must be processed one by one. In a preferred embodiment, the original sampling data collected by the acquisition module 22 can be processed by the filtering circuit 24 and the amplifying circuit 25 one by one to obtain an analog signal for sending to the sampling signal processing circuit 10. The filtering circuit 24 is used to filter the original sampling data to filter out valid data; the amplifying circuit 25 is used to amplify the valid data according to a preset magnification, and mark the amplified valid data as an analog signal.
[0082] Therefore, the present application innovatively designs a sampling signal processing circuit, so that the sampling value calculation and storage are integrated in the storage module, which alleviates the calculation pressure of the calculation module. And the storage module is composed of non-volatile memory, so during the vector calculation process, the storage and processing processes are executed by the storage module. There is no need to cache in other storage modules separately, so that the data is repeatedly read in the calculation module and the memory, reducing the delay of data processing and meeting the needs of real-time processing.
[0083] In one embodiment, the present application further proposes a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the processor executes the steps of the aforementioned method.
[0084] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0085] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0086] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A vector data storage method, It is characterized in that Applied to this kind of sampling signal processing circuit; The sampling signal processing circuit comprises: a conversion module, a calculation module and a storage module; the calculation module is connected to the conversion module and the storage module respectively; The method comprises: After the conversion module obtains the analog signal, it converts the analog signal into the digital signal and sends it to the calculation module; The calculation module performs a calibration operation on the digital signal to obtain the calibration signal, and sends the calibration signal to the storage module; The storage module performs vector calculation processing on the calibration signal sent, and stores the vector data obtained by the calculation processing.
2. The vector data storage and calculation method according to claim 1, It is characterized in that The storage module performs vector calculation processing on the sent calibration signal, including: Assuming the number of sampling points per cycle is N, the sampling voltage and the sampling current in the calibration signal are obtained; the real part of the sampling voltage, the imaginary part of the sampling voltage, the real part of the sampling current and the imaginary part of the sampling current are calculated according to the number of sampling points, the sampling voltage and the sampling current, respectively. The calculation process includes: Among them, U k is the sampling voltage, I k is the sampling current; ReU is the real part of the sampling voltage; ImU is the imaginary part of the sampling voltage; ReI is the real part of the sampling current; ImI is the imaginary part of the sampling current; k represents a point in a cycle; The vector data is calculated according to the real part of the sampled voltage, the imaginary part of the sampled voltage, the real part of the sampled current and the imaginary part of the sampled current, and the vector data includes voltage amplitude, current amplitude, voltage angle and current angle.
3. The vector data storage and calculation method according to claim 2, It is characterized in that The calculating and obtaining the vector data according to the real part of the sampled voltage, the imaginary part of the sampled voltage, the real part of the sampled current and the imaginary part of the sampled current comprises: The voltage amplitude at the sampling point is calculated according to the real part of the sampled voltage and the imaginary part of the sampled voltage, and the calculation process is: The current amplitude at the sampling point is calculated according to the real part of the sampling current and the imaginary part of the sampling current, and the calculation process is: The voltage angle of the sampling point is calculated according to the real part of the sampled voltage and the imaginary part of the sampled voltage, and the calculation process is: The current pressure angle of the sampling point is calculated according to the real part of the sampling current and the imaginary part of the sampling current, and the calculation process is: Wherein, U is the voltage amplitude; I is the current amplitude; ∠θ u is the voltage angle; ∠θ i is the current angle.
4. The vector data storage and calculation method according to claim 1, It is characterized in that The sampling signal processing circuit also includes a volatile memory and a Flash memory; After storing the vector data obtained through calculation, the method further includes: The calculation module reads the vector data from the storage module, and implements functional processing of the vectorized sampling terminal according to processing of the vector data; Marking the vector data in the processing process as intermediate data, controlling the intermediate data to circulate between the calculation module and the storage module, and not storing the intermediate data in the volatile memory or the Flash memory; The processed vector data is marked as result data, and the result data is stored in the volatile memory or the Flash memory.
5. A sampling signal processing circuit, It is characterized in that include: conversion module, calculation module and storage module; The calculation module is connected to the conversion module and the storage module respectively; The conversion module is configured to convert the input analog signal into a digital signal and provide the digital signal to the calculation module for processing; The computing module is composed of a processor designed with a reduced instruction set architecture, and is configured to calibrate the digital signal to obtain a calibration signal, and send the calibration signal to the storage module for storage and processing; The storage module is composed of a non-volatile memory and is configured to perform vector calculation processing on the sent calibration signal and store the vector data obtained by the calculation processing.
6. The sampling signal processing circuit according to claim 5, It is characterized in that The storage module is composed of a phase change memory; The processor used in the computing module is designed based on the RISC-V instruction set architecture.
7. The sampling signal processing circuit according to claim 5, It is characterized in that The sampling signal processing circuit further includes a volatile memory and a Flash memory, wherein the volatile memory temporarily stores the data being processed; and the Flash memory is used to fixedly store the processed data; During the vector calculation process, the calibration data and / or the vector data will not be cached in the volatile memory or the Flash memory.
8. A vector collection, storage and calculation integrated device, It is characterized in that It comprises a front-stage input circuit and a sampling signal processing circuit as claimed in any one of claims 5 to 7; The sampling signal processing circuit is used to execute the method described in any one of claims 1 to 4; The front-stage input circuit is connected to the sampling signal processing circuit and is used for acquiring original sampling data and then processing it into analog signals and outputting them to the sampling signal processing circuit.
9. The vector collection, storage and calculation integrated device as claimed in claim 8, It is characterized in that The front-stage input circuit includes: an acquisition module and a pre-processing module; The acquisition module is used to obtain the original sampling data; The preprocessing module is used for processing the original sampling data into the analog signal.
10. The vector collection, storage and calculation integrated device according to claim 9, It is characterized in that The preprocessing module includes a filtering circuit and an amplifying circuit; The filtering circuit is used to filter the original sampled data to select valid data therefrom; The amplifying circuit is used to amplify the valid data according to a preset magnification, and mark the amplified valid data as the analog signal.
Citation Information
Patent Citations
Digital oscilloscope multi-channel ADC cross sampling circuit with automatic calibration function and calibration method thereof
CN112067868A
Power chip nanometer relay capable of realizing serial-parallel cooperation
CN115036895A
Data acquisition, storage and calculation integrated solid-state memory
CN115599725A
Visible light remote sensing intelligent computing system based on sensing, storage and computing integration
CN116662253A
Methods and apparatus to increase an integrity of mismatch corrections of an interleaved analog to digital converter
US20160344400A1
