A method, device, computer equipment and computer readable storage medium for reducing the number of description entries of digital signals
By determining the waveform change node in the digital signal description and adopting vector description method, the problem of difficult to reduce the number of digital signal description entries in the prior art is solved, and a more compact signal description and better compression effect are achieved.
Patent Information
- Application Number
- CN202210803557.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-07
- Publication Date
- 2025-03-11
- Estimated Expiration
- 2042-07-07
AI Technical Summary
In the prior art, it is difficult to effectively reduce the number of description entries when describing digital signals, especially when processing asynchronous signals, a large number of different waveform fragments will be generated, making the number of described entries difficult to compress.
By determining the waveform change nodes of each channel, instead of segmenting them in a unified period, a vector description method is used to combine time and behavior to describe digital signals.
The effect of reducing the number of digital signal description entries is achieved, making the signal description more compact and easy to compress, and solving the problem of difficulty in asynchronous signal segmentation.
Smart Images

Figure CN115347957B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a digital signal description method, and more specifically to a method, device, computer equipment and computer-readable storage medium for reducing the number of description items of a digital signal. Background Art
[0002] In the field of ATE (Automatic Test Equipment) testing, waveforms are usually described in the form of Sequence Pattern. Figure 1 As shown, the sequence Pattern divides all signals into a unified period and describes them. A waveform is divided into 10 periods. For each slice of each channel, a symbol is used to describe it, such as: A / B / C, etc. If multiple waveform fragments in a channel are the same, the same symbol can be used to describe them. If they are different, a new symbol needs to be defined. The symbols of different channels are independent. The specific waveform fragments of each symbol of each channel need to be described in a special file.
[0003] The existing technology uses a sequence Pattern + waveform fragment description file to form a description of the entire waveform. Each symbol of each channel represents a waveform fragment of it. An example of waveform fragment description is: D0-A: falling at 0% and rising at 50%; in addition, if an asynchronous signal with a period different from other signals is added on this basis, if it is forcibly divided according to the period of other signals, a large number of different waveform fragments will be generated, because it is very likely that the position of each jump will be different in the slice, and the number of description entries is not easy to compress.
[0004] Therefore, it is necessary to design a new method to reduce the number of entries describing the digital signal for compression. Summary of the invention
[0005] The object of the present invention is to overcome the defects of the prior art and provide a method, device, computer equipment and computer-readable storage medium for reducing the number of description entries of a digital signal.
[0006] To achieve the above object, the present invention adopts the following technical solution: A method for reducing the number of description entries of a digital signal, comprising:
[0007] Obtaining the waveform of the digital signal to be described;
[0008] Determine the nodes where the waveform of each channel changes. Each channel is not divided according to a unified period, but only divided according to the change nodes.
[0009] The digital signal is described by using a vector description method combined with the change nodes of each channel to obtain a description result;
[0010] The description result is output.
[0011] A further technical solution is: the digital signal is described by combining the change nodes of each channel in a vector description manner to obtain a description result, including:
[0012] The digital signal is described by combining the change nodes of each channel in a time-behavior combination to obtain the description result.
[0013] A further technical solution is: the unit of the time is picosecond or femtosecond.
[0014] A further technical solution is: the digital signal is described by combining the time and behavior with the change nodes of each channel to obtain a description result, including:
[0015] The digital signal that defines the initial state is described as a vector at time zero;
[0016] The digital signal in non-initial state is described by combining time and behavior with the change nodes of each channel to obtain the description result.
[0017] The present invention also provides a device for reducing the number of description items of a digital signal, comprising:
[0018] An acquisition unit, used for acquiring the waveform of the digital signal to be described;
[0019] A node determination unit is used to determine the nodes where the waveform of each channel changes. Each channel is not divided according to a uniform cycle, but only divided according to the change nodes.
[0020] A description unit, used for describing the digital signal in combination with the change nodes of each channel by using a vector description method to obtain a description result;
[0021] An output unit is used to output the description result.
[0022] A further technical solution is: the description unit is used to describe the digital signal in combination with the change nodes of each channel in a time-behavior combination manner to obtain a description result.
[0023] Its further technical solution is: the description unit includes:
[0024] A definition subunit for defining a digital signal of an initial state described as a vector at time zero;
[0025] The vector description subunit is used to describe the digital signal in a non-initial state by combining the change node of each channel in a time-behavior combination manner to obtain a description result.
[0026] The present invention further provides a computer device, which includes a memory and a processor. The memory stores a computer program, and the processor implements the above method when executing the computer program.
[0027] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program implements the above method when executed by a processor.
[0028] Compared with the prior art, the present invention has the following advantages: the present invention determines the signal change node of each channel and describes the digital signal by a vector description method combining time and behavior, thereby reducing the number of entries in the digital signal description for easy compression.
[0029] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.
[0031] Figure 1 A waveform diagram of a digital signal in the prior art;
[0032] Figure 2 A flowchart of a method for reducing the number of description entries of a digital signal provided by an embodiment of the present invention;
[0033] Figure 3 A schematic diagram of a sub-flow diagram of a method for reducing the number of description entries of a digital signal provided by an embodiment of the present invention;
[0034] Figure 4 A schematic block diagram of a device for reducing the number of description entries of a digital signal provided by an embodiment of the present invention;
[0035] Figure 5 A schematic block diagram of a description unit of a device for reducing the number of description entries of a digital signal provided by an embodiment of the present invention;
[0036] Figure 6 A schematic block diagram of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0037] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0038] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0039] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0040] It should be further understood that the term "and / or" used in the present description and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
[0041] See also Figure 3 , Figure 3 A schematic flow chart of a method for reducing the number of description entries of a digital signal provided by an embodiment of the present invention. The method for reducing the number of description entries of a digital signal is applied to a server, by obtaining the waveform of a digital signal to be described, and using a vector description method to describe the digital signal, and if the content of each line of description is the same, it can be compressed, thereby reducing the number of entries of the digital signal description for easy compression.
[0042] Figure 2 FIG. 1 is a flow chart of a method for reducing the number of description entries of a digital signal provided by an embodiment of the present invention. Figure 2 As shown, the method includes the following steps S110 to S140.
[0043] S110: Obtain a waveform of a digital signal to be described.
[0044] In this embodiment, specifically, a digital signal to be described, that is, a waveform of the signal is obtained.
[0045] S120, determining nodes where the waveform of each channel changes, and each channel is not divided according to a unified period, but only divided according to the change nodes.
[0046] In this embodiment, the change node refers to a node where the waveform changes.
[0047] Each channel is processed and described independently. It is not segmented according to a unified cycle, but only segmented according to the change nodes.
[0048] S130 , describing the digital signal in combination with the change nodes of each channel using a vector description method to obtain a description result.
[0049] In this embodiment, describing the result refers to describing the result obtained by describing the digital signal in a manner combining time and behavior.
[0050] The unit of time is picosecond or femtosecond.
[0051] Specifically, the digital signal is described by combining the time and behavior nodes of each channel to obtain a description result.
[0052] In this embodiment, the description is performed in a vector manner, that is, time+behavior, which is expressed as (DT, OP); DT is time, which can be described using an integer in units of ps or fs. OP is behavior, and its description is shown in Table 1.
[0053] Table 1. Description of behaviors
[0054] OP illustrate nop no operation dat data toggle rct rcv toggle hsh cmph edge strob expect H hsl cmph edge strob expect L lsh cmpl edge strob expect H lsl cmpl edge strob expect L heh cmph window strob entry expect H hxh cmph window strob exit expect H hel cmph window strob entry expect L hx cmph window strob exit expect L leh cmpl window strob entry expect H oeLh cmpl window strob exit expect H lel cmpl window strob entry expect L lxl cmpl window strob exit expect L Xx Multiple Trigs can be mixed eos end of signal
[0055] In one embodiment, see Figure 3 , the above-mentioned step S130 may include steps S131 to S132.
[0056] S131, defining the digital signal description of the initial state as a vector with time zero;
[0057] S132. Describing the digital signal in a non-initial state by combining time and behavior with the change nodes of each channel to obtain a description result.
[0058] for Figure 1 The digital signal shown has the prior art description, as shown in Table 2.
[0059] Table 2. Digital signals described in the prior art
[0060] Cycle D0 D1 D2 D3 D4 D5 D6 1 A A A A A A A 2 A B A A B B A 3 A C A B B C A 4 A D A C B C A 5 A A A A C C A 6 A A A A A C A 7 A B A A B C A 8 A C A A B C A 9 A C B A B C A 10 A C C A B C A
[0061] Agreement Figure 1 The dashed line spacing is 1, and the digital signal is described by vector description as shown in Table 3.
[0062] Table 3. Vector description method to describe digital signals
[0063] D0 D1 D2 D3 D4 D5 D6 0 (0,SetLow) (0,SetLow) (0,SetLow) (0,SetHigh) (0,SetHigh) (0,SetHigh) (0,SetLow) 1 (1,Toggle) (3,Toggle) (16,Toggle) (5,Toggle) (1,Toggle) (2,Toggle) (19,Nop) 2 (1,Toggle) (4,Toggle) (3,Nop) (1,Toggle) (8,Toggle) (17,Nop) 3 (1,Toggle) (6,Toggle) (13,Nop) (2,Toggle) 4 (1,Toggle) (6,Nop) (8,Nop) 5 (1,Toggle) 6 (1,Toggle) 7 (1,Toggle) 8 (1,Toggle) 9 (1,Toggle) 10 (1,Toggle) 11 (1,Toggle) 12 (1,Toggle) 13 (1,Toggle) 14 (1,Toggle) 15 (1,Toggle) 16 (1,Toggle) 17 (1,Toggle) 18 (1,Toggle) 19 (1,Toggle) 20 (1,Toggle)
[0064] The meanings of the various behaviors in Table 3 are as follows: Nop means no operation; Toggle means flipping, if it was originally low level, it rises to high level, if it was originally high level, it drops to low level. SetLow means setting low, regardless of the original level, it is set to low level. SetHigh means setting high, regardless of the original level, it is set to high level.
[0065] In this embodiment, each channel is described independently, and the description content of each channel is different. The signal with more changes has more content. For example, the description content of each line of the D0 signal is the same, which can be easily compressed. The initial state needs to be described by a vector with DT=0 at the beginning. Subsequently, each change point (flip point Toggle) is described by a vector. For general signals, the flip rate is about 25%, that is, only 25% of the cycles will flip. Therefore, the number of entries described by vector method will be 75% less than the sequence pattern method described per cycle. There is no need for feature description of waveform fragments, and all information is contained in the vector. For example, a certain jump edge is delayed by 0.1 compared to the normal position. For the sequence pattern, it needs to be set as a special waveform fragment because it is different from other fragments. Using the vector method only increases DT by 0.1.
[0066] Since each channel is described independently, there is no problem of asynchronous signal segmentation.
[0067] S140: Output the description result.
[0068] The above-mentioned method for reducing the number of description entries of digital signals determines the signal change node of each channel and describes the digital signal in a vector description method combining time and behavior, thereby reducing the number of entries of the digital signal description for easy compression.
[0069] Figure 4 FIG. 3 is a schematic block diagram of a device 300 for reducing the number of description entries of a digital signal provided by an embodiment of the present invention. Figure 4 As shown, corresponding to the above method for reducing the number of description items of a digital signal, the present invention also provides a device 300 for reducing the number of description items of a digital signal. The device 300 for reducing the number of description items of a digital signal includes a unit for executing the above method for reducing the number of description items of a digital signal, and the device can be configured in a server. Specifically, please refer to Figure 4The device 300 for reducing the number of description entries of a digital signal includes an acquisition unit 301, a node determination unit 302, a description unit 303 and an output unit 304.
[0070] The acquisition unit 301 is used to acquire the waveform of the digital signal to be described; the node determination unit 302 is used to determine the nodes where the waveform of each channel changes, and each channel is not divided according to a uniform period, but only divided according to the change nodes; the description unit 303 is used to describe the digital signal in a vector description method in combination with the change nodes of each channel to obtain a description result; the output unit 304 is used to output the description result.
[0071] In one embodiment, the description unit 303 is used to describe the digital signal in combination with the change nodes of each channel in a time-behavior combination manner to obtain a description result.
[0072] In one embodiment, if Figure 5 As shown, the description unit 303 includes a definition subunit 3031 and a vector description subunit 3032 .
[0073] The definition subunit 3031 is used to define the digital signal description of the initial state as a vector with time zero; the vector description subunit 3032 is used to describe the digital signal of the non-initial state by combining the change node of each channel in a time-behavior combination manner to obtain a description result.
[0074] It should be noted that technicians in the relevant field can clearly understand that the specific implementation process of the above-mentioned device 300 for reducing the number of description entries of a digital signal and each unit can refer to the corresponding description in the aforementioned method embodiment, and for the convenience and conciseness of the description, it will not be repeated here.
[0075] The above-mentioned device 300 for reducing the number of description items of a digital signal can be implemented in the form of a computer program. The computer program can be used in a computer program such as Figure 6 Runs on the computer device shown.
[0076] See also Figure 6 , Figure 6 5 is a schematic block diagram of a computer device provided in an embodiment of the present application. The computer device 500 may be a server, wherein the server may be an independent server or a server cluster composed of multiple servers.
[0077] See also Figure 6 The computer device 500 includes a processor 502 , a memory and a network interface 505 connected via a system bus 501 , wherein the memory may include a non-volatile computer-readable storage medium 503 and an internal memory 504 .
[0078] The non-volatile computer-readable storage medium 503 can store an operating system 5031 and a computer program 5032. The computer program 5032 includes program instructions, and when the program instructions are executed, the processor 502 can execute a method for reducing the number of description entries of a digital signal.
[0079] The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500 .
[0080] The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile computer-readable storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute a method for reducing the number of description entries of a digital signal.
[0081] The network interface 505 is used to communicate with other devices over the network. Figure 6 The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the computer device 500 to which the solution of the present application is applied. The specific computer device 500 may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0082] The processor 502 is used to run the computer program 5032 stored in the memory to implement the following steps:
[0083] Acquire the waveform of the digital signal to be described; determine the nodes where the waveform of each channel changes, and each channel is not divided according to a unified period, but only divided according to the change nodes; use a vector description method to describe the digital signal in combination with the change nodes of each channel to obtain a description result; output the description result.
[0084] In one embodiment, when the processor 502 implements the step of using a vector description method to describe the digital signal in combination with the change nodes of each channel to obtain a description result, the processor 502 specifically implements the following steps:
[0085] The digital signal is described by combining the change nodes of each channel in a time-behavior combination to obtain the description result.
[0086] The unit of time is picosecond or femtosecond.
[0087] In one embodiment, when the processor 502 implements the step of describing the digital signal in combination with the change nodes of each channel in a time-behavior combination manner to obtain a description result, the processor 502 specifically implements the following steps:
[0088] The digital signal in the initial state is defined as a vector with time zero; the digital signal in the non-initial state is described by combining the change nodes of each channel in a time-behavior combination manner to obtain a description result.
[0089] It should be understood that in the embodiment of the present application, the processor 502 may be a central processing unit (CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0090] It can be understood by those skilled in the art that all or part of the processes in the method for implementing the above-mentioned embodiment can be completed by instructing the relevant hardware through a computer program. The computer program includes program instructions, and the computer program can be stored in a computer-readable storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the process steps of the embodiment of the above-mentioned method.
[0091] Therefore, the present invention also provides a computer-readable storage medium. The computer-readable storage medium can be a computer-readable computer-readable storage medium. The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the processor executes the following steps:
[0092] Acquire the waveform of the digital signal to be described; determine the nodes where the waveform of each channel changes, and each channel is not divided according to a unified period, but only divided according to the change nodes; use a vector description method to describe the digital signal in combination with the change nodes of each channel to obtain a description result; output the description result.
[0093] In one embodiment, when the processor executes the computer program to implement the step of using a vector description method to describe the digital signal in combination with the change nodes of each channel to obtain a description result, the processor specifically implements the following steps:
[0094] The digital signal is described by combining the change nodes of each channel in a time-behavior combination to obtain the description result.
[0095] The unit of time is picosecond or femtosecond.
[0096] In one embodiment, when the processor executes the computer program to implement the step of describing the digital signal in combination with the change nodes of each channel in a time-behavior combination manner to obtain a description result, the processor specifically implements the following steps:
[0097] The digital signal in the initial state is defined as a vector with time zero; the digital signal in the non-initial state is described by combining the change nodes of each channel in a time-behavior combination manner to obtain a description result.
[0098] The computer-readable storage medium may be a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk, etc., which are computer-readable storage media that can store program codes.
[0099] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0100] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of each unit is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
[0101] The steps in the method of the embodiment of the present invention can be adjusted in order, combined and deleted according to actual needs. The units in the device of the embodiment of the present invention can be combined, divided and deleted according to actual needs. In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0102] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a computer-readable storage medium, including a number of instructions for a computer device (which can be a personal computer, a terminal, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention.
[0103] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A method for reducing the number of description items of a digital signal, the method being applied to a server, characterized in that: include: Obtaining the waveform of the digital signal to be described; Determine the nodes where the waveform of each channel changes. Each channel is not divided according to a unified period, but only divided according to the change nodes. The digital signal is described by using a vector description method combined with the change nodes of each channel to obtain a description result; Outputting the description result; The digital signal is described by combining the change nodes of each channel in a vector description manner to obtain a description result, including: The digital signal is described by combining the change nodes of each channel in a time-behavior combination to obtain the description result; The method of combining time and behavior to describe the digital signal in combination with the change nodes of each channel to obtain a description result includes: The digital signal that defines the initial state is described as a vector at time zero; The digital signal in non-initial state is described by combining time and behavior with the change nodes of each channel to obtain the description result.
2. A method for reducing the number of description entries of a digital signal according to claim 1, characterized in that: The unit of time is picosecond or femtosecond.
3. A device for reducing the number of description items of a digital signal, characterized in that: include: An acquisition unit, used for acquiring the waveform of the digital signal to be described; A node determination unit is used to determine the nodes where the waveform of each channel changes. Each channel is not divided according to a uniform cycle, but only divided according to the change nodes. A description unit, used for describing the digital signal in combination with the change nodes of each channel by using a vector description method to obtain a description result; An output unit, used for outputting the description result; The description unit is used to describe the digital signal in combination with the change nodes of each channel in a time-behavior combination manner to obtain a description result; The description unit comprises: A definition subunit for defining a digital signal of an initial state described as a vector at time zero; The vector description subunit is used to describe the digital signal in a non-initial state by combining the change node of each channel in a time-behavior combination manner to obtain a description result.
4. A computer device, characterized in that: The computer device comprises a memory and a processor, the memory stores a computer program, and the processor implements the method according to any one of claims 1 to 2 when executing the computer program.
5. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 2 is implemented.
Citation Information
Patent Citations
Modulation performance test method for navigational satellite binary offset carrier signal
CN102638319A
Waveform display method and device based on digital oscilloscope
CN111948434A