CN113727104B - Encoding method and apparatus, decoding method and apparatus, and storage medium - Google Patents

Encoding method and apparatus, decoding method and apparatus, and storage medium Download PDF

Info

Publication number
CN113727104B
CN113727104B CN202010442632.9A CN202010442632A CN113727104B CN 113727104 B CN113727104 B CN 113727104B CN 202010442632 A CN202010442632 A CN 202010442632A CN 113727104 B CN113727104 B CN 113727104B
Authority
CN
China
Prior art keywords
signal value
initial state
signal
state
symbol code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010442632.9A
Other languages
Chinese (zh)
Other versions
CN113727104A (en
Inventor
孙长宇
陈朝喜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202010442632.9A priority Critical patent/CN113727104B/en
Publication of CN113727104A publication Critical patent/CN113727104A/en
Application granted granted Critical
Publication of CN113727104B publication Critical patent/CN113727104B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/154Measured or subjectively estimated visual quality after decoding, e.g. measurement of distortion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/004Diagnosis, testing or measuring for television systems or their details for digital television systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/44Decoders specially adapted therefor, e.g. video decoders which are asymmetric with respect to the encoder
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The present disclosure relates to an encoding method and apparatus, a decoding method and apparatus, and a storage medium. The coding method comprises the following steps: acquiring an initial state of a signal value, a symbol code value corresponding to the jump occurrence and a symbol code corresponding to the symbol code value; and hopping is carried out based on the acquired initial state of the signal value and the symbol code corresponding to the hopping, and the final state of the signal value after hopping is displayed through a spreadsheet, so that the code is completed. The decoding method comprises the following steps: acquiring a signal value initial state and a signal value final state corresponding to the signal value initial state; decoding the process of jumping the initial state of the signal value to the final state of the signal value, and displaying the symbol code corresponding to the jumping of the initial state of the signal value through a spreadsheet. By the method provided by the disclosure, the decoding and encoding processes can be realized in the electronic table, so that a tester can intuitively acquire the process of jumping the signal value state.

Description

Encoding method and apparatus, decoding method and apparatus, and storage medium
Technical Field
The present disclosure relates to the field of data transmission technologies, and in particular, to an encoding method and apparatus, a decoding method and apparatus, and a storage medium.
Background
Along with the gradual powerful shooting function of the smart phone, the acquired shooting pixels are more and more, and the high-definition display screen is widely applied. Therefore, the communication protocol of the display module has an increasing demand for high-speed bandwidth. To achieve high speed transmission, the camera serial interface-port physical layer (Camera Serial Interface-Port Physics Layer, C-PHY) protocol is often used as the communication protocol in the interface physical layer of the camera. The data transmission process based on the C-PHY protocol is to continuously change the signal value state to form symbol (symbol) codes, so as to complete the data transmission. In the related art, when performing data transmission test, it is necessary to use the data transmission test in combination with related instruments in a laboratory, for example: oscilloscopes, etc. However, when symbol encoding/decoding is performed, a tester cannot intuitively acquire the process of transmitting the jump of the initial state of the signal value, and the operation of related instruments such as an oscilloscope needs to be performed by the tester with certain related expertise.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides an encoding method, a decoding method, an encoding apparatus, a decoding apparatus, and a storage medium.
According to a first aspect of embodiments of the present disclosure, there is provided an encoding method, including: acquiring an initial state of a signal value; acquiring a symbol code value corresponding to the signal value initial state and a symbol code corresponding to the symbol code value, wherein different symbol code values are used for representing different jump processes of the signal value state; and based on the acquired signal value initial state and the symbol code value corresponding to the signal value initial state, carrying out hopping on the signal value initial state according to the symbol code corresponding to the symbol code value, and displaying the signal value final state after the signal value initial state is hopped through a spreadsheet to finish the coding.
In an embodiment, obtaining a symbol code value corresponding to the signal value initial state and a symbol code corresponding to the symbol code value includes: acquiring one or more binary transmission data, wherein each binary transmission data corresponds to a plurality of continuous symbol codes respectively and is used for representing a continuous jump process of signal value states for a plurality of times; based on the binary transmission data, a plurality of symbol codes corresponding to the initial state of the signal value and a symbol code value corresponding to each symbol code, which are continuously hopped for a plurality of times, are obtained and displayed through a spreadsheet.
In another embodiment, each binary transmission data corresponds to a plurality of consecutive symbol encodings, respectively, comprising: each 16-bit binary transmission data corresponds to seven consecutive symbol codes, respectively.
In yet another embodiment, the signal value initial state includes: signal value initial signal voltage; the signal value termination state includes: the signal value terminates the signal voltage; the encoding method further includes: and displaying a signal voltage jump process diagram corresponding to the signal value initial state in the electronic table based on the signal value initial signal voltage and the signal value final signal voltage corresponding to the signal value initial signal voltage.
In yet another embodiment, the signal value initial state further includes: signal value initial differential voltage; the signal value termination state further includes: the signal value is the final differential voltage; the encoding method further includes: and displaying a differential voltage jump process diagram corresponding to the initial state of the signal value in the electronic table based on the initial differential voltage of the signal value and the final differential voltage of the signal value corresponding to the initial differential voltage of the signal value.
According to a second aspect of embodiments of the present disclosure, there is provided a decoding method, comprising: acquiring a signal value initial state and a signal value final state corresponding to the signal value initial state; decoding the process of jumping the signal value initial state to the signal value final state based on the acquired signal value initial state and the signal value final state corresponding to the signal value initial state to obtain a symbol code corresponding to the jumping and a symbol code value corresponding to the symbol code, and displaying the symbol code value through a spreadsheet to finish the decoding; different symbol codes correspond to different symbol code values and are used for representing different jump processes of signal value states.
In an embodiment, the decoding method further comprises: acquiring a plurality of symbol codes of which the initial states of the signal values are corresponding to continuous jump; and obtaining one or more binary transmission data based on each symbol code, and displaying the binary transmission data through a spreadsheet, wherein each binary transmission data corresponds to a plurality of continuous symbol codes respectively and is used for representing a plurality of continuous jump processes of signal value states.
In another embodiment, each binary transmission data corresponds to a plurality of consecutive symbol encodings, respectively, comprising: each 16-bit binary transmission data corresponds to seven consecutive symbol codes, respectively.
In yet another embodiment, the signal value initial state includes: signal value initial signal voltage; the signal value termination state includes: the signal value terminates the signal voltage; the decoding method further comprises the steps of: and displaying a signal voltage jump process diagram corresponding to the signal value initial state in the electronic table based on the signal value initial signal voltage and the signal value final signal voltage corresponding to the signal value initial signal voltage.
In yet another embodiment, the signal value initial state further includes: signal value initial differential voltage; the signal value termination state further includes: the signal value is the final differential voltage; the decoding method further comprises the steps of: and displaying a differential voltage jump process diagram corresponding to the initial state of the signal value in the electronic table based on the initial differential voltage of the signal value and the final differential voltage of the signal value corresponding to the initial differential voltage of the signal value.
According to a third aspect of embodiments of the present disclosure, there is provided an encoding apparatus including: the acquisition unit is used for acquiring the initial state of the signal value, acquiring a symbol code value corresponding to the signal value initial state and a symbol code corresponding to the symbol code value, wherein the different symbol codes are used for representing different hopping processes of the signal value state; the coding unit is used for jumping the signal value initial state according to the symbol code corresponding to the symbol code value based on the acquired signal value initial state and the symbol code value corresponding to the signal value initial state, displaying the signal value final state after the signal value initial state is jumped through the electronic table, and finishing the coding.
In an embodiment, the obtaining unit obtains the symbol code value corresponding to the hopped symbol code value and the symbol code corresponding to the symbol code value in the initial state of the signal value by adopting the following manner: acquiring one or more binary transmission data, wherein each binary transmission data corresponds to a plurality of continuous symbol codes and is used for representing a plurality of continuous jump processes of signal value states; based on the binary transmission data, a plurality of symbol codes corresponding to the initial state of the signal value and a plurality of symbol code values corresponding to the symbol codes, which are continuously hopped for a plurality of times, are obtained and displayed through a spreadsheet.
In another embodiment, each binary transmission data corresponds to a plurality of consecutive symbol encodings, respectively, comprising: each 16-bit binary transmission data corresponds to seven consecutive symbol codes, respectively.
In yet another embodiment, the signal value initial state includes: signal value initial signal voltage; the signal value termination state includes: the signal value terminates the signal voltage; the encoding device further includes: and the display unit is used for displaying a signal voltage jump process diagram corresponding to the signal value initial state in the electronic table based on the signal value initial signal voltage and the signal value final signal voltage corresponding to the signal value initial signal voltage.
In yet another embodiment, the signal value initial state further includes: signal value initial differential voltage; the signal value termination state further includes: the signal value is the final differential voltage; the display unit is further configured to: and displaying a differential voltage jump process diagram corresponding to the initial state of the signal value in the electronic table based on the initial differential voltage of the signal value and the final differential voltage of the signal value corresponding to the initial differential voltage of the signal value.
According to a fourth aspect of embodiments of the present disclosure, there is provided a decoding apparatus including: the state acquisition unit is used for acquiring a signal value initial state and a signal value final state corresponding to the signal value initial state; the decoding unit is used for decoding the process of changing the signal value initial state jump process into the signal value final state based on the acquired signal value initial state and the signal value final state corresponding to the signal value initial state to obtain a symbol code corresponding to the jump and a symbol code value corresponding to the symbol code, and displaying the symbol code value through a spreadsheet to finish decoding; different symbol codes correspond to different symbol code values and are used for representing different jump processes of signal value states.
In an embodiment, the decoding unit is further configured to: acquiring a plurality of symbol codes of which the initial states of the signal values are corresponding to continuous jump; and obtaining one or more binary transmission data based on each symbol code, and displaying the binary transmission data through a spreadsheet, wherein each binary transmission data corresponds to a plurality of continuous symbol codes respectively and is used for representing a continuous multi-jump process of signal value states.
In another embodiment, each binary transmission data corresponds to a plurality of consecutive symbol encodings, respectively, comprising: each 16-bit binary transmission data corresponds to seven consecutive symbol codes, respectively.
In yet another embodiment, the signal value initial state includes: signal value initial signal voltage; the signal value termination state includes: the signal value terminates the signal voltage; the decoding apparatus further includes: and the display unit is used for displaying a signal voltage jump process diagram corresponding to the signal value initial state in the electronic table based on the signal value initial signal voltage and the signal value final signal voltage corresponding to the signal value initial signal voltage.
In yet another embodiment, the signal value initial state further includes: signal value initial differential voltage; the signal value termination state further includes: the signal value is the final differential voltage; the display unit is further configured to: and displaying a differential voltage jump process diagram corresponding to the initial state of the signal value in the electronic table based on the initial differential voltage of the signal value and the final differential voltage of the signal value corresponding to the initial differential voltage of the signal value.
According to a fifth aspect of embodiments of the present disclosure, there is provided another encoding apparatus, comprising: a memory for storing instructions; and a processor for invoking the instructions stored in the memory to perform any one of the encoding methods described above.
According to a sixth aspect of embodiments of the present disclosure, there is provided a computer readable storage medium storing instructions that, when executed by a processor, perform any one of the above-described encoding methods.
According to a seventh aspect of embodiments of the present disclosure, there is provided another decoding apparatus, comprising: a memory for storing instructions; and a processor for invoking the instructions stored in the memory to perform any one of the above decoding methods.
According to an eighth aspect of embodiments of the present disclosure, there is provided another computer-readable storage medium storing instructions that, when executed by a processor, perform any one of the decoding methods described above.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects:
according to the coding method provided by the disclosure, the acquired initial state of the signal value is hopped according to the hopping process corresponding to the symbol coding value, and the final state of the signal value obtained after coding is displayed through the electronic table. When the transmission test is carried out, a tester can visually acquire the jump process of the initial state of the signal value from the electronic table, and further the flexible test is facilitated. And the electronic form is used for testing, so that a tester is helped to read the coding process, the tester can quickly complete the testing, and the testing experience is more friendly.
According to the decoding method provided by the disclosure, the acquired initial state of the signal value is decoded according to the process of changing the initial state of the signal value into the final state of the signal value after the jump, and the symbol coding value corresponding to the jump process is displayed through the electronic table, so that a tester can visually acquire how the initial state of the signal value changes into the final state of the signal value from the electronic table, and further a flexible test is performed. And the electronic form is used for testing, so that a tester is helped to read the decoding process, the tester can quickly complete the testing, and the testing experience is more friendly.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flow chart illustrating an encoding method according to an exemplary embodiment.
Fig. 2 is a schematic diagram illustrating a symbol encoding variation according to an exemplary embodiment.
Fig. 3 is a signal voltage hopping process diagram, according to an example embodiment.
Fig. 4 is a diagram illustrating a differential voltage hopping process, according to an example embodiment.
Fig. 5 is a flow chart illustrating another encoding method according to an exemplary embodiment.
Fig. 6 is a schematic diagram illustrating a mapping relationship according to an exemplary embodiment.
Fig. 7 is a circuit diagram illustrating an exemplary embodiment.
Fig. 8 is a diagram illustrating a signal voltage continuous transition process according to an exemplary embodiment.
Fig. 9 is a diagram illustrating a differential voltage continuous transition process according to an exemplary embodiment.
Fig. 10 is a flowchart illustrating a decoding method according to an exemplary embodiment.
Fig. 11 is a diagram illustrating another signal voltage hopping process according to an exemplary embodiment.
Fig. 12 is a diagram illustrating another differential voltage hopping process, according to an example embodiment.
Fig. 13 is a flowchart illustrating another decoding method according to an exemplary embodiment.
Fig. 14 is another circuit diagram illustrating an example embodiment.
Fig. 15 is a diagram illustrating another signal voltage continuous transition process according to an exemplary embodiment.
Fig. 16 is a diagram illustrating another differential voltage continuous transition process according to an example embodiment.
Fig. 17 is a block diagram illustrating an encoding apparatus according to an exemplary embodiment.
Fig. 18 is a block diagram illustrating a decoding apparatus according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
It is further understood that the terms "first," "second," and the like are used to describe various information, but such information should not be limited to these terms. These terms are only used to distinguish one type of information from another and do not denote a particular order or importance. Indeed, the expressions "first", "second", etc. may be used entirely interchangeably. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure.
The mobile industry processor interface (Mobile Industry Processor Interface, MIPI) is an open standard and a specification established for mobile application processors by the MIPI alliance. Three protocols may be included in the physical layer of MIPI: M-PHY, D-PHY, and C-PHY. The three differences are shown in table 1 below:
TABLE 1
Of these three protocols, the data transmission amount of M-PHY is the largest, but there are few cases of M-Phy applications in the imaging field. The main reason is that in connection with the development of the application of the camera, the camera does not continue to develop as much up to higher pixel numbers after reaching 20M pixels as the MIPI organization expects. The development of M-Phy devices is too complex to support by the device manufacturer, and therefore camera devices remain on the D-Phy protocol for a long period of time. Along with the wide application of the high-definition display screen, the communication protocol requirements of the display module on the high-speed bandwidth are also increasing. High-speed communication protocols are required for large data volume transmission, and C-PHYs are increasingly used in camera communication protocols because the speed of the C-PHYs can reach 5.7Gbps and is larger than that of the traditional D-PHYs. And the data transmission process based on the C-PHY protocol is to form symbol codes by continuously changing the signal value state, so that the content of the data transmission is hidden in the symbol codes to finish the data transmission.
In the related art, encoding/decoding is performed on symbol, mainly through a payment plug-in of related instruments such as an oscilloscope. In the present disclosure, by designing a spreadsheet, a mapping relationship is pre-stored in the spreadsheet, and then encoding/decoding is performed according to an initial state of a signal value and a symbol code value corresponding to symbol code or a final state of an adjacent signal value, so that a tester can intuitively interpret information contained in symbol code, determine whether data is transmitted or how to be transmitted, and further perform flexible test. And the matched use of an instrument and a payment plug-in is not needed, so that the cost is saved.
Fig. 1 is a flowchart illustrating an encoding method according to an exemplary embodiment, which may be applied to data transmission based on a C-PHY protocol, as a carrier of data information, during which data information is transmitted in the course of data information transmission in the present disclosure. As shown in fig. 1, the encoding method 10 includes the following steps S11 to S13.
In step S11, a signal value initial state is acquired.
In the embodiment of the disclosure, the C-PHY protocol has no clock line, so the receiving end needs to derive the clock frequency according to the demodulation data change edge in the decoding process. The C-PHY protocol is located at the interface physical layer and includes A, B, C three data lines in each channel in the physical layer, corresponding to a set of differential lines (dp=3/4V, dm =1/4V) and one common mode line dc=1/2V, respectively. A, B, C pieces of data are assigned to a total of 3×2×1=6 permutation combinations of Dp, dm and Dc, respectively, and 6 symbols defining these 6 combinations as +x, -X, +y, -Y, +z and-Z represent the respective signal value states. The signal value initial state may be any one of the 6 signal value states. The signal value initial state may be a designated signal value state, or may be a signal value initial state with a camera device currently under test. The acquisition of the initial state of the signal value is beneficial to determining the data to be transmitted, so that the jump of the state of the signal value is conveniently completed through symbol encoding, and the receiving end can acquire the change frequency of the clock.
In step S12, a symbol code value corresponding to the hopped symbol code value and a symbol code corresponding to the symbol code value in the initial state of the signal value are acquired.
In the disclosed embodiment, the jump from one signal value state to another signal value state is achieved based on Symbol encoding. In the data transmission process of the C-PHY protocol, symbol codes are formed by continuously changing the signal value state, and then data transmission is completed. Different symbol codes are used to characterize different hopping processes that the signal value state will send. In the process of data transmission, symbol codes are carriers of data information. In order to ensure that the data edge at the receiving end can obtain the clock frequency, the data edge changes need to occur, so that each signal value state has 5 valid transitions, i.e. 5 signal value states except for the signal value state of the receiving end. When the signal value state jumps, the receiving end can obtain the clock frequency. If the state of the signal value is not changed, the changed edge cannot be formed, and the receiving end cannot acquire the clock. Different definition numbers are adopted to distinguish different symbol codes according to different jump processes, and the different definition numbers are symbol code values corresponding to the different symbol codes. The definition number includes: <0>, <1>, <2>, <3>, <4>. By acquiring the symbol code value corresponding to the initial state of the signal value, the jump process of the initial state of the signal value can be defined according to the symbol code value. The symbol code value is obtained and the symbol code corresponding to the symbol code value is obtained, which is helpful for a tester to intuitively and clearly determine how the initial state of the signal value jumps according to the symbol code to change into the final state of the signal value,
In step S13, based on the obtained signal value initial state and the symbol code value corresponding to the signal value initial state, the signal value initial state is hopped according to the symbol code corresponding to the symbol code value, and the signal value final state after the signal value initial state is hopped is displayed through the electronic table, so as to complete the coding.
In the embodiment of the disclosure, the acquired initial state of the signal value and the symbol code value corresponding to the initial state of the signal value are input into the electronic table. And according to a C-PHY protocol pre-stored in the electronic table, jumping the initial state of the signal value according to the symbol code corresponding to the acquired symbol code value to obtain the final state of the corresponding signal value, displaying the final state through the electronic table, and finishing the code of data transmission. The process of jumping the signal value initial state is displayed through the electronic table, so that a tester can know how to convert line voltages in channels corresponding to the signal value initial state into signal value final states according to symbol codes when jumping occurs, and data transmission is completed. For example: given that the initial state of the signal value is +X, the symbol code value is 2, and the corresponding symbol code is [0,1,0], the clockwise rotation of the initial state of the signal value is indicated, the final state of the signal value is +Y, and the transmission of the symbol code is [0,1,0] in the process. And the process of jumping the initial state of the signal value is displayed through the electronic table, so that the operation is convenient, the method is simple and easy to learn, and the test experience of a tester is convenient to improve.
In practical application, when each signal value state is transmitted to the receiving end, the voltage difference between the data lines in each signal value state is compared through the comparator arranged at the receiving end. The comparison result is greater than 0 and is 1, and the comparison result is less than 0 and is 0. Therefore, the receiving end can obtain the values of rx_ab, rx_bc and rx_ca, that is, the signal output received by the receiving end in the signal value state. The correspondence between the signal value states and the signal voltages of the corresponding data lines, the voltage differences between the data lines obtained by the receiving-end comparator, and the signal outputs received by the receiving end can be as shown in the following table 2:
TABLE 2
The C-PHY protocol includes the signal voltages corresponding to the signal value states shown in table 2, the voltage differences obtained by the comparators at the receiving ends, the corresponding relations between the signal outputs received by the receiving ends, and the signal value state change rules represented by the symbol codes and the corresponding symbol code values. The process of changing the state of the signal value once corresponds to the occurrence of a data change, i.e. transmitting a bit of data. While there are five possibilities for the change in signal value state, it can be understood that the transmission of symbol is 5. Since in practical application, the transmission is based on a machine, the number of 5 bits is represented by a binary system of 3 bits (bits) in the transmission process. The [ Flip, rotation, parity ] character set formed by the attribute combination of 3 bits of "Flip-flop", "Rotation-Rotation", "parity-polarity" represents 5 symbol codes. I.e. 5 symbols are binary equivalent to: <0> = [0, 0]; <1> = [0, 1]; <2> = [0,1,0]; <3> = [0, 1]; <4> = [1, 0]. In 5 symbol codes, only the binary of the first bit of <4> = 100 is 1, the bits of the other 4 symbols are all 0, and the first bit Flip represents "Flip". Thus, as shown in fig. 2, based on the C-PHY protocol, the Symbol coding change principle has the following provisions:
When flip=1, rotation, polority is inactive, rotation, polority can be any binary number in symbol encoding, i.e., the binary of symbol encoding can be denoted as [1, x ], and in practice, is commonly denoted as [1, 0], indicating that the signal value state is inverted, for example: the initial state of the signal value is +X, and the signal value becomes-X through jump of symbol code to [1,0 ]. The initial state of the signal value is-Y, and the signal value becomes +Y after the jump of symbol code to [1,0 ].
When flip=0, the signal value initial state does not Flip, and Rotation, polority is valid. Rotation indicates Rotation, and the order of definition of X- > Y- > Z- > X is positive Rotation, and the order of definition of X- > Z- > Y- > X is negative Rotation. Polority indicates whether the polarity is changed, i.e., whether the "+", "-" signs are changed.
(1) Rotation=0, porosity=0: as shown in fig. 2, the reverse order is shown with the sign unchanged.
(2) Rotation=0, porosity=1: representing the reverse order, the sign change.
(3) Rotation=1, porosity=0: indicating positive order, the sign is unchanged.
Rotation=1, porosity=1: positive sequence and sign change are indicated.
In one implementation, table 2 and signal value state change rules characterized by the respective symbol codes and corresponding symbol code values are stored in advance in a spreadsheet. In order to facilitate the tester to quickly determine the signal value state change rule corresponding to each symbol code, each symbol code and the corresponding symbol code value and the corresponding signal value state change rule may be formed into a table as shown in table 3 below and stored in a spreadsheet.
symbol Flip Rotation Polority Change rule
0 0 0 0 Reverse order, homopolarity
1 0 0 1 Reverse order, reverse polarity
2 0 1 0 Sequentially, of the same polarity
3 0 1 1 Sequentially, reversed polarity
4 1 0 0 Overturning
TABLE 3 Table 3
Before the acquired initial state of the signal value is hopped according to the acquired symbol code, a signal value state hopping table for hopping each signal value state to other signal value states based on each symbol code may be acquired in advance, for example, as shown in table 4:
TABLE 4 Table 4
Through the signal value state jump table, a tester can intuitively and clearly know the corresponding jump situation which can be obtained when the signal value state jumps based on each symbol code, and further, the process of transmitting data content when data transmission is carried out based on the C-PHY protocol can be clearly understood. In the electronic table, when coding is performed according to the acquired initial state of the signal value and the corresponding symbol code value, the possibility of all symbol code values and all corresponding initial states of the signal value in table 4 can be traversed through codes, a jump result corresponding to the acquired corresponding symbol code value generated in the acquired initial state of the signal value is determined through a logic relation, a final state of the signal value after the jump of the initial state of the signal value is obtained, and the final state of the signal value is displayed through the electronic table.
In another implementation scenario, in order to facilitate a tester to visually and clearly observe a channel voltage change when jumping from one signal value state to another signal value state and a change of each voltage difference in the receiving-end comparator and a change of a receiving-end received signal value when encoding based on a C-PHY protocol, the channel voltage corresponding to the signal value initial state, each voltage difference in the receiving-end comparator and the signal value received by the receiving-end can be acquired together while the signal value initial state is acquired as shown in the following table 5, a signal value final state is obtained by jumping based on the acquired symbol encoding value, and the channel voltage corresponding to the signal value final state, each adjacent voltage difference in the receiving-end comparator and the signal value received by the receiving-end are displayed together.
TABLE 5
Through the above embodiment, the acquired initial state of the signal value is hopped according to the corresponding symbol code value, and the hopped final state of the signal value is displayed through the electronic table. When the transmission test is carried out, a tester can visually acquire the jump process of the initial state of the signal value from the electronic table, and further the flexible test is facilitated. And the electronic form is used for testing, so that the test is convenient and quick, a tester can quickly complete the test, and the test experience is more friendly.
In an embodiment, in order to make it easier for a tester to determine more intuitively and clearly the change of signal voltage values of 3 data lines a\b\c in the physical layer before and after the jump of the initial state of the signal value. Based on the signal value initial signal voltage included in the signal value initial state, namely the signal voltage corresponding to the A\B\C three lines in the channel in the signal value initial state, and the signal value final signal voltage included in the signal value final state, namely the signal voltage corresponding to the A\B\C three lines in the channel in the signal value final state. The signal voltage jump process diagram is generated through the electronic form, and the electronic form can be directly utilized to obtain the signal voltage jump process diagram without connecting an oscilloscope, so that the method is convenient and quick. In the signal voltage jump process diagram, the voltage change of the voltage value of 3 data lines A\B\C from the signal value initial signal voltage jump to the signal value final signal voltage can be clearly seen, and further a tester can flexibly test according to the diagram result. In an implementation scenario, a signal value state encoding process shown in table 5 is adopted, where a signal value initial state+x jumps the signal state into a signal value final state-X through a symbol encoding value, and a signal voltage jump process diagram shown in fig. 3 is generated based on a signal value initial signal voltage included in the signal value initial state+x and a signal value final signal voltage included in the signal value final state-X. The signal voltage hopping process diagram is generated through the electronic table, so that a tester can intuitively determine the hopping process of the initial state of the signal value according to the generated signal voltage hopping process diagram, and further the tester can be helped to read the symbol code.
In another embodiment, the signal value initial state further includes a signal value initial differential voltage, that is, a voltage difference between the data lines in the receiving-end comparator and a voltage corresponding to the a\b\c three lines in the channel. The signal value termination state further includes: the signal value is the final differential voltage, namely the voltage difference between the data lines in the receiving end comparator of the voltage corresponding to the A\B\C three lines in the channel. The differential voltage jump process diagram is generated through the electronic table, and the electronic table can be directly utilized to obtain the differential voltage jump process diagram without connecting an oscilloscope, so that the differential voltage jump process diagram is convenient and quick. In the differential voltage jump process diagram, the change of the voltage difference between the lines acquired by the receiving end in the initial state of the signal value after jump and the adjacent voltage difference of the lines acquired by the receiving end can be clearly seen, and therefore a tester can flexibly test according to the diagram result. In an implementation scenario, a signal value state encoding process shown in table 5 is adopted, where a signal value initial state+x jumps the signal state into a signal value final state-X through a symbol encoding value, and a differential voltage jump process diagram shown in fig. 4 is generated based on a signal value initial differential voltage included in the signal value initial state+x and a signal value final differential voltage included in the signal value final state-X. The electronic table is used for generating the differential voltage jump process diagram, so that a tester can intuitively determine the jump process of the initial state of the signal value according to the generated differential voltage jump process diagram, and further the tester is facilitated to read the symbol code.
Fig. 5 is a flowchart of an encoding method according to an exemplary embodiment, and as shown in fig. 5, the encoding method 20 includes the following steps S21 to S24.
In step S21, a signal value initial state is acquired.
In step S22, one or more binary transmission data are acquired.
In the disclosed embodiment, the binary transmission data is formed based on a plurality of continuous symbol codes, and each binary transmission data corresponds to a plurality of continuous symbol codes respectively and is used for representing a plurality of continuous jump processes of signal value states. The binary transmission data can be obtained, so that the problem which is easy to generate in the transmission data can be found based on continuous multiple jumps of multiple signal value states, the problem can be found in time, and the test efficiency is improved. In practical application, the transmission data is data transmission in units of "words", and in the transmission process, the transmission is performed in 16-bit binary data, so that the acquired binary transmission data may be 16-bit binary transmission data. By this binary transmission data, a continuous transition process of the initial state of the signal value can be determined.
In step S23, based on each binary transmission data, a plurality of symbol codes corresponding to the signal value initial state and a symbol code value corresponding to each symbol code, which are continuously hopped for a plurality of times, are acquired and displayed through the electronic table.
In the embodiment of the disclosure, numbers on each bit in binary transmission data are different, and the corresponding signal value states are subjected to a plurality of continuous jump processes. The mapping relation between the binary transmission data and the plurality of symbol codes is stored in the electronic table in advance. And converting the acquired binary transmission data into a plurality of corresponding continuous symbol codes according to the mapping relation, and further obtaining a plurality of continuous jump processes of the initial state of the signal value, so that a tester can clearly transmit the data content. And displaying each symbol code and the corresponding symbol code value through the electronic table, so that a tester can intuitively acquire the initial state of the signal value and the specific jump condition that a plurality of continuous jumps will occur. And each time a jump is performed, the obtained signal value final state is the signal value initial state of the next jump.
In step S24, based on the obtained signal value initial state and the symbol code value corresponding to the signal value initial state, the signal value initial state is hopped according to the symbol code corresponding to the symbol code value, and the signal value final state after the signal value initial state is hopped is displayed through the electronic table, so as to complete the coding.
In the present disclosure, the embodiments of step S21 and step S24 are the same as the embodiments of step S11 and step S13 in the encoding method 10, respectively, and will not be described in detail herein.
With the above-described embodiment, the mapping relationship between the binary transmission data and the plurality of symbol codes is stored in the electronic form in advance. And converting the acquired binary transmission data into a plurality of continuous symbol codes according to the mapping relation, further determining a jump result of the initial state of the signal value under each symbol code, and displaying the jump result through a spreadsheet. The tester can intuitively and clearly determine how to transmit the data information carried by the symbol code based on the C-PHY protocol by obtaining the signal value final state after each jump in the process of continuously jumping the signal value initial state when the data transmission is performed based on the C-PHY protocol.
In an implementation scenario, since the 16-bit binary transmission data is transmitted in the data transmission process, the 16-bit binary transmission data and the 5-system symbol code value form a mapping relationship to obtain 2 16 =5 x Wherein x is an integer, and the physical meaning of the representation is the transmission number (bit number) of the mapping of the 16bit binary number to the 5 system symbol code value. To ensure that 16bit binary numbers can all be mapped, 2 is needed to be mapped 16 The number of =65536 is all contained in 5 x Within, there is 5 thus a need to satisfy the inequality (x-1) <2 16 <5 x Further, x=7 is obtained. And 5 6 <2 16 <5 7 Therefore, 7 can be satisfied to map all 16bit binary numbersThe number of transmissions (number of bits) of symbol encoded values, and thus, it follows that transmission data by 16bit binary can be mapped into 7 symbol encoded values of 5 bits. In the C-PHY protocol specification, the mapping relationship between 16bit binary transmission data and 7 symbol codes may be as shown in fig. 6: the mapping relation between each segment of 16bit binary transmission data and 7 successive symbol codes depends on the number of Flip contained in the 7 symbol codes. For example: when no Flip occurs in the 7 symbol codes, the mapping relationship between the 16bit binary transmission data between 0x0000 and 0x3fff and each symbol code is as follows: flip [6:0 ]]==0x00==[0,0,0,0,0,0,0]
[0,0,ro6,po6,ro5,po5,ro4,po4,ro3,po3,ro2,po2,rp1,po1,rp0,po0]Wherein rp0, po0 represent symbol-encoded [0, rotation ] of the 1 st transition 0 ,Polority 0 ]Rp1, po1 represent the symbol encoded [0, rotation ] in the occurrence of transition 2 1 ,Polority 1 ]Similarly, ro6, po6 represent the symbol encoded [0, rotation ] in the occurrence of the 7 th transition, respectively 6 ,Polority 6 ]. When one Flip occurs in the 7 symbol codes, the mapping relationship between the 16bit binary transmission data between 0x4000 and 0x4fff and each symbol code is as follows: flip [6:0 ] ]==0x01==[0,0,0,0,0,1,0][0,1,0,0,ro6,po6,ro5,po5,ro4,po4,ro3,po3,ro2,po2,rp1,po1]Symbol code for the first jump of signal value initial state is considered to be [1,0 ]]The mapping relationship of the remaining 6 symbols is the same as the case when Flip does not occur in the 7 symbol codes.
Since data transmission based on the C-PHY protocol is used in the physical layer, the mapping relationship between 16bit binary transmission data and 7 symbol codes can be implemented through a circuit diagram as shown in fig. 7, and the logic of the circuit is implemented in a spreadsheet through codes. The data on the left side of the circuit diagram is corresponding 16bit binary transmission data, and the corresponding relation between the corresponding number on each bit and each symbol code on the right side of the circuit diagram is according to. And the data between the 0 th bit data and the 7 th bit data in the 16bit binary transmission data are formed by low bit data and high bit data, wherein the data are in groups from low bit data to high bit data, each group corresponds to a rotation bit and a polarity bit in the corresponding symbol code, and the symbol codes from the 1 st time to the 5 th time of control signal value state transition are determined. The data between the 8 th bit and the 15 th bit are from high bit to low bit, and the corresponding relation between the acquired 16bit binary transmission data and the Flip is determined, which section of symbol code mapping relation shown in fig. 6 belongs to, and then 7 continuous symbol codes are acquired (for convenience of representation, in table 6 and the follow-up tables, symbol shorthand is symbol). Its physical and logical relationship can be as shown in tables 6 and 7, for example: when the value of mux0 (switch 0) is 0, mux0 is closed, and symbol code (sym 0) for the first transition is [0, 1]. When the value of muxa1 is 1 and the value of muxb1 is 0, then muxa1 is open and muxb1 is closed, and symbol code (sym 1) for the second transition is [0, 1].
TABLE 6
Number of symbol Flip Rotation polority symbol code value
sym0 0 1 1 3
sym1 0 1 1 3
sym2 0 1 1 3
sym3 0 1 1 3
sym4 1 0 0 4
sym5 0 1 1 3
sym6 1 0 0 4
TABLE 7
In yet another implementation scenario, to facilitate the spreadsheet being able to directly use the conversion logic between the 16bit binary transmission data and the 7 symbol encodings in the circuit diagram of FIG. 7, tables 6 and 7 may be pre-stored in the spreadsheet. When the method is used, any set of appointed 16-bit binary transmission data can be input into the electronic table, and according to the mapping relation between the 16-bit binary transmission data and 7 symbol codes pre-stored in the electronic table, 7 continuous symbol codes are obtained and displayed in an appointed area of the electronic table in sequence, so that the initial state of the acquired signal value can be continuously hopped according to the obtained symbol codes, and the data can be transmitted. In the continuous hopping process, the signal value final state obtained by hopping each time can be displayed through the electronic table, so that a tester can easily read the process of data transmission based on symbol coding, and the process of coding based on the C-PHY protocol can be quickly known. For example: as shown in table 7, the symbol code values corresponding to the obtained continuous 7 symbol codes were 3,3,3,3,4,3,4, respectively, and 7 continuous signal value states were also obtained as shown in table 8. And then obtaining the voltage value of each data line corresponding to each signal value state and each adjacent voltage difference value in the receiving end comparator.
TABLE 8
In yet another implementation scenario, the signal voltage continuous transition process diagram shown in fig. 8 or the differential voltage continuous transition process diagram shown in fig. 9 may also be generated through a spreadsheet according to the signal value state encoding process shown in table 8. And further, a tester can intuitively determine the jump process of the initial state of the signal value according to the generated differential voltage jump process diagram, thereby being beneficial to the tester to read the Symbol code.
Based on the same concept, the embodiments of the present disclosure also provide a decoding method, which is an inverse operation of the encoding method, and a specific calculation process thereof may refer to an encoding process of the encoding method, which will not be described in detail herein.
Fig. 10 is a flowchart illustrating a decoding method according to an exemplary embodiment, and as shown in fig. 10, the decoding method 30 may be applied to data transmission based on a C-PHY protocol, including the following steps S31 to S32.
In step S31, a signal value initial state and a signal value final state corresponding to the signal value initial state are acquired.
In the embodiment of the disclosure, the data transmission process of the C-PHY is to form symbol codes by continuously changing the State of the Wire State, thereby completing the data transmission. According to the embodiment of the encoding method, the signal value initial state is hopped based on symbol encoding, so that the signal value final state is obtained, and further data transmission is realized. In the process of data transmission, symbol codes are transmitted, and the content of the data transmission is hidden in the symbol codes. The decryption process is based on the states of two adjacent signal values, so as to obtain the transmitted data content, namely symbol codes. The initial state of the signal value and the final state of the signal value corresponding to the initial state of the signal value are two adjacent signal value states. And then, the signal value initial state and the signal value final state corresponding to the signal value initial state are obtained, so that the data content transmitted from the signal value initial state to the signal value final state can be obtained for decoding.
In step S32, decoding is performed in the process of jumping the signal value initial state to the signal value final state based on the obtained signal value initial state and the signal value final state corresponding to the signal value initial state, so as to obtain the symbol code corresponding to the jumping and the symbol code value corresponding to the symbol code, and the symbol code value is displayed through the electronic table, so that decoding is completed.
In the embodiment of the disclosure, different symbol codes correspond to different symbol code values and are used for representing different jump processes of signal value states. And inputting the acquired signal value initial state and the signal value final state corresponding to the signal value initial state into the electronic table. Decoding the process of changing the signal value initial state jump process into the signal value final state according to the pre-stored C-PHY protocol in the electronic table, and displaying the symbol code value corresponding to the signal value initial state and the signal value final state and the symbol code corresponding to the symbol code value through the electronic table. The process of jumping the initial state of the signal value is decoded and displayed through the electronic table, so that a tester can be helped to determine the jumping process based on which initial state of the signal value becomes the final state of the signal value, and further the test experience of the tester is prompted. The decoding process based on the C-PHY protocol is to obtain symbol codes by realizing given adjacent two signal value states according to a comparator of an analog receiving end.
In one implementation, table 2 and signal value state change rules characterized by the respective symbol codes and corresponding symbol code values are stored in advance in a spreadsheet. In order to facilitate the tester to quickly determine the signal value state change rule corresponding to each symbol code, the corresponding symbol code value and the corresponding signal value state change rule may be stored in a table as shown in table 3 in a spreadsheet. When decoding is performed, according to the initial state of the signal value and the corresponding initial state of the signal value in table 9, traversing all the possibilities of the initial states of the signal values and the corresponding initial states of the signal values in table 4 through codes, determining that the acquired initial state of the signal value jumps to the symbol encoding value of the corresponding initial state of the signal value through a logic relation, and further displaying the symbol encoding value and the symbol encoding corresponding to the symbol encoding value through a spreadsheet, so that a tester can intuitively acquire the decoding process.
TABLE 9
Through the embodiment, the acquired initial state of the signal value is decoded according to the process of changing the initial state into the final state of the signal value after the jump, and the symbol coded value corresponding to the jump process is displayed through the electronic table, so that a tester can visually acquire how the initial state of the signal value changes into the final state of the signal value from the electronic table, and further flexible test is performed. And the electronic form is used for testing, so that the test is convenient and quick, a tester can quickly complete the test, and the test experience is more friendly.
In an embodiment, in order to make it easier for a tester to determine more intuitively and clearly the change of signal voltage values of 3 data lines a\b\c in the physical layer before and after the jump of the initial state of the signal value. Based on the signal value initial signal voltage included in the signal value initial state, namely the signal voltage corresponding to the A\B\C three lines in the channel in the signal value initial state, and the signal value final signal voltage included in the signal value final state, namely the signal voltage corresponding to the A\B\C three lines in the channel in the signal value final state. The signal voltage jump process diagram is generated through the electronic form, and the electronic form can be directly utilized to obtain the signal voltage jump process diagram without connecting an oscilloscope, so that the method is convenient and quick. In the signal voltage jump process diagram, the voltage change of the voltage value of 3 data lines A\B\C from the signal value initial signal voltage jump to the signal value final signal voltage can be clearly seen, and further a tester can flexibly test according to the diagram result. In one implementation scenario, the decoding process shown in table 9 is used to generate the signal voltage jump process diagram shown in fig. 11 according to the signal value initial signal voltage in the signal value initial state+x and the signal value final signal voltage in the signal value final state-Y. The signal voltage jump process diagram is generated through the electronic table, so that a tester can intuitively acquire the jump process of the initial state of the signal value, other professional instruments or permission spread are not needed, and the method is convenient and quick and easy to carry out flexible test.
In another embodiment, the signal value initial state further includes a signal value initial differential voltage, that is, a voltage difference between the data lines in the receiving-end comparator and a voltage corresponding to the a\b\c three lines in the channel. The signal value termination state further includes: the signal value is the final differential voltage, namely the voltage difference between the data lines in the receiving end comparator of the voltage corresponding to the A\B\C three lines in the channel. The C-PHY protocol does not contain clock lines, and the clock frequency is obtained by demodulating the data change edges in the decoding process. The differential voltage jump process diagram is generated through the electronic table, and the electronic table can be directly utilized to obtain the differential voltage jump process diagram without connecting an oscilloscope, so that the differential voltage jump process diagram is convenient and quick. In the differential voltage jump process diagram, the change of the voltage difference between the lines acquired by the receiving end in the initial state of the signal value after jump and the adjacent voltage difference of the lines acquired by the receiving end can be clearly seen, and therefore a tester can flexibly test according to the diagram result. In one implementation scenario, a signal value state decoding process as shown in table 9 is used to generate a differential voltage jump process diagram as shown in fig. 12 based on the signal value initial differential voltage in the signal value initial state +x and the signal value final differential voltage in the signal value final state-Y. The electronic table is used for generating the differential voltage jump process diagram, so that a tester can intuitively determine the jump process of the initial state of the signal value according to the generated differential voltage jump process diagram, and further the process of decoding the signal value state by the tester is facilitated to be interpreted.
Fig. 13 is a flowchart of a decoding method according to an exemplary embodiment, and as shown in fig. 13, the decoding method 40 includes the following steps S41 to S44.
In step S41, a signal value initial state and a signal value final state corresponding to the signal value initial state are acquired.
In step S42, decoding is performed in the process of jumping the signal value initial state to the signal value final state based on the obtained signal value initial state and the signal value final state corresponding to the signal value initial state, so as to obtain the symbol code corresponding to the jumping and the symbol code value corresponding to the symbol code, and the symbol code value is displayed through the electronic table, so that decoding is completed.
In the present disclosure, the embodiments of step S41 and step S42 are the same as the embodiments of step S31 and step S32 in the decoding method 30, and are not described in detail herein.
In step S43, a plurality of symbol codes whose signal value initial states correspond to the occurrence of continuous transitions are acquired.
In the embodiment of the disclosure, the data transmission process based on the C-PHY protocol is to continuously change the signal value state to form symbol codes, thereby completing the data transmission. The continuous hopping process of the initial state of the signal value can be determined by acquiring a plurality of symbol codes of which the initial state of the signal value is continuously hopped. In practical application, the transmission data is data transmission in units of "words", and in the transmission process, the transmission data is 16bit binary data. Therefore, a plurality of continuous symbol codes are acquired, binary transmission data can be generated based on the mapping relation between the binary transmission data and the plurality of symbol codes, so that the computer can recognize the binary transmission data to obtain transmission data carried by the symbol codes, and in an implementation scenario, the generated binary transmission data can be 16-bit binary transmission data.
In step S44, one or more binary transmission data are obtained based on each symbol code and displayed through a spreadsheet.
In the disclosed embodiment, one binary transmission data corresponds to a plurality of consecutive symbol encodings, and different binary transmission data corresponds to a different plurality of consecutive symbol encodings. The binary transmission data is used for representing a continuous multi-jump process of the signal value state. The mapping relation between the binary transmission data and the plurality of symbol codes is stored in the electronic table in advance. And obtaining binary transmission data corresponding to the plurality of symbol codes based on the obtained continuous symbol codes and the mapping relation, and displaying the binary transmission data through a spreadsheet. The tester can clearly determine the specific content of the transmission data when the signal value initial state continuously jumps, and further is helpful for the tester to read the decoding process, and the understanding is clearer and more visual.
With the above-described embodiment, the mapping relationship between the plurality of symbol codes and the binary transmission data is stored in the electronic form in advance. And acquiring symbol codes generated by the occurrence of multiple jumps of the initial state of the signal value, converting the symbol codes into binary transmission data which can be identified by a computer according to the mapping relation, and displaying the binary transmission data by the electronic table. The tester can intuitively and clearly determine that when data transmission is performed based on the C-PHY protocol, the initial state of the signal value changes through continuous jump, the signal value state is changed to form symbol codes, the understanding of data transmission based on the C-PHY protocol is further deepened, and the use is more flexible when the coding/decoding test is performed.
In one implementation, the mapping between 7 symbol encodings and 16bit binary transmission data is stored in a spreadsheet. The mapping relationship between 7 symbol codes and 16bit binary transmission data can be implemented by a circuit diagram as shown in fig. 14, and the logic of the circuit is implemented in a spreadsheet by codes. And (3) each symbol code of the data on the left side of the circuit diagram, and the corresponding 16-bit binary transmission data on the left side, and forming a corresponding relation between each symbol code and the 16-bit binary transmission data according to the logic relation of the circuit diagram. The circuit logic relationship of the "mapping relationship between 7 symbol codes and 16bit binary transmission data" in fig. 14 is opposite to the circuit logic relationship of the "mapping relationship between 16bit binary transmission data and 7 symbol codes" in fig. 7. And generating mapped 16-bit binary transmission data of the symbol codes corresponding to the 7 continuous symbol code values based on the 7 continuous symbol code values corresponding to the initial states of the acquired signal values.
In another implementation scenario, according to the circuit logic in fig. 14, a table as shown in table 10 can be obtained by filling in the corresponding area of the electronic form based on the acquired initial state of the signal value and the corresponding 7 consecutive symbol values. By the table, a tester can intuitively and clearly observe the process of jumping from the initial state of the signal value to the state of the next signal value.
Table 10
Through table 11, 7 symbol code values of continuous jump are obtained to obtain 7 symbol codes, and then based on the mapping relation between 7 symbol codes stored in the electronic table and 16bit binary transmission data, 16bit binary transmission data as described in table 12 is obtained, so that when the initial state of the signal value is in multiple jump, the electronic table can directly obtain and determine the transmission data transmitted based on the C-PHY protocol, so that a tester can more easily understand the encoding/decoding process of the C-PHY protocol, and can more easily read the process of transmitting data based on the symbol codes.
Number of symbol symbol code value Flip Rotation polority
sym0 3 0 1 1
sym1 3 0 1 1
sym2 3 0 1 1
sym3 3 0 1 1
sym4 4 1 0 0
sym5 3 0 1 1
sym6 4 1 0 0
TABLE 11
Table 12
In yet another implementation scenario, according to the jump process of each signal value state in the table 10, the signal voltage corresponding to each signal value state and the voltage difference between each data line in the comparator at the receiving end can be obtained, so as to generate a signal voltage continuous jump process diagram as shown in fig. 15, or a differential voltage continuous jump process diagram as shown in fig. 16. And further, a tester can intuitively determine the jump process of the initial state of the signal value according to the generated differential voltage jump process diagram, thereby being beneficial to the tester to read the Symbol code.
Based on the same conception, the embodiments of the present disclosure also provide an encoding apparatus and a decoding apparatus.
It will be appreciated that, in order to implement the above-described functions, the encoding apparatus and the decoding apparatus provided in the embodiments of the present disclosure include corresponding hardware structures and/or software units that perform the respective functions. The disclosed embodiments may be implemented in hardware or a combination of hardware and computer software, in combination with the various example elements and algorithm steps disclosed in the embodiments of the disclosure. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Those skilled in the art may implement the described functionality using different approaches for each particular application, but such implementation is not to be considered as beyond the scope of the embodiments of the present disclosure.
Fig. 17 is a block diagram of an encoding apparatus according to an exemplary embodiment. Referring to fig. 17, the encoding apparatus 100 includes an acquisition unit 101 and an encoding unit 102.
The acquiring unit 101 is configured to acquire an initial state of a signal value, and acquire a symbol code value of a symbol corresponding to a hopped signal value initial state and a symbol code corresponding to the symbol code value, where different symbol codes are used to characterize hopping processes of different signal value states.
The encoding unit 102 is configured to, based on the obtained signal value initial state and the symbol encoding value that the signal value initial state corresponds to, hop the signal value initial state according to the symbol encoding corresponding to the symbol encoding value, and display, through the electronic table, the signal value final state after the signal value initial state is hopped, thereby completing encoding.
In one embodiment, the obtaining unit 101 obtains the symbol code value corresponding to the hopped symbol code value and the symbol code corresponding to the symbol code value in the initial state of the signal value in the following manner: acquiring one or more binary transmission data, wherein each binary transmission data corresponds to a plurality of continuous symbol codes and is used for representing a plurality of continuous jump processes of signal value states; based on the binary transmission data, a plurality of symbol codes corresponding to the initial state of the signal value and a plurality of symbol code values corresponding to the symbol codes are obtained, and the symbol codes are displayed through a spreadsheet.
In another embodiment, each binary transmission data corresponds to a plurality of consecutive symbol encodings, respectively, comprising: each 16-bit binary transmission data corresponds to seven consecutive symbol codes, respectively.
In yet another embodiment, the signal value initial state includes: signal value initial signal voltage; the signal value termination state includes: the signal value terminates the signal voltage. The encoding apparatus 100 further includes: and the display unit is used for displaying a signal voltage jump process diagram corresponding to the signal value initial state in the electronic table based on the signal value initial signal voltage and the signal value final signal voltage corresponding to the signal value initial signal voltage.
In yet another embodiment, the signal value initial state further includes: signal value initial differential voltage; the signal value termination state further includes: the signal value is the final differential voltage; the display unit is further configured to: and displaying a differential voltage jump process diagram corresponding to the initial state of the signal value in the electronic table based on the initial differential voltage of the signal value and the final differential voltage of the signal value corresponding to the initial differential voltage of the signal value.
Fig. 18 is a block diagram of a decoding apparatus according to an exemplary embodiment. Referring to fig. 18, the decoding apparatus 200 includes a state acquisition unit 201 and a decoding unit 202.
The state acquisition unit 201 is configured to acquire a signal value initial state and a signal value final state corresponding to the signal value initial state.
The decoding unit 220 is configured to decode a process of jumping from the initial state of the signal value to the final state of the signal value based on the acquired initial state of the signal value and the final state of the signal value corresponding to the initial state of the signal value, obtain a symbol code corresponding to the symbol code that is jumped and a symbol code value corresponding to the symbol code, and display the symbol code value through a spreadsheet to complete decoding; different symbol codes correspond to different symbol code values and are used for representing different jump processes of signal value states.
In an embodiment, the decoding unit 202 is further configured to: acquiring a plurality of symbol codes of which the initial states of the signal values are corresponding to continuous jump; and obtaining one or more binary transmission data based on each symbol code, and displaying the binary transmission data through a spreadsheet, wherein each binary transmission data corresponds to a plurality of continuous symbol codes respectively and is used for representing a continuous multi-jump process of signal value states.
In another embodiment, each binary transmission data corresponds to a plurality of consecutive symbol encodings, respectively, comprising: each 16-bit binary transmission data corresponds to seven consecutive symbol codes, respectively.
In yet another embodiment, the signal value initial state includes: signal value initial signal voltage; the signal value termination state includes: the signal value terminates the signal voltage; the decoding apparatus 200 further includes: and the display unit is used for displaying a signal voltage jump process diagram corresponding to the signal value initial state in the electronic table based on the signal value initial signal voltage and the signal value final signal voltage corresponding to the signal value initial signal voltage.
In yet another embodiment, the signal value initial state further includes: signal value initial differential voltage; the signal value termination state further includes: the signal value is the final differential voltage; the display unit is further configured to: and displaying a differential voltage jump process diagram corresponding to the initial state of the signal value in the electronic table based on the initial differential voltage of the signal value and the final differential voltage of the signal value corresponding to the initial differential voltage of the signal value.
The specific manner in which the individual units perform the operations in relation to the apparatus of the above embodiments has been described in detail in relation to the embodiments of the method and will not be described in detail here.
In the present disclosure, there is also provided another encoding apparatus including: a memory for storing instructions; and a processor for invoking the instructions stored in the memory to perform any one of the encoding methods described above.
In this disclosure, there is also provided a computer-readable storage medium storing instructions that, when executed by a processor, perform any of the above-described encoding methods.
In the present disclosure, there is also provided another decoding apparatus including: a memory for storing instructions; and a processor for invoking the instructions stored in the memory to perform any one of the above decoding methods.
In this disclosure, there is also provided another computer-readable storage medium storing instructions that, when executed by a processor, perform any of the above-described decoding methods.
It is further understood that the term "plurality" in this disclosure means two or more, and other adjectives are similar thereto. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship. The singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It will be further understood that although operations are depicted in the drawings in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results. In certain circumstances, multitasking and parallel processing may be advantageous.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (24)

1. A method of encoding, the method comprising:
acquiring an initial state of a signal value;
acquiring a symbol code value corresponding to the signal value initial state and a symbol code corresponding to the symbol code value, wherein different symbol codes are used for representing different jump processes of the signal value state, and the signal value initial state is changed from one signal value state to another signal value state by jumping, and the jump is realized based on the symbol codes;
and based on the acquired signal value initial state and the symbol code value corresponding to the signal value initial state, carrying out jump on the signal value initial state according to the symbol code corresponding to the symbol code value, and displaying the signal value final state after the signal value initial state is jumped through a spreadsheet, wherein the spreadsheet comprises the mapping relation between the signal value initial state and the symbol code value.
2. The encoding method according to claim 1, wherein the obtaining the symbol code value of the jump corresponding to the initial state of the signal value and the symbol code corresponding to the symbol code value includes:
Acquiring one or more binary transmission data, wherein each binary transmission data corresponds to a plurality of continuous symbol codes respectively and is used for representing a plurality of continuous jump processes of signal value states;
and based on the binary transmission data, acquiring a plurality of symbol codes corresponding to the signal value initial state and the symbol code values corresponding to the symbol codes, and displaying the symbol codes through the electronic table.
3. The encoding method according to claim 2, wherein each binary transmission data corresponds to a plurality of consecutive symbol codes, respectively, comprising: each 16-bit binary transmission data corresponds to seven consecutive symbol codes, respectively.
4. The coding method according to claim 1 or 2, characterized in that,
the signal value initial state includes: signal value initial signal voltage;
the signal value termination state includes: the signal value terminates the signal voltage;
the encoding method further includes:
and displaying a signal voltage jump process diagram corresponding to the signal value initial state in the electronic table based on the signal value initial signal voltage and the signal value final signal voltage corresponding to the signal value initial signal voltage.
5. The encoding method according to claim 4, wherein,
the signal value initial state further includes: signal value initial differential voltage;
the signal value termination state further includes: the signal value is the final differential voltage;
the encoding method further includes:
and displaying a differential voltage jump process diagram corresponding to the initial state of the signal value in the electronic table based on the initial differential voltage of the signal value and the final differential voltage of the signal value corresponding to the initial differential voltage of the signal value.
6. A decoding method, the decoding method comprising:
acquiring a signal value initial state and a signal value final state corresponding to the signal value initial state;
decoding a process of jumping the signal value initial state to the signal value final state based on the acquired signal value initial state and the signal value final state corresponding to the signal value initial state to obtain a corresponding jumping symbol code and a symbol code value corresponding to the symbol code, and displaying the symbol code value through a spreadsheet to finish the decoding, wherein the jumping of the signal value initial state from one signal value state to another signal value state is realized based on the symbol code, and the spreadsheet comprises a mapping relation between the signal value initial state and the symbol code value;
Different symbol codes correspond to different symbol code values and are used for representing different jump processes of signal value states.
7. The decoding method of claim 6, wherein the decoding method further comprises:
acquiring a plurality of symbol codes corresponding to the initial state of the signal value and generating continuous jump;
and obtaining one or more binary transmission data based on each symbol code, and displaying the binary transmission data through the electronic table, wherein each binary transmission data corresponds to a plurality of continuous symbol codes respectively and is used for representing a continuous multi-jump process of signal value states.
8. The decoding method of claim 7, wherein each binary transmission data corresponds to a plurality of consecutive symbol codes, respectively, comprising: each 16-bit binary transmission data corresponds to seven consecutive symbol codes, respectively.
9. The decoding method according to claim 6 or 7, wherein,
the signal value initial state includes: signal value initial signal voltage;
the signal value termination state includes: the signal value terminates the signal voltage;
the decoding method further includes:
and displaying a signal voltage jump process diagram corresponding to the signal value initial state in the electronic table based on the signal value initial signal voltage and the signal value final signal voltage corresponding to the signal value initial signal voltage.
10. The decoding method of claim 9, wherein,
the signal value initial state further includes: signal value initial differential voltage;
the signal value termination state further includes: the signal value is the final differential voltage;
the decoding method further includes:
and displaying a differential voltage jump process diagram corresponding to the initial state of the signal value in the electronic table based on the initial differential voltage of the signal value and the final differential voltage of the signal value corresponding to the initial differential voltage of the signal value.
11. An encoding device, characterized in that the encoding device comprises:
the acquisition unit is used for acquiring a signal value initial state, a symbol code value corresponding to the signal value initial state and a symbol code corresponding to the symbol code value, wherein different symbol codes are used for representing different jump processes of the signal value state, and the signal value initial state is changed from one signal value state to another signal value state by jumping, and the jump is realized based on the symbol codes;
the coding unit is used for jumping the signal value initial state according to the symbol code corresponding to the symbol code value based on the acquired signal value initial state and the symbol code value corresponding to the signal value initial state, displaying the signal value final state after the signal value initial state jumps through a spreadsheet, and finishing the coding, wherein the spreadsheet comprises the mapping relation between the signal value initial state and the symbol code value.
12. The encoding device according to claim 11, wherein the acquiring unit acquires the symbol code value corresponding to the jump occurrence of the initial state of the signal value and the symbol code corresponding to the symbol code value by:
acquiring one or more binary transmission data, wherein each binary transmission data corresponds to a plurality of continuous symbol codes respectively and is used for representing a plurality of continuous jump processes of signal value states;
and based on the binary transmission data, acquiring a plurality of symbol codes corresponding to the signal value initial state and the symbol code values corresponding to the symbol codes, and displaying the symbol codes through the electronic table.
13. The encoding device according to claim 12, wherein each binary transmission data corresponds to a plurality of consecutive symbol codes, respectively, comprising: each 16-bit binary transmission data corresponds to seven consecutive symbol codes, respectively.
14. The coding device according to claim 11 or 12, wherein,
the signal value initial state includes: signal value initial signal voltage;
the signal value termination state includes: the signal value terminates the signal voltage;
The encoding device further includes:
and the display unit is used for displaying a signal voltage jump process diagram corresponding to the signal value initial state in the electronic table based on the signal value initial signal voltage and the signal value final signal voltage corresponding to the signal value initial signal voltage.
15. The coding apparatus of claim 14, wherein the code is configured to,
the signal value initial state further includes: signal value initial differential voltage;
the signal value termination state further includes: the signal value is the final differential voltage;
the display unit is further configured to:
and displaying a differential voltage jump process diagram corresponding to the initial state of the signal value in the electronic table based on the initial differential voltage of the signal value and the final differential voltage of the signal value corresponding to the initial differential voltage of the signal value.
16. A decoding device, characterized in that the decoding device comprises:
the state acquisition unit is used for acquiring a signal value initial state and a signal value final state corresponding to the signal value initial state;
the decoding unit is used for decoding the process of jumping the signal value initial state to the signal value final state based on the acquired signal value initial state and the signal value final state corresponding to the signal value initial state to obtain a corresponding jumping symbol code and a symbol code value corresponding to the symbol code, and displaying the symbol code value through a spreadsheet to finish the decoding, wherein the jumping of the signal value initial state from one signal value state to another signal value state is realized based on the symbol code, and the spreadsheet comprises the mapping relation between the signal value initial state and the symbol code value;
Different symbol codes correspond to different symbol code values and are used for representing different jump processes of signal value states.
17. The decoding device of claim 16, wherein the decoding unit is further configured to:
acquiring a plurality of symbol codes corresponding to the initial state of the signal value and generating continuous jump;
and obtaining one or more binary transmission data based on each symbol code, and displaying the binary transmission data through the electronic table, wherein each binary transmission data corresponds to a plurality of continuous symbol codes respectively and is used for representing a continuous multi-jump process of signal value states.
18. The decoding apparatus of claim 17, wherein each binary transmission data corresponds to a plurality of consecutive symbol codes, respectively, comprising: each 16-bit binary transmission data corresponds to seven consecutive symbol codes, respectively.
19. The decoding device according to claim 16 or 17, wherein,
the signal value initial state includes: signal value initial signal voltage;
the signal value termination state includes: the signal value terminates the signal voltage;
the decoding apparatus further includes:
and the display unit is used for displaying a signal voltage jump process diagram corresponding to the signal value initial state in the electronic table based on the signal value initial signal voltage and the signal value final signal voltage corresponding to the signal value initial signal voltage.
20. The decoding device of claim 19, wherein,
the signal value initial state further includes: signal value initial differential voltage;
the signal value termination state further includes: the signal value is the final differential voltage;
the display unit is further configured to:
and displaying a differential voltage jump process diagram corresponding to the initial state of the signal value in the electronic table based on the initial differential voltage of the signal value and the final differential voltage of the signal value corresponding to the initial differential voltage of the signal value.
21. An encoding apparatus, wherein the encoding apparatus comprises:
a memory for storing instructions; and
a processor for invoking said memory-stored instructions to perform the encoding method of any of claims 1-5.
22. A computer readable storage medium having stored therein instructions which, when executed by a processor, perform the encoding method of any of claims 1-5.
23. A decoding apparatus, wherein the decoding apparatus comprises:
a memory for storing instructions; and
a processor for invoking instructions stored in said memory to perform a decoding method as claimed in any of claims 6-10.
24. A computer readable storage medium having stored therein instructions which, when executed by a processor, perform the decoding method of any of claims 6-10.
CN202010442632.9A 2020-05-22 2020-05-22 Encoding method and apparatus, decoding method and apparatus, and storage medium Active CN113727104B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010442632.9A CN113727104B (en) 2020-05-22 2020-05-22 Encoding method and apparatus, decoding method and apparatus, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010442632.9A CN113727104B (en) 2020-05-22 2020-05-22 Encoding method and apparatus, decoding method and apparatus, and storage medium

Publications (2)

Publication Number Publication Date
CN113727104A CN113727104A (en) 2021-11-30
CN113727104B true CN113727104B (en) 2024-01-16

Family

ID=78671334

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010442632.9A Active CN113727104B (en) 2020-05-22 2020-05-22 Encoding method and apparatus, decoding method and apparatus, and storage medium

Country Status (1)

Country Link
CN (1) CN113727104B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101411197A (en) * 2006-03-27 2009-04-15 高通股份有限公司 Methods and systems for refinement coefficient coding in video compression
CN102550027A (en) * 2009-10-06 2012-07-04 思科技术公司 Locally variable quantization and hybrid variable length coding for image and video compression
CN108391129A (en) * 2018-04-25 2018-08-10 西安万像电子科技有限公司 Data-encoding scheme and device
CN109450596A (en) * 2018-11-12 2019-03-08 湖南瑞利德信息科技有限公司 Coding method, coding/decoding method, encoding device, decoding device, storage medium and terminal
CN110927560A (en) * 2019-12-16 2020-03-27 无锡矽鹏半导体检测有限公司 Integrated circuit testing method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040206821A1 (en) * 1994-03-04 2004-10-21 Andrew Longacre Autodiscriminating bar code reading apparatus having solid state image sensor
GB2454193B (en) * 2007-10-30 2012-07-18 Sony Corp Data processing apparatus and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101411197A (en) * 2006-03-27 2009-04-15 高通股份有限公司 Methods and systems for refinement coefficient coding in video compression
CN102550027A (en) * 2009-10-06 2012-07-04 思科技术公司 Locally variable quantization and hybrid variable length coding for image and video compression
CN108391129A (en) * 2018-04-25 2018-08-10 西安万像电子科技有限公司 Data-encoding scheme and device
CN109450596A (en) * 2018-11-12 2019-03-08 湖南瑞利德信息科技有限公司 Coding method, coding/decoding method, encoding device, decoding device, storage medium and terminal
CN110927560A (en) * 2019-12-16 2020-03-27 无锡矽鹏半导体检测有限公司 Integrated circuit testing method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
超大规模集成电路测试数据编码压缩技术研究;鞠子剑;《北京工业大学》;全文 *

Also Published As

Publication number Publication date
CN113727104A (en) 2021-11-30

Similar Documents

Publication Publication Date Title
JP2853230B2 (en) Digital filter device
KR20150121724A (en) Transcoding method for multi-wire signaling that embeds clock information in transition of signal state
CN108280039B (en) Input signal decoding circuit of MIPI C-Phy RX end
CN108694918A (en) Coding method and device, coding/decoding method and device and display device
CN110474711B (en) Encoding method, apparatus and readable storage medium
WO2019214141A1 (en) Coding method and device, and readable storage medium
CN113727104B (en) Encoding method and apparatus, decoding method and apparatus, and storage medium
CN104657481A (en) Data storage method and device and data query method and device
US20160226682A1 (en) Multi-modulation for data-link power reduction and throughput enhancement
US20180062978A1 (en) Sliced architecture for a current mode driver
WO2019214140A1 (en) Coding method, device and readable storage medium
JP6818055B2 (en) Error rate measuring device and error rate measuring method
CN116017733A (en) Resource determination method, first communication node, second communication node and storage medium
JP2007306212A (en) Transmitter, receiver, communication system, and communication method
CN113196661A (en) Data processing method and related device
CN112148661A (en) Data processing method and electronic equipment
CN111371530B (en) Quadrature Amplitude Modulation (QAM) signal modulation and demodulation method and device
KR101723336B1 (en) Binary data compression and decompression method
CN105530539B (en) Coding/decoding method and device
CN108881097B (en) Gray code-based square QAM constellation diagram coding method and system
CN109309548B (en) Encoding method, apparatus and readable storage medium
US8417757B2 (en) Method and apparatus for modulo N calculation wherein calculation result is applied to match speeds in wireless communication system
CN107094050B (en) The device and method for handling digital signal
CN110336674A (en) Data processing method, device, computer equipment and storage medium
CN110958076B (en) Data transmission method and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant