A functional arbitration device and logic design method for a digital acquisition module
By designing a functional arbitration device for the digital acquisition module, the problem of the module's monotonous functionality was solved, enabling arbitration of multiple trigger modes and storage timings, thereby improving the flexibility and efficiency of data acquisition and storage.
Patent Information
- Application Number
- CN202210944735.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-08
- Publication Date
- 2025-12-05
- Estimated Expiration
- 2042-08-08
AI Technical Summary
Current digital acquisition modules have relatively limited functionality and lack an arbitration scheme that integrates various trigger modes and storage timings, thus failing to meet diverse waveform acquisition needs.
Design a functional arbitration device for a digital acquisition module, including an acquisition module, a state machine, and a data control module. The state machine parses trigger signals and data signals for arbitration, and the data control module controls data storage. It supports pre-trigger, post-trigger, single/repetitive modes, and memory partitioning functions.
It enables arbitration of multiple data storage modes and different data acquisition timings, supports data acquisition and storage control with multiple trigger modes, and improves the flexibility and efficiency of data acquisition and storage.
Smart Images

Figure CN115344516B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the signal arbitration technology field of oscillograph, and particularly to a digital acquisition technology. BACKGROUND
[0002] At present, most of the domestic digital acquisition modules still draw lessons from the design concept of oscilloscope, and have not yet distinguished the storage function from the trigger function of the oscilloscope. That is to say, the stored waveform is still a segment of waveform stored when the set trigger condition is met. However, the digital acquisition module applied on the actual oscillograph can store under different conditions according to different trigger time, such as starting with trigger, ending with trigger or starting with the first trigger and ending with the second trigger. The function of the data acquisition module is relatively monotonous, most of which only has pre-trigger, post-trigger and other functions, and lacks an arbitration scheme that can integrate various trigger modes, storage time and different waveform acquisition. SUMMARY
[0003] The present application solves the problem that the function of the data acquisition module is relatively monotonous, most of which only has pre-trigger, post-trigger and other functions, and lacks an arbitration scheme that can integrate various trigger modes, storage time and different waveform acquisition.
[0004] The present application provides a function arbitration device of a digital acquisition module, which comprises:
[0005] an acquisition module, a state machine and a data control module;
[0006] The acquisition module is configured to acquire configuration signals, trigger signals and data signals, and transmit the acquired signals to the state machine;
[0007] The state machine is configured to analyze the received configuration signals, and analyze and arbitrate the data according to the received trigger signals and data signals, to obtain the data after arbitration;
[0008] The data control module is configured to interact with the state machine, and control the state machine to store the data after arbitration.
[0009] Further, a preferred embodiment is provided, wherein the acquisition module comprises a transient waveform acquisition unit, an envelope waveform acquisition unit and a double-capture waveform acquisition unit;
[0010] The transient waveform acquisition unit is configured to acquire the waveform data in real time and directly store the waveform data;
[0011] The envelope waveform acquisition unit is configured to acquire the maximum value and the minimum value in the waveform data every fixed time, and store the waveform composed of the maximum value and the minimum value;
[0012] The dual-capture waveform acquisition unit is configured to store the instantaneous waveform, and when a trigger signal is generated during the storage of the instantaneous waveform, the storage mode of the envelope waveform acquisition unit is converted to store.
[0013] Further, the application also provides a preferred embodiment, wherein the acquisition unit further comprises a Start storage timing module, a stop storage timing module and a start & stop storage timing module.
[0014] The Start storage timing module is configured to start storage from the first acquired trigger signal and stop running when a preset number of points is reached or a stop command is received.
[0015] The stop storage timing module is configured to start running according to a start command, and stop running when a first trigger signal is acquired or a preset number of points is reached.
[0016] The start & stop storage timing module is configured to start running according to a start command or a first trigger signal is acquired, and stop running when a second trigger signal is acquired, a stop command is received or a preset number of points is reached.
[0017] Further, the application also provides a preferred embodiment, wherein the state machine is configured to analyze a configuration signal, and the state machine comprises:
[0018] determining the type of the acquired signal;
[0019] processing the sampling information according to the type of the signal.
[0020] Further, the application also provides a preferred embodiment, wherein the data analysis and arbitration are performed according to the acquired trigger signal and data signal, and the data analysis and arbitration specifically comprise:
[0021] determining a storage timing module of the trigger signal;
[0022] The Start storage timing module outputs a Trigger signal, and the state machine receives the Trigger signal and outputs data until a preset recording length is reached.
[0023] The stop storage timing module outputs a START signal, and the state machine receives the START signal and outputs data until a second trigger signal is acquired or a preset recording length is reached.
[0024] The start & stop storage timing module outputs a signal, and the state machine receives the START signal and outputs data until a STOP signal is received or a preset recording length is reached.
[0025] Further, the data control module comprises: a point number counter of the time transient / trend waveform data storage, a trigger point number counter, a double sampling transient waveform point number counter, a post-trigger point number counter and a pre-trigger point number counter;
[0026] The point number counter of the time transient / trend waveform storage is used to record the sampling point number of the trend waveform data or the transient waveform data in the normal mode.
[0027] The trigger point number counter is used to determine whether the number of triggers reaches the number of memory division settings in the double sampling mode, and if the number of memory division settings is reached, the previous stored number is invalidated by receiving a new trigger.
[0028] The double sampling transient waveform point number counter is used to record the transient waveform sampling point number after the trigger in the double sampling mode.
[0029] The post-trigger point number counter is used to pull high the output when the output point number meets the post-trigger setting point number within the time after receiving the Post_trigger_stop in the post-trigger mode.
[0030] The pre-trigger point number counter is used to pull high the output when the output point number meets the pre-trigger setting point number within the time after the signal enable Sa_en in the pre-trigger mode.
[0031] The application further provides a functional arbitration logic design method of a digital acquisition module, which is realized based on the arbitration device.
[0032] Acquire the configuration signal, the trigger signal and the data signal, and transmit the acquired signals to the state machine.
[0033] Analyze the received configuration signal, analyze and arbitrate the data according to the received trigger signal and the data signal, obtain the data after arbitration, and store the data.
[0034] The data control module interacts with the state machine data, and is further used to control the state machine to store the data after arbitration.
[0035] Further, the data control module comprises: a point number counter of the time transient / trend waveform data storage, a trigger point number counter, a double sampling transient waveform point number counter, a post-trigger point number counter and a pre-trigger point number counter;
[0036] Determine the mode of the configuration signal.
[0037] According to the signal mode, preset sampling data points reach the record length signal.
[0038] The application further provides a computer device comprising a memory and a processor, wherein the memory stores a computer program, and when the processor runs the computer program stored in the memory, the processor executes the function arbitration logic design method of the digital acquisition module.
[0039] The application further provides a computer readable storage medium for storing a computer program, wherein the computer program executes the function arbitration logic design method of the digital acquisition module.
[0040] The application has the advantages that:
[0041] The application solves the problem that the functions of the data acquisition module are monotonous, most of which only have pre-trigger and post-trigger functions, and lack an arbitration device that can integrate various trigger modes, storage opportunities and different waveform acquisition.
[0042] The function arbitration device of the digital acquisition module can realize arbitration on various data storage modes, different data acquisition opportunities and various trigger modes, so as to realize control on data acquisition and storage.
[0043] The function arbitration device of the digital acquisition module provided by the application outputs storage control signals and data control signals at the same time through state jump control and data control, so that subsequent modules only need to wait for start storage, end storage instructions and data signals to perform data storage.
[0044] The function arbitration device of the digital acquisition module provided by the application realizes data acquisition and storage control, analyzes and arbitrates configuration signals input by a user in combination with trigger signals and data signals by a state machine, and thus controls data storage that has completed arbitration by a data control module. The arbitration device supports pre-trigger, post-trigger, single / repeat mode and memory segmentation functions.
[0045] The application is suitable for the field of signal processing of an oscillograph. BRIEF DESCRIPTION OF DRAWINGS
[0046] Figure 1 The function arbitration device of the application realizes a logic block diagram;
[0047] Figure 2 The state machine state transition diagram of the arbitration device of the application;
[0048] Figure 3 The data control module of the application realizes a schematic diagram. DETAILED DESCRIPTION
[0049] In order to make the technical solutions and advantages of the present application clearer, several embodiments of the present application will be described in further detail in conjunction with the accompanying drawings, but the following described embodiments are only several preferred embodiments of the present application and are not used to limit the present application.
[0050] Embodiment one, see Figure 1 The present embodiment is described. The function arbitration device of a digital acquisition module in the present embodiment comprises:
[0051] an acquisition module, a state machine and a data control module;
[0052] The acquisition module is used to acquire configuration signals, trigger signals and data signals and transmit the acquired signals to the state machine;
[0053] The state machine is used to analyze the received configuration signals and analyze and arbitrate the data according to the received trigger signals and data signals to obtain the data that has completed arbitration;
[0054] The data control module is used to interact with the state machine and is also used to control the storage of the data that has completed arbitration by the state machine.
[0055] Specifically, the device in the present embodiment realizes the acquisition and storage control of data, analyzes and arbitrates the configuration signals input by the user by the state machine in combination with the trigger signals and data signals, so as to control the storage of the data that has completed arbitration by the data control module.
[0056] Embodiment two, the present embodiment is a further limitation of the function arbitration device of a digital acquisition module in embodiment one, and the acquisition module comprises: a transient waveform acquisition unit, an envelope waveform acquisition unit and a double-capture waveform acquisition unit;
[0057] The transient waveform acquisition unit is used to directly store the waveform data acquired in real time;
[0058] The envelope waveform acquisition unit is used to acquire the maximum value and the minimum value in the waveform data every fixed time and store the waveform composed of the maximum value and the minimum value;
[0059] The double-capture waveform acquisition unit is used to store the transient waveform data in the normal mode, and when the trigger signal is acquired in the process of storing the transient waveform data, it is converted into the envelope waveform acquisition unit for storage.
[0060] Embodiment three, the embodiment is further limited to the function arbitration device of the digital acquisition module of embodiment one, the acquisition unit further includes: start storage opportunity module, stop storage opportunity module and start & stop storage opportunity module;
[0061] The start storage opportunity module is configured to start storage from the first trigger signal and stop storage until a preset number of points is reached or a stop command is received.
[0062] The stop storage opportunity module is configured to execute a start command and stop storage until a first trigger signal is received or a preset number of points is reached.
[0063] The start & stop storage opportunity module is configured to execute a start command or receive a first trigger signal to start storage, and stop storage until a second trigger signal is received, a stop command is received or a preset number of points is reached.
[0064] Specifically, the embodiment is described in combination with embodiment two. The start storage opportunity module, the stop storage opportunity module and the start & stop storage opportunity module further include pre-trigger, post-trigger and trigger priority functions. The pre-trigger refers to setting a percentage of data to be stored in advance before a trigger starts in a start mode (i.e., the start storage opportunity module is running), a start & stop mode (i.e., the start & stop storage opportunity module is running) or a double capture mode. When the trigger starts, the remaining percentage of data is stored. The post-trigger refers to setting a percentage of data to be stored after a stop condition is met in a stop mode (i.e., the stop storage opportunity module is running) or a start & stop mode (i.e., the start & stop storage opportunity module is running). The trigger priority is to wait for the pre-trigger to arrive. If the percentage of data set by the pre-trigger has not been stored, the operation is selected as follows: when the trigger priority is turned on, the trigger is accepted even if the percentage of data set by the pre-trigger has not been stored, and the subsequent normal sampling mode is entered. When the trigger priority is turned off, only the trigger after the percentage of data set by the pre-trigger is stored is accepted.
[0065] The acquisition unit further includes a single / repeated trigger setting module. When the single trigger setting module is in a mode value, the above-mentioned three storage opportunity modules are triggered once and storage is stopped. When the repeated trigger setting module is in a mode value, the above-mentioned three storage opportunity modules are triggered for a set number of times.
[0066] The acquisition unit further comprises a memory segmentation module, which is configured to set a memory segmentation block number and a start-stop point, and to store the signal multiple times within the memory segmentation block number available for user selection.
[0067] Embodiment four, the embodiment is a further limitation of the function arbitration device of the digital acquisition module of embodiment one, the state machine is used for analyzing the configuration signal, comprising:
[0068] judging the signal type of acquisition;
[0069] processing the sampling information according to the signal type.
[0070] Specifically, the state analysis of the sampling signal needs to be performed:
[0071] The sampling enable Sa_en means that the sampling module starts to work and triggers, but no data is stored in the DDR. The sampling enable is a command signal issued by the system and does not need to be analyzed.
[0072] The sampling start Bank_start (samp_en) means that the sampling point is stored in the DDR, and subsequent uploading and other operations are performed.
[0073] The sampling stop Bank_stop (samp_end) means that the storage of the sampling point in the DDR is stopped.
[0074] Embodiment five, see Figure 2 This embodiment is a further limitation of the function arbitration device of the digital acquisition module of embodiment three, the data analysis and arbitration according to the acquisition trigger signal and the data signal, specifically:
[0075] judging the storage timing module of the trigger signal;
[0076] The Start storage timing module outputs the Trigger signal, the state machine receives the Trigger trigger signal and outputs data, and the output of data ends when the preset recording length is reached;
[0077] The stop storage timing module outputs the START signal, the state machine receives the START trigger signal and outputs data, and the output of data ends when the second trigger signal is acquired or the preset recording length is reached;
[0078] The start & stop storage timing module outputs the signal, the state machine receives the START trigger signal and outputs data, and the output of data ends when the STOP trigger signal is received or the preset recording length is reached.
[0079] Embodiment six, see Figure 3 The present embodiment is a further limitation of the function arbitration device of the digital acquisition module of embodiment one, the data control module comprises: a Trend / Realtime Wave Points Counter, a Trigger Points Counter, a Double Sampling Realtime Wave Points Counter, a Post Trigger Points Counter and a Pre Trigger Points Counter;
[0080] The Trend / Realtime Wave Points Counter is used to record the sampling points of the trend waveform data or the realtime waveform data in normal mode.
[0081] The Trigger Points Counter is used to determine whether the number of triggers reaches the number of memory division settings in double sampling mode, if the number of triggers reaches the number of memory division settings, the previous stored number of times is invalidated when the new trigger is received.
[0082] The Double Sampling Realtime Wave Points Counter is used to record the sampling points of the realtime waveform after the trigger in double sampling mode.
[0083] The Post Trigger Points Counter is used to pull high the output when the number of outputs satisfies the number of post trigger settings within the time after receiving Post_trigger_stop in post trigger mode.
[0084] The Pre Trigger Points Counter is used to pull high the output when the number of outputs satisfies the number of pre trigger settings within the time after the signal enable Sa_en in pre trigger mode.
[0085] Specifically, the Trend / Realtime Wave Points Counter is used to record the sampling points of the trend waveform or the realtime waveform in normal mode: after starting sampling, the number of inputs of the trend waveform is counted, when the number of data inputs reaches SampNumMax[30:0] or the STOP signal enters, the counting is stopped and the output is pulled high. When the sampling rate is set to double sampling mode, the counter is responsible for the sampling points of the double sampling trend waveform.
[0086] The Trigger Num Counter is used to determine whether the number of triggers reaches the number of memory partitions. If the number of triggers reaches the number of memory partitions, the new trigger is invalid. When the number of triggers is greater than the number of memory partitions, the trigger is invalid. When the number of triggers does not reach the number of memory partitions, if the trend waveform storage is full (the trend waveform storage counter is full), the number of triggers is cleared. When a sampling is restarted, the trigger counter is cleared.
[0087] The Realtime Wave Points Num Counter is used to record the number of instantaneous waveforms after a trigger in the double sampling mode. When a trigger is triggered and valid (whether the trigger is valid is determined according to the Trigger Num Counter), the counting starts. The maximum value of the counting needs to be calculated according to the number of channels and the number of memory partitions. If a new trigger is received during the output of the instantaneous waveform, the counter of the module is reset. When the double-channel sampling is started, the maximum number of memory partitions of a single channel is 512. 1 GB / 2 / 512 = 1 MB of memory for each partition = 2M pts. When the single-channel sampling is started, the maximum number of memory partitions of a channel is 1024. 1 GB / 1024 = 1 MB of memory for each partition = 2M pts. When the counter reaches the maximum value, the output is pulled high.
[0088] The Post Trigger Points Counter is used to pull the output high when the number of points output within the time after receiving the Post_trigger_stop reaches the number of points set by the post trigger.
[0089] The Pre Trigger Points Counter is used to pull the output high when the number of points output within the time after the signal enable Sa_en reaches the number of points set by the pre trigger.
[0090] Embodiment seven, a method for designing a function arbitration logic of a digital acquisition module, the method is realized based on the arbitration device in any one of embodiments one to six, and the method comprises the following steps:
[0091] acquiring a configuration signal, a trigger signal and a data signal, and transmitting the acquired signals to a state machine;
[0092] The received configuration signal is parsed, and data analysis and arbitration are performed according to the received trigger signal and data signal, the data after arbitration is obtained, and data storage is performed.
[0093] The data control module interacts with the state machine data, and is further configured to control the state machine to store the data after arbitration.
[0094] Embodiment eight, the embodiment is a further limitation of the function arbitration logic design method of the digital acquisition module of embodiment seven, and the parsing configuration signal comprises:
[0095] Judging the mode of the configuration signal;
[0096] According to the signal mode, the preset sampling data point reaches the record length signal.
[0097] Embodiment nine, the computer device comprises a memory and a processor, the memory stores a computer program, and when the processor runs the computer program stored in the memory, the processor executes the function arbitration logic design method of the digital acquisition module according to embodiment seven.
[0098] Embodiment ten, the computer readable storage medium stores a computer program, and the computer program executes the function arbitration logic design method of the digital acquisition module according to embodiment seven.
[0099] Embodiment eleven, see Figure 2 This embodiment is a specific description of the function arbitration device and logic design method of the digital acquisition module provided by the application, which is specific to:
[0100] The function arbitration device comprises:
[0101] The acquisition module, the state machine and the data control module;
[0102] The acquisition module is configured to acquire configuration signals, trigger signals and data signals, and transmit the acquired signals to the state machine;
[0103] The state machine is configured to parse the configuration signal, and perform data analysis and arbitration according to the received trigger signal and data signal, and obtain the data after arbitration;
[0104] The data control module is configured to interact with the state machine data, and is further configured to control the state machine to store the data after arbitration.
[0105] Specifically, the state machine can receive user configuration conditions and modes, and take the number of data points and triggers as input signals to control the time of storing data.
[0106] As shown in the following Figure 2 The state transition diagram of the state machine of the arbitration device is shown in the figure, and the MEALY type state machine is used. The state machine includes a STOP key and a START key. The STOP key is used to terminate storage, and the START key is used to start storage. The conditions and outputs at the time of state transition are marked in the figure. The change of the input signal directly affects the value of the output.
[0107] In the figure, the state analysis of the input signal includes:
[0108] Start_Stop_time_mode[1:0]: 00 start mode; 01 stop mode; 11 start & stop mode;
[0109] Single_repet_mode: 0 single mode; 1 repeat mode;
[0110] Trigger: input trigger signal;
[0111] START_TRIGGER, STOP_TRIGGER: signals of the keys issued from the upper computer;
[0112] Sa_en: sampling enable signal issued from the system;
[0113] Samp_num_reach_max: signal that the sampling data points from the coarse trigger module reach the set recording length.
[0114] It also includes the state analysis of sampling:
[0115] The sampling enable Sa_en means that the sampling module starts to work and will also generate a trigger, but there is no data stored in the DDR. The sampling enable is a command signal issued from the system and does not need to be analyzed.
[0116] The sampling start Bank_start (samp_en) means that the sampling points are stored in the DDR, and subsequent uploading and other operations.
[0117] The sampling stop Bank_stop (samp_end) means to stop storing sampling points in the DDR.
[0118] It also includes the judgment of the start and stop of sampling, that is, the analysis and arbitration of data according to the collected trigger signal and data signal
[0119] 1. The trigger timing sequence Start_Stop_time_mode[1:0] is determined: 00 start mode; 01 stop mode; 11 start & stop mode.
[0120] 2. If it is start mode, the data is outputted when the trigger signal is received, and the output is stopped when the set record length is reached (the record length is the length of one sample set); if it is stop mode, the data is outputted when the START trigger signal is received, and the output is stopped when the trigger time or the set record length is reached; if it is start & stop mode, the data is outputted when the START trigger signal is received, and the output is stopped when the STOP trigger signal is received or the set record length is reached.
[0121] The data control module is used to control the storage of the data that has completed arbitration by the state machine and the collection of the data by the auxiliary control state machine.
[0122] As shown in Figure 3 The data control module is composed of five different counters. The five counters are respectively a trend / realtime wave points counter, a trigger num counter, a double sampling trend wave points counter, a post-trigger points counter and a pre-trigger points counter. The input signals of the data control module include the control start and end signals transmitted by the main state machine, and meanwhile, the results generated by the counters affect the judgment conditions of the state machine jump in return.
[0123] The trend / realtime wave points counter is used to record the sampling points of the trend wave or the realtime wave in the normal mode: after the sampling is started, the number of the trend wave inputs is counted, and when the number of the data inputs reaches SampNumMax[30:0] or the STOP signal is entered, the counting is stopped and the output is pulled high. When the sampling rate is set as the double sampling mode, the counter is responsible for the sampling points of the double sampling trend wave.
[0124] The trigger num counter is used to determine whether the number of the trigger reaches the number of memory division setting in the double sampling, and if it reaches the number of memory division setting, the new trigger is invalid: when the number of the trigger in one sampling is greater than the number of memory division, the trigger at this time is invalid; when the number of the trigger does not reach the number of memory division, if the trend wave storage is full (the trend wave storage amount counter shows full), the number of the trigger is cleared; when the one sampling is restarted, the trigger counter is cleared.
[0125] Realtime Wave Points Num Counter The function of the double-sampling instantaneous waveform point number counter is to record the number of instantaneous waveform sampling points after triggering in double-sampling when the sampling mode is set to double-sampling. When there is a trigger in double-sampling and it is valid (whether the trigger is valid is determined according to Trigger Num Counter), the counting starts, and the maximum value of the counting needs to be calculated according to the number of channel openings and the number of memory partitions. If there is a new trigger during the output of the instantaneous waveform, the counter of this module is reset. When the double-channel sampling is started, the maximum number of single-channel memory partitions is 512: 1 GB / 2 / 512 = 1 MB of memory for each partition = 2M pts. When the single-channel sampling is started, the maximum number of channel memory partitions is 1024: 1 GB / 1024 = 1 MB of memory for each partition = 2M pts. When the counter reaches the maximum value, the output is pulled high.
[0126] Post Trigger Points Counter The function of the post-trigger point number counter is to pull high the output when the number of points output within the time after receiving the Post_trigger_stop meets the number of points set by the post-trigger.
[0127] Pre Trigger Points Counter The function of the pre-trigger point number counter is to pull high the output when the number of points output within the time after the signal enable Sa_en meets the number of points set by the pre-trigger.
[0128] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROMs, optical storage, etc.) containing computer-usable program code.
[0129] The computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks. Figure 1 one or more flow or blocks Figure 1 one or more flow or blocks
[0130] These computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture including instructions which implement the function specified in the flowchart block or blocks. Figure 1 one or more flow or blocks Figure 1 one or more flow or blocks
[0131] The computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks. Figure 1 one or more flow or blocks Figure 1 one or more flow or blocks
[0132] The above detailed description merely describes preferred embodiments of the application, and is not intended to limit the application. Any modification, combination, combination, equivalent replacement and improvement made within the spirit and principle of the application should be included in the protection scope of the application.
Claims
1. A functional arbitration device for a digital acquisition module, characterized in that, The device comprises: a collection module, a state machine and a data control module; the collection module is configured to collect configuration signals, trigger signals and data signals, and transmit the collected signals to the state machine; the state machine is configured to analyze and arbitrate the data according to the received trigger signals and data signals, obtain the data after arbitration, and store the data; the data control module is configured to interact with the state machine, and control the state machine to store the data after arbitration; the collection module further comprises a Start storage timing module, a stop storage timing module and a start & stop storage timing module; the Start storage timing module is configured to start storage from the first trigger signal, and stop running until a preset point number is reached or a stop command is received; the stop storage timing module is configured to execute a start command, and stop running until a first trigger signal is obtained or a preset point number is reached; the start & stop storage timing module is configured to execute a start command or obtain a first trigger signal to start running, and stop until a second trigger signal is obtained, a termination command is received or a preset point number is reached; the Start storage timing module, the stop storage timing module and the start & stop storage timing module further comprise a pre-trigger, a post-trigger and a trigger priority function, the pre-trigger refers to setting a percentage of data to be stored in advance before the trigger starts in the start mode, i.e. the Start storage timing module is running, the start & stop mode, i.e. the start & stop storage timing module is running, or the double capture mode, and the remaining percentage of data is stored when the trigger starts; the post-trigger refers to setting a percentage of data to be stored after the stop condition is met in the stop mode, i.e. the stop storage timing module is running, or the start & stop mode, i.e. the start & stop storage timing module is running; the trigger priority refers to the operation of selecting the trigger priority to be turned on when the pre-trigger is not reached, i.e. even if the percentage of data set by the pre-trigger is not stored, the trigger is accepted to start the subsequent normal sampling mode; the trigger priority is turned off, i.e. only the trigger after the percentage of data set by the pre-trigger is stored is accepted; the collection module further comprises a single / repeated trigger setting module, the single trigger setting module has a mode value of one trigger in the above three storage timing modules, and the storage is stopped; the repeated mode value is a storage operation of a set number of times in the above three storage timing modules; the collection module further comprises a memory segmentation module, the memory segmentation module is configured to set a memory segmentation block number and a start and end, and multiple storage operations are performed in the memory segmentation blocks selected by a user; in the double capture mode, the number of memory segmentation blocks represents the number of instantaneous waveforms that can be stored in the double capture mode. The analysis and arbitration of data according to the collected trigger signal and data signal, specifically comprising: a storage time point judgment module of the trigger signal; The Start storage time point module outputs the Trigger signal, and the state machine receives the Trigger signal and outputs data until the preset recording length is reached to end the output of data; The stop storage time point module outputs the START signal, and the state machine receives the START signal and outputs data until the second trigger signal is obtained or the preset recording length is reached to end the output of data; The start & stop storage time point module outputs the signal, and the state machine receives the START signal and outputs data until the STOP trigger signal is received or the preset recording length is reached to end the output of data; The data control module comprises: a data point number counter for storing instantaneous / trend waveform data, a trigger point number counter, a double-sampling instantaneous waveform point number counter, a post-trigger point number counter and a pre-trigger point number counter; The point number counter for storing instantaneous / trend waveform is used to record the sampling point number of trend waveform data or instantaneous waveform data in normal mode; The trigger point number counter is used to determine whether the number of triggers reaches the number of memory division settings in double-sampling mode, and if the number of memory division settings is reached, the new trigger is received to invalidate the number of previously stored times; The double-sampling instantaneous waveform point number counter is used to record the instantaneous waveform sampling point number after triggering in double-sampling mode; The post-trigger point number counter is used to pull high the output when the output point number meets the post-trigger setting point number within the time after receiving the Post_trigger_stop in the post-trigger mode; The pre-trigger point number counter is used to pull high the output when the output point number meets the pre-trigger setting point number within the time after the signal enable Sa_en in the pre-trigger mode; Specifically, the function of the Trend / Realtime Wave Points Counter instantaneous / trend waveform storage point number counter is to record the sampling point number of trend waveform or instantaneous waveform in normal mode: after starting sampling, the number of trend waveform inputs is counted, and when the data input reaches SampNumMax[30:0] number or the STOP signal enters, the counting is stopped and the output is pulled high; when the sampling rate is set to double-sampling mode, the counter is responsible for the sampling point number of double-sampling trend waveform. Trigger Num Counter is used to determine whether the number of triggers reaches the number of memory segmentation, if so, the new trigger is invalid: when the number of triggers is greater than the number of memory segmentation, the trigger is invalid; when the number of triggers does not reach the number of memory segmentation, if the trend waveform storage is full, the trend waveform storage counter is full, and the trigger counter is cleared; when a new sampling is started, the trigger counter is cleared; Realtime Wave Points Num Counter is used to record the number of instantaneous waveforms after the trigger in the double sampling mode: when the trigger is triggered and valid, the trigger is determined to be valid according to Trigger Num Counter, and the counting starts; the maximum value of the counting needs to be calculated according to the number of channel openings and the number of memory segmentation; if a new trigger is received during the output of the instantaneous waveform, the counter of this module is reset; when the double-channel sampling is started, the maximum number of memory segmentation of the single channel is 512; when the single-channel sampling is started, the maximum number of memory segmentation of the channel is 1024; when the counter reaches the maximum value, the output is pulled high; Post Trigger Points Counter is used to pull high the output when the number of points output in the post-trigger mode reaches the number of points set by the post trigger within the time after receiving the Post_trigger_stop; Pre Trigger Points Counter is used to pull high the output when the number of points output in the pre-trigger mode reaches the number of points set by the pre trigger within the time after receiving the signal enable Sa_en.
2. The functional arbitration apparatus of a digital acquisition module according to claim 1, wherein, The acquisition module includes: an instantaneous waveform acquisition unit, an envelope waveform acquisition unit, and a double-capture waveform acquisition unit; The instantaneous waveform acquisition unit is used to store the real-time acquired waveform data directly; The envelope waveform acquisition unit is used to acquire the maximum value and the minimum value of the waveform data every fixed time, and store the waveform composed of the maximum value and the minimum value; The double-capture waveform acquisition unit is used to store the instantaneous waveform data in the normal mode, and convert to the envelope waveform acquisition unit for storage when the trigger signal is acquired during the storage of the instantaneous waveform data.
3. The functional arbitration apparatus of claim 1, wherein, The state machine is used to analyze the configuration signal, including: determining the type of the acquired signal; processing the sampling information according to the type of the signal.
4. A method of designing a functional arbitration logic of a digital acquisition module, characterized in that, The method is realized based on the arbitration device of any one of claims 1-3, and the method includes: acquiring the configuration signal, the trigger signal, and the data signal, and transmitting the acquired signals to the state machine; The received configuration signal is parsed, and data analysis and arbitration are performed according to the received trigger signal and data signal, completed arbitrated data is obtained, and data storage is performed; The data control module interacts with state machine data, and is further configured to control storage of the completed arbitrated data by the state machine.
5. The method of claim 4, wherein the method further comprises: The parsing of the received configuration signal comprises: Judging a mode of the configuration signal; Reaching a record length signal according to preset sampling data points based on the signal mode.
6. A computer device, comprising: The memory and the processor, wherein the memory stores a computer program, and when the processor runs the computer program stored in the memory, the processor executes the function arbitration logic design method of the digital acquisition module according to claim 4.
7. A computer readable storage medium characterized in that, The computer readable storage medium is used to store a computer program, and the computer program executes the function arbitration logic design method of the digital acquisition module according to claim 4.
Citation Information
Patent Citations
Data acquisition system with waveform multi-frame recording function
CN109142835A
Signal demodulation method and device for radio communication, equipment and storage medium
CN114499560A