Eye margin testing method and electronic equipment for executing testing operation based on eye margin testing method

By converting the received analog signal into a digital signal, generating and adjusting the recovered clock signal to obtain the eye margin code, it solves the problem of difficult to determine the eye margin of the receiver signal in semiconductor circuits, and achieves effective evaluation and optimization of the receiver signal quality. .

CN118646524APending Publication Date: 2024-09-13SAMSUNG ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410277405.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-03-13
Filing Date
2024-03-12
Publication Date
2024-09-13

AI Technical Summary

Technical Problem

In receivers implemented in semiconductor circuits, it is difficult to determine the eye margin of the signal inside the receiver, especially when the data signal is affected by noise effects such as inter-symbol interference.

Method used

By receiving the analog input signal, converting it into a digital signal, generating a recovered clock signal, and using the delay control code to adjust the clock signal and data signal to obtain the first and second delay margin codes, and finally obtain the eye margin code through addition, Used to determine the signal quality of the receiver.

Benefits of technology

Effectively identifies and measures the eye margin of signals within a receiver, helping to determine whether signals are defective and can be used to design and optimize receiver performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118646524A
    Figure CN118646524A
Patent Text Reader

Abstract

The invention discloses an eye margin testing method and an electronic device for executing testing operation based on the eye margin testing method. The eye margin testing method includes receiving an analog input signal, receiving the analog input signal, generating a recovered clock signal based on a digital input signal, delaying the recovered clock signal by adjusting a first delay control code, obtaining a first delay margin code based on the delayed recovered clock signal, and testing the eye margin based on the first delay margin code. A digital input signal is delayed by adjusting a second delay control code, a second delay margin code is obtained based on the delayed digital input signal, and an eye margin code is obtained by adding the first delay margin code and the second delay margin code.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims the benefit of priority from Korean Patent Application No. 10-2023-0032815 filed on March 13, 2023 in the Korean Intellectual Property Office, the disclosure of which is incorporated herein by reference in its entirety. Technical Field

[0002] Various exemplary embodiments of the inventive concept relate to an eye margin test method, an electronic device for performing a test operation based thereon, and / or a system for performing a test operation based thereon, and more particularly, to a method, a device, and / or a system including a device for obtaining an eye margin from an input signal and a recovered clock signal, and the like. Background Art

[0003] The data signal and / or electronic signal transmitted from the transmitter may be attenuated due to noise effects such as inter-symbol interference (ISI), etc. Therefore, when designing a receiver, it may be desirable and / or necessary to check the amount of eye margin in the data signal. Here, the eye margin may represent the length of the eye relative to the time axis in an "eye diagram of a data signal in which the cumulative waveform of the received data signal is represented on the time axis." Unlike testing the eye margin through a computer simulation that may be idealized and an inaccurate representation of a real-world data signal, when the receiver is implemented as a semiconductor circuit, it may be difficult to determine the eye margin of a signal inside the receiver. Therefore, a method of identifying the eye margin of a signal inside a receiver is desired and / or required. Summary of the invention

[0004] Various example embodiments of the inventive concept provide a method of testing an eye margin of a signal received by a receiver that receives a signal transmitted from a transmitter, an electronic device that performs a test operation based on the eye margin testing method, and / or a system including the electronic device, and the like.

[0005] According to at least one example embodiment of the inventive concept, a method for testing an eye margin is provided, the eye margin testing method comprising: receiving an analog input signal, converting the analog input signal into a digital input signal, generating a recovered clock signal based on the digital input signal, delaying the recovered clock signal by adjusting a first delay control code, obtaining a first delay margin code based on the delayed recovered clock signal, delaying the digital input signal by adjusting a second delay control code, obtaining a second delay margin code based on the delayed digital input signal, and obtaining an eye margin code by adding the first delay margin code to the second delay margin code.

[0006] According to at least one example embodiment of the inventive concept, an electronic device is provided, comprising: a processing circuit configured to: receive an analog input signal and convert the analog input signal into a digital input signal, generate a recovered clock signal based on the digital input signal, generate a first delay control code and a second delay control code, generate a delayed recovered clock signal from the recovered clock signal based on the first delay control code, and generate a delayed input signal from the digital input signal based on the second delay control code.

[0007] According to at least one example embodiment of the inventive concept, an electronic device is provided, comprising: a processing circuit configured to generate a mode control signal, an input delay control code, and a clock signal delay control code, generate a second input signal delayed from a first input signal based on the input delay control code, output one of the first input signal and the second input signal as a selected input signal based on the mode control signal, generate a recovered clock signal based on the selected input signal, and generate a delayed recovered clock signal from the recovered clock signal based on the clock signal delay control code.

[0008] According to at least one example embodiment of the inventive concept, a method for testing an electronic device is provided, the method comprising: receiving an analog input signal, converting the analog input signal into a digital input signal, generating a recovered clock signal based on the digital input signal, delaying the recovered clock signal by adjusting a first delay control code, delaying the recovered clock signal by adjusting the first delay control code, delaying the digital input signal by adjusting a second delay control code, obtaining a second delay margin code based on the delayed digital input signal, obtaining an eye margin code by adding the first delay margin code to the second delay margin code, and determining whether the electronic device is defective based on the eye margin code. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] Various exemplary embodiments of the inventive concept will be more clearly understood from the following detailed description taken in conjunction with the accompanying drawings, in which:

[0010] Figure 1 is a block diagram schematically illustrating an electronic device according to at least one example embodiment;

[0011] FIG. 2A to FIG. 2D is a diagram illustrating an eye margin testing method according to at least one example embodiment;

[0012] Figure 3 is a flow chart illustrating an eye margin testing method according to at least one example embodiment;

[0013] Figure 4 is a flowchart illustrating a method of obtaining a first delay margin code according to at least one example embodiment;

[0014] Figure 5 is a flowchart illustrating a method of obtaining a second delay margin code according to at least one example embodiment;

[0015] Figure 6 is a diagram illustrating a method of obtaining an eye margin code according to at least one example embodiment;

[0016] Figure 7 is a block diagram specifically illustrating an electronic device according to at least one example embodiment;

[0017] FIG. 8A to FIG. 8D is a timing diagram of signals of an electronic device over time according to at least one example embodiment;

[0018] Fig. 9 is a flowchart illustrating a method of operating an electronic device according to at least one example embodiment;

[0019] Fig.10 is a diagram illustrating a delayed input signal according to at least one example embodiment;

[0020] Fig.11 is a timing diagram of a signal relative to a reference clock signal according to at least one example embodiment; and

[0021] Fig.12 is a block diagram illustrating a system on chip according to at least one example embodiment. DETAILED DESCRIPTION

[0022] Hereinafter, various exemplary embodiments of the inventive concept will be described in detail with reference to the accompanying drawings.

[0023] Figure 1 is a block diagram schematically illustrating an electronic device according to at least one example embodiment.

[0024] The electronic device 100 may be implemented as one of various devices such as a desktop computer, a laptop computer, a server, a tablet computer, a smart phone, a wearable device, an Internet of Things (IoT) device, a video game console, a home appliance, a medical device, etc.

[0025] However, example embodiments of the inventive concept are not limited thereto, and in some example embodiments, the electronic device 100 may be implemented as any single electronic device. In some example embodiments, the electronic device 100 may be implemented as a package-level circuit, module, chip, and / or object.

[0026] The electronic device 100 may include an interface circuit 110, a selector 120, a clock signal recovery circuit 130, a first delay circuit 140, a second delay circuit 150, a deserializer 160, a reference eye margin detector 170 and / or a controller 180, etc., but is not limited thereto, and for example, may include a greater or lesser number of constituent components. According to some example embodiments, the interface circuit 110, the selector 120, the clock signal recovery circuit 130, the first delay circuit 140, the second delay circuit 150, the deserializer 160, the reference eye margin detector 170 and / or the controller 180, etc. may be implemented as a processing circuit. The processing circuit may include hardware or a hardware circuit including a logic circuit; a hardware / software combination (such as a processor that executes software and / or firmware); or a combination thereof. For example, the processing circuit may more specifically include, but is not limited to, a central processing unit (CPU), an arithmetic logic unit (ALU), a digital signal processor, a microcomputer, a field programmable gate array (FPGA), a system on a chip (SoC), a programmable logic unit, a microprocessor, an application-specific integrated circuit (ASIC), etc., but is not limited thereto.

[0027] The interface circuit 110 may receive an analog input signal A_IN and convert the analog input signal A_IN into a digital input signal D_IN. The analog input signal A_IN may be at least one signal transmitted from an external transmitter (not shown) such as an electrical signal transmitter (e.g., a high-speed data bus transmitter, etc.), a radio frequency-based transmitter (e.g., a wireless network transmitter, etc.), but example embodiments are not limited thereto. Figures 1 to 12 In the description, for the sake of clarity and brevity, it is assumed that the example embodiments implement a C-physical layer (C-PHY) interface protocol, but the example embodiments are not limited thereto and the example embodiments may also be modified to implement other data interface protocols.

[0028] In some example embodiments, the analog input signal A_IN may be a three-phase signal including a first sub-signal, a second sub-signal, and a third sub-signal, but the example embodiments are not limited thereto. For example, the analog input signal A_IN may be a signal generated according to and / or based on a C-PHY interface protocol, but the example embodiments are not limited thereto, and the signal may be generated based on other protocols. According to the C-PHY interface protocol, each of the first sub-signal, the second sub-signal, and the third sub-signal may have any one of a high voltage level, a medium voltage level, and a low voltage level defined by the C-PHY interface protocol, but the example embodiments are not limited thereto, and if a protocol other than the C-PHY interface protocol is implemented, other voltage levels may be considered.

[0029] The interface circuit 110 may convert the analog input signal A_IN into a digital input signal D_IN based on the voltage level difference between the first sub-signal, the second sub-signal, and / or the third sub-signal. Figure 7 The specific operation of converting the analog input signal A_IN into the digital input signal D_IN through the interface circuit 110 is described.

[0030] The second delay circuit 150 may generate a delayed input signal (or referred to as a delayed digital input signal) DL_IN based on the digital input signal D_IN under the control of a second delay control code DC2 (e.g., a delay control signal, a delay signal, etc.). The second delay control code DC2 may be a signal for adjusting the delay length of the digital input signal D_IN. The second delay circuit 150 may generate a delayed input signal DL_IN based on the digital input signal D_IN and a time length (e.g., a delay time period, etc.) indicated by and / or corresponding to the second delay control code DC2.

[0031] The selector 120 may receive the digital input signal D_IN and the delayed input signal DL_IN, and output the digital input signal D_IN or the delayed input signal DL_IN under the control of a mode control signal MC (e.g., a mode signal, etc.). For example, when the mode control signal MC has a value of "1" corresponding to the eye margin test mode or the dual mode, the selector 120 may output the digital input signal D_IN under the control of the mode control signal MC, but example embodiments are not limited thereto.

[0032] Furthermore, when the mode control signal MC has a value of '0' corresponding to the skew compensation mode, the selector 120 may output the delayed input signal DL_IN under the control of the mode control signal MC, but example embodiments are not limited thereto.

[0033] The clock signal recovery circuit 130 may generate a recovery clock signal REC_CLK based on the output of the selector 120. In other words, the clock signal recovery circuit 130 may recover a clock signal corresponding to the phase and / or frequency of the digital input signal D_IN and / or the delayed input signal DL_IN output by the selector 120. For example, the clock signal recovery circuit 130 may generate the recovery clock signal REC_CLK so that the edge of the clock signal is placed at the center of the digital input signal D_IN and / or the delayed input signal DL_IN. In some example embodiments, the clock signal recovery circuit 130 may be a clock signal and data recovery (CDR) circuit that recovers the clock signal and / or data based on the output of the selector 120.

[0034] The first delay circuit 140 may generate a delayed recovered clock signal DL_CLK from the recovered clock signal REC_CLK under the control of a first delay control code DC1 (eg, a delay control signal, a delay signal, etc.).

[0035] The first delay control code DC1 may be a signal for adjusting the delay length of the recovered clock signal REC_CLK. The first delay circuit 140 may generate a delayed recovered clock signal DL_CLK based on the recovered clock signal REC_CLK for a time length (e.g., a delay period, etc.) indicated by and / or corresponding to the first delay control code DC1.

[0036] The deserializer 160 may generate at least one sampling signal SAMP based on the delayed input signal DL_IN and / or the delayed recovered clock signal DL_CLK. In other words, the deserializer 160 may generate the sampling signal SAMP by sampling the delayed input signal DL_IN at the rising edge and the falling edge of the delayed recovered clock signal DL_CLK, but is not limited thereto.

[0037] As will be referred to later Fig.10 As described above, the delayed input signal DL_IN may include a preamble interval for receiving a preamble signal having a desired periodic waveform and a packet data interval for receiving packet data. The preamble signal may be a signal (e.g., a header signal, etc.) received before the packet data is received by the electronic device 100. The reference eye margin detector 170 may detect a reference clock signal from the delayed input signal DL_IN having a first frequency pulse waveform in the preamble interval. Thereafter, the controller 180 may use and / or test the eye margin based on the packet data interval.

[0038] The reference eye margin detector 170 may detect a reference clock signal from a delayed input signal DL_IN having a first frequency pulse waveform. For example, the delayed input signal DL_IN may include a preamble signal having a first frequency pulse waveform, etc.

[0039] The reference eye margin detector 170 may detect a reference clock signal having a second frequency pulse waveform having a second frequency higher than a first frequency of the first frequency pulse waveform based on the pilot signal, but example embodiments are not limited thereto. In one example, the reference eye margin detector 170 may obtain a reference eye margin code from the reference clock signal.

[0040] In addition, the reference eye margin detector 170 may generate a code and / or signal corresponding to a half period (e.g., half of a duty cycle) of the second frequency pulse waveform using the second frequency and / or operating speed (e.g., operating frequency, clock frequency, etc.) of the electronic device 100. For example, when the electronic device 100 operates at a speed of 10 GPs, the half period of the second frequency pulse waveform may be 0.1 ns, which is the reciprocal of 10 GPs. Here, the code corresponding to the half period of the second frequency pulse waveform may be referred to as a reference eye margin code (REMC) or a unit interval (UI) code.

[0041] exist Figure 1 , the reference eye margin detector 170 has been shown as a component separate from the controller 180, but in some example embodiments, the reference eye margin detector 170 may be a component of the controller 180, or in other words, the controller 180 may execute Figure 1 The operation of the reference eye margin detector 170 and / or one or more other components, etc.

[0042] The controller 180 may generate a first delay control code DC1, a second delay control code DC2, and / or a mode control signal MC, etc. The controller 180 may control the first delay circuit 140, the second delay circuit 150, and / or the selector 120, etc. by adjusting the first delay control code DC1, the second delay control code DC2, and / or the mode control signal MC, respectively.

[0043] The controller 180 may include and / or store test data 181 for an eye margin test. The test data 181 may include the same data as the analog input signal A_IN transmitted by an external transmitter (not shown), but example embodiments are not limited thereto, and for example, the test data 181 may be random test data, generated test data, and / or preconfigured test data, etc. By adjusting the first delay control code DC1 and / or the second delay control code DC2, the controller 180 may determine, calculate, and / or obtain the first delay control code DC1 and / or the second delay control code DC2 (e.g., the delay length of the clock signal and / or the digital input signal, etc.) that makes the number of sampling errors equal to or greater than a desired threshold value (e.g., a desired error threshold value, etc.). The controller 180 may obtain an eye margin code corresponding to the eye margin from the first delay control code DC1 and / or the second delay control code DC2 that makes the number of sampling errors equal to or greater than the desired threshold value. At the same time, according to at least one example embodiment of the inventive concept, the number of sampling errors is measured for each sampling interval, and the first delay control code DC1 and / or the second delay control code DC2 in the sampling interval where the number of generated sampling errors exceeds the expected threshold can be used to determine, calculate and / or obtain the eye margin code.

[0044] Specifically, the controller 180 may adjust the first delay control code DC1 (as will be described later). Figure 2B ), and then detect, sense, count and / or obtain the number and / or amount of first sampling errors caused by the change of the first delay control code DC1 by determining whether the sampling signal SAMP and the test data 181 do not match. In addition, in the case where the number of first sampling errors is equal to or greater than the expected first threshold, the controller 180 may obtain and / or determine the first delay margin code from the first delay control code DC1.

[0045] In addition, the controller 180 may adjust the second delay control code DC2 (as will be described later). Figure 2C ), and then detect, sense, count and / or obtain the number and / or amount of second sampling errors caused by the change of the second delay control code DC2 by determining whether the sampling signal SAMP and the test data 181 do not match. In the case where the number of second sampling errors is equal to or greater than the expected second threshold value, the controller 180 may obtain and / or determine the second delay margin code from the second delay control code DC2.

[0046] The desired first threshold and the desired second threshold may be set differently according to and / or based on receiver design conditions and / or requirements. In addition, the desired first threshold and the desired second threshold may be set to the same value, but may be set to different values ​​according to one or more example embodiments.

[0047] As referenced later Figure 2D and Figure 6 As described above, the controller 180 may obtain and / or determine the eye margin code from the first delay margin code and / or the second delay margin code, but is not limited thereto. The eye margin code measured by the controller 180 in the packet data interval may be compared with the reference eye margin code REMC so that the goodness or badness of the measured eye margin may be effectively determined. For example, when the value of the reference eye margin code REMC is "32" and the value of the eye margin code is "16", the relative size of the eye margin code to the reference eye margin code REMC (the ratio of the eye margin code to the reference eye margin code REMC) may be 0.5, etc. For example, when the value of the eye margin code corresponds to 0.1ns, the eye margin of the delayed input signal DL_IN may be 0.05ns, which is half of 0.1ns, etc.

[0048] In some example embodiments, as later referenced Figure 8B As described above, the controller 180 may estimate a timing skew of the digital input signal D_IN based on the digital input signal D_IN, and may compensate for the timing skew of the digital input signal D_IN by adjusting the second delay control code DC2, but is not limited thereto.

[0049] The electronic device 100 according to at least one example embodiment may test an eye margin, etc., of a delayed input signal DL_IN from a digital input signal D_IN and / or a recovered clock signal REC_CLK generated based on the digital input signal D_IN.

[0050] In some example embodiments, the method for performing the eye margin test may be permanently or non-permanently deactivated after the test operation is completed.

[0051] FIG. 2A to FIG. 2D is a diagram illustrating an eye margin testing method according to at least one example embodiment. Figure 1 To describe FIG. 2A to FIG. 2D , but example embodiments are not limited thereto.

[0052] Figure 2A It may indicate the initial states of the delayed input signal DL_IN and the delayed recovered clock signal DL_CLK. Figure 2A The case where the digital input signal D_IN and the recovery clock signal REC_CLK are not delayed is shown, but example embodiments are not limited thereto. In other words, the digital input signal D_IN and the delayed input signal DL_IN may have the same phase, etc. In addition, the recovery clock signal REC_CLK and the delayed recovery clock signal DL_CLK may have the same phase, etc.

[0053] Reference Figure 2A , the delayed input signal DL_IN may be sampled at the rising edge and the falling edge of the delayed recovery clock signal DL_CLK, but is not limited thereto. Figure 2A As shown in, according to and / or based on the rising edge and falling edge of the delayed recovered clock signal DL_CLK, a sampling signal SAMP can be generated by sampling the (N-1)th delayed input signal DL_IN, the Nth delayed input signal DL_IN, the (N+1)th delayed input signal DL_IN and / or the (N+2)th delayed input signal DL_IN (where N is a natural number greater than or equal to 2), etc.

[0054] Reference Figure 1 , the controller 180 may include test data 181 for an eye margin test. The test data 181 may have the same value as the (N-1)th delayed input signal DL_IN, the Nth delayed input signal DL_IN, the (N+1)th delayed input signal DL_IN, and the (N+2)th delayed input signal DL_IN, but is not limited thereto. Therefore, when the digital input signal D_IN and the recovered clock signal REC_CLK are not delayed, the sampling signal SAMP matches the test data 181.

[0055] Figure 2B is a diagram illustrating a method of obtaining a first delay margin code by adjusting a first delay control code DC1. Figure 2B A case where the digital input signal D_IN is not delayed and only the recovery clock signal REC_CLK is delayed may be illustrated, but example embodiments are not limited thereto.

[0056] As the first delay control code DC1 increases, the delay time of the recovery clock signal REC_CLK may increase. When the recovery clock signal REC_CLK is delayed by the first delay time DELAY1 period or longer, the sampling signal SAMP sampled at the rising and falling edges of the delayed recovery clock signal DL_CLK and the test data 181 stored in the controller 180 may be mismatched (e.g., not matched). In at least one example embodiment of the inventive concept, the mismatch between the sampling signal SAMP and the test data 181 stored in the controller 180 may be referred to as a sampling error.

[0057] At the same time, the first delay control code DC1 is adjusted (e.g., changed) in each sampling interval, and the delayed input signal DL_IN may be sampled multiple times using the delayed recovery clock signal DL_CLK according to and / or based on the adjusted first delay control code DC1, and the number of sampling errors occurring for each delay value of the first delay control code DC1 may be counted. The value of the first delay control code DC1 in a specific sampling interval that makes the number of sampling errors equal to or greater than the expected threshold may be referred to as a first delay margin code.

[0058] Figure 2C is a diagram illustrating a method of obtaining a second delay margin code by adjusting the second delay control code DC2. Figure 2C It may be shown that the recovery clock signal REC_CLK is not delayed and only the digital input signal D_IN is delayed, but example embodiments are not limited thereto. As the second delay control code DC2 increases, the delay time of the digital input signal D_IN may increase. When the digital input signal D_IN is delayed for a second delay time DELAY2 period or longer, the sampling signal SAMP sampled at the rising and falling edges of the delayed recovery clock signal DL_CLK and the test data 181 stored in the controller 180 are mismatched (e.g., do not match).

[0059] At the same time, the second delay control code DC2 is adjusted (e.g., changed) in each sampling interval, and the delayed input signal DL_IN can be sampled multiple times using the delayed recovery clock signal DL_CLK according to the adjusted second delay control code DC2, and the number of sampling errors can be counted. The value of the second delay control code DC2 in a specific sampling interval that makes the number of sampling errors equal to or greater than the expected threshold value can be referred to as a second delay margin code.

[0060] Figure 2D The case where the first delay control code DC1 and the second delay control code DC2 are initialized after the eye margin test may be indicated, but example embodiments are not limited thereto. In other words, Figure 2D The delayed input signal DL_IN and the delayed recovered clock signal DL_CLK shown in FIG. 1 can be respectively connected to Figure 2A The delayed input signal DL_IN and the delayed recovery clock signal DL_CLK are the same, but not limited to this. Figure 2D is shown in Figure 2B The first delay time DELAY1 described with reference to Figure 2C The second delay time DELAY2 is described as being a time obtained by adding the first delay margin code and the second delay margin code, but example embodiments are not limited thereto. In addition, a code obtained by adding the first delay margin code and the second delay margin code may be referred to as an eye margin code.

[0061] Figure 3 is a flow chart illustrating an eye margin testing method according to at least one example embodiment. Figures 1 to 2D describe Figure 3 , but example embodiments are not limited thereto.

[0062] Reference Figure 3 , the eye margin testing method may include operations S110 to S160, but is not limited thereto.

[0063] In operation S110, the analog input signal A_IN may be received by the processing circuit of the electronic device 100. The analog input signal A_IN may represent a signal transmitted from an external transmitter (not shown) or the like.

[0064] In some example embodiments, the analog input signal A_IN may be a three-phase signal including a first sub-signal, a second sub-signal, and a third sub-signal, but is not limited thereto. For example, the analog input signal A_IN may be a signal generated according to a C-PHY interface protocol, but is not limited thereto. According to a C-physical layer (C-PHY) interface protocol, each of the first sub-signal, the second sub-signal, and the third sub-signal may have any one of a high voltage level, a medium voltage level, and a low voltage level.

[0065] In operation S120, the processing circuit of the electronic device 100 may convert the analog input signal A_IN into the digital input signal D_IN. For example, when the analog input signal A_IN is a signal generated according to the C-PHY interface protocol, the analog input signal A_IN may be converted into the digital input signal D_IN based on the voltage level difference between the first sub-signal, the second sub-signal, and the third sub-signal, but example embodiments are not limited thereto.

[0066] For example, the digital input signal D_IN may include first to third digital input signals, etc. When the voltage level of the first sub-signal is greater than the voltage level of the second sub-signal, the first digital input signal may have a value of "1", and when the voltage level of the first sub-signal is lower than the voltage level of the second sub-signal, the first digital input signal may have a value of "0", but is not limited thereto.

[0067] When the voltage level of the second sub-signal is greater than the voltage level of the third sub-signal, the second digital input signal may have a value of "1", and when the voltage level of the second sub-signal is lower than the voltage level of the third sub-signal, the second digital input signal may have a value of "0", but is not limited thereto.

[0068] The third digital input signal may have a value of “1” when a voltage level of the third sub-signal is greater than a voltage level of the first sub-signal, and may have a value of “0” when a voltage level of the third sub-signal is lower than a voltage level of the first sub-signal, but is not limited thereto.

[0069] In operation S130, the processing circuit of the electronic device 100 may generate a recovery clock signal REC_CLK using the digital input signal D_IN. Figure 1 As shown in , the recovered clock signal REC_CLK may be generated using the digital input signal D_IN and / or the delayed input signal DL_IN output by the selector 120, etc. In the recovered clock signal REC_CLK, the edge of the clock signal may be placed at the center of the digital input signal D_IN and / or the delayed input signal DL_IN, etc. In some example embodiments, the recovered clock signal REC_CLK may be generated by a clock signal and data recovery (CDR) circuit that restores the clock signal and / or data based on the output of the selector 120, but is not limited thereto.

[0070] In operation S140, the processing circuit of the electronic device 100 may adjust the first delay control code DC1, and may obtain a first delay margin code based on the adjusted first delay control code DC1. For example, the processing circuit of the electronic device 100 determines a value of the first delay control code DC1 such that the number of first sampling errors is equal to or greater than a first threshold. One or more first sampling errors are instances when a signal obtained by sampling a delayed input signal DL_IN does not match the test data 181, wherein the delayed input signal DL_IN is sampled based on a delayed recovered clock signal DL_CLK, and the delayed recovered clock signal DL_CLK is generated based on the first delay control code DC1. Reference Figure 2B When the recovery clock signal REC_CLK is delayed by the first delay time DELAY1 period or longer, the sampling signal SAMP mismatches the test data 181. The first delay control code DC1 that makes the number of first sampling errors greater than or equal to the first threshold may be referred to as a first delay margin code.

[0071] In operation S150, the processing circuit of the electronic device 100 obtains a second delay margin code by adjusting the second delay control code DC2. The second delay margin code corresponds to the value of the second delay control code that makes the number of second sampling errors equal to or greater than the second threshold. One or more second sampling errors are instances when the sampling signal SAMP obtained by sampling the delayed input signal DL_IN does not match the test data 181, wherein the delayed input signal DL_IN is sampled based on the delayed recovery clock signal DL_CLK. When the digital input signal D_IN is delayed for a second delay time DELAY2 period or longer, the sampling signal SAMP and the test data 181 mismatch. The second delay control code DC2 that makes the number of second sampling errors equal to or greater than the second threshold may be referred to as a second delay margin code.

[0072] In operation S160, the processing circuit of the electronic device 100 obtains an eye margin code from the first delay margin code and the second delay margin code. The eye margin code may refer to a code obtained by adding the first delay margin code to the second delay margin code, but is not limited thereto. In addition, the delay time corresponding to the eye margin code may be referred to as an eye margin.

[0073] In some example embodiments, the eye margin test method may further include determining whether the electronic device is defective based on the eye margin code by a processing circuit of the electronic device 100. The determination result based on the eye margin code may be used to design electronic devices (such as receivers, transmitters, transceivers, peripheral devices, storage devices, input / output devices, etc.).

[0074] Figure 4is a flowchart illustrating a method for obtaining a first delay margin code according to at least one example embodiment. Figure 1 and Figure 3 describe Figure 4 , but example embodiments are not limited thereto.

[0075] The method of obtaining the first delay margin code may include operations S141 to S144, but is not limited thereto.

[0076] In operation S141, the processing circuit of the electronic device 100 may initialize the sampling interval index k to 1, but is not limited thereto. A plurality of sampling intervals may exist in a single data packet interval, but example embodiments are not limited thereto.

[0077] In operation S142, the processing circuit of the electronic device 100 may perform a desired number of samplings based on the first delay control code DC1 in the kth sampling interval. Figure 1 As described above, the deserializer 160 may generate the sampling signal SAMP by sampling the delayed input signal DL_IN at rising and falling edges of the delayed recovery clock signal DL_CLK, but example embodiments are not limited thereto.

[0078] In operation S143, the processing circuit of the electronic device 100 may determine whether the number of first sampling errors is equal to or greater than the first threshold value. The number of first sampling errors may be counted by determining whether the sampling signal SAMP matches the test data 181. In other words, when the sampling signal SAMP does not match the test data 181, the processing circuit of the electronic device 100 may determine that the first sampling error has occurred. When the number of first sampling errors is less than the first threshold value, operation S144 may be performed. In addition, when the number of first sampling errors is equal to or greater than the first threshold value, operation S145 may be performed.

[0079] In operation S144, the processing circuit of the electronic device 100 may increase the sampling interval index by 1 (for example, the sampling interval index may be incremented). In addition, the processing circuit of the electronic device 100 may also increment the first delay control code DC1 by a unit value. When the first delay control code DC1 increases (for example, increments) the unit value, the delay time of the delayed recovery clock signal DL_CLK may also increase the unit time (for example, the desired unit time interval, etc.). In other words, in operation S144, the processing circuit of the electronic device 100 may generate a delayed recovery clock signal DL_CLK delayed by a unit time. However, the second delay control code DC2 may be an initial value. In other words, the digital input signal D_IN and the delayed input signal DL_IN may have the same phase, but are not limited to this.

[0080] In operation S145, the processing circuit of the electronic device 100 may store the first delay control code DC1. The first delay control code DC1 stored in operation S145 may be a case where the number of first sampling errors is greater than or equal to the first threshold, but is not limited thereto. The first delay control code DC1 stored in operation S145 may be referred to as a first delay margin code.

[0081] Figure 5 is a flowchart illustrating a method of obtaining a second delay margin code according to at least one example embodiment.

[0082] The method of obtaining the second delay margin code may include operations S151 to S154 , but example embodiments are not limited thereto.

[0083] In operation S151, the processing circuit of the electronic device 100 may initialize the sampling interval index k to 1. A plurality of sampling intervals may exist in a single data packet interval, but example embodiments are not limited thereto.

[0084] In operation S152, the processing circuit of the electronic device 100 may perform sampling a desired number of times based on the second delay control code DC2 in the kth sampling interval. Figure 1 As described above, the deserializer 160 may generate the sampling signal SAMP by sampling the delayed input signal DL_IN at rising and falling edges of the delayed recovery clock signal DL_CLK, but example embodiments are not limited thereto.

[0085] In operation S153, the processing circuit of the electronic device 100 may determine whether the number of second sampling errors is equal to or greater than the second threshold. The number of second sampling errors may be counted and / or determined by the processing circuit of the electronic device 100 determining whether the sampling signal SAMP matches the test data 181.

[0086] In other words, when the sampling signal SAMP does not match the test data 181, the processing circuit of the electronic device 100 may determine that a second sampling error has occurred. When the number of second sampling errors is less than the second threshold, operation S154 may be performed. In addition, when the number of second sampling errors is equal to or greater than the second threshold, operation S155 may be performed.

[0087] In operation S154, the processing circuit of the electronic device 100 may increase the sampling interval index by 1 (for example, the sampling interval index may be incremented, etc.). In addition, the processing circuit of the electronic device 100 may increase the second delay control code DC2 by a unit value (for example, increase the desired unit, etc.). When the second delay control code DC2 increases by a unit value, the processing circuit of the electronic device 100 may increase the delay time of the delayed input signal DL_IN by a unit time (for example, increase the desired time interval, increase the unit time interval, etc.). In other words, in operation S154, the delayed input signal DL_IN delayed by a unit time may be generated by the processing circuit of the electronic device 100. However, the first delay control code DC1 may be an initial value. In other words, the recovered clock signal REC_CLK and the delayed recovered clock signal DL_CLK may have the same phase.

[0088] In operation S155, the processing circuit of the electronic device 100 may store the second delay control code DC2. The second delay control code DC2 stored in operation S155 may be a case where the number of second sampling errors is greater than or equal to the second threshold. The second delay control code DC2 stored in operation S155 may be referred to as a second delay margin code.

[0089] Figure 6 is a diagram illustrating a method of obtaining an eye margin code according to at least one example embodiment.

[0090] Figure 6 The number of occurrences of sampling errors in the sampling interval when the first delay control code DC1 is increased and the number of occurrences of sampling errors in the sampling interval when the second delay control code DC2 is increased are shown, but example embodiments are not limited thereto. Figure 6 A case in which both the first threshold value and the second threshold value are 1 is shown as an example, but the first threshold value and the second threshold value may be differently set according to some example embodiments.

[0091] like Figure 6 As shown in , a sampling error may occur once in a sampling interval in which the first delay control code DC1 is increased to '3'. Therefore, the first delay control code DC1 of the value '3' may be a first delay margin code, but example embodiments are not limited thereto.

[0092] Furthermore, a sampling error may occur once in a sampling interval in which the second delay control code DC2 is increased to “5.” Therefore, the second delay control code DC2 of the value “5” may be a second delay margin code, but example embodiments are not limited thereto.

[0093] The eye margin code may be a code obtained by adding the first delay margin code to the second delay margin code. Therefore, the value of the eye margin code may be "8" obtained by adding the value "3" of the first delay margin code to the value "5" of the second delay margin code, but example embodiments are not limited thereto.

[0094] Figure 7 is a block diagram specifically illustrating an electronic device according to at least one example embodiment.

[0095] The electronic device may include an interface circuit 210, a selector 220, a clock signal recovery circuit 230, a first delay circuit 240, a second delay circuit 250, a deserializer 260, a reference eye margin detector 270 and / or a controller 280, etc., but is not limited thereto. According to some example embodiments, the interface circuit 210, the selector 220, the clock signal recovery circuit 230, the first delay circuit 240, the second delay circuit 250, the deserializer 260, the reference eye margin detector 270 and / or the controller 280, etc. may be implemented as a processing circuit. The processing circuit may include hardware or a hardware circuit including a logic circuit; a hardware / software combination (such as a processor that executes software and / or firmware); or a combination thereof. For example, the processing circuit may more specifically include, but is not limited to, a central processing unit (CPU), an arithmetic logic unit (ALU), a digital signal processor, a microcomputer, a field programmable gate array (FPGA), a system on a chip (SoC), a programmable logic unit, a microprocessor, an application specific integrated circuit (ASIC), etc., but is not limited thereto.

[0096] The interface circuit 210 may receive at least one analog input signal A_IN and convert the analog input signal A_IN into at least one digital input signal D_IN. The analog input signal A_IN may represent a signal transmitted by an external transmitter (not shown).

[0097] In some example embodiments, the analog input signal A_IN may be a three-phase signal including a first sub-signal A_IN1, a second sub-signal A_IN2, and a third sub-signal A_IN3, but example embodiments are not limited thereto. For example, the analog input signal A_IN may be a signal generated according to a C-physical layer (C-PHY) interface protocol, but is not limited thereto. According to the C-PHY interface protocol, each of the first sub-signal A_IN1, the second sub-signal A_IN2, and the third sub-signal A_IN3 may have one of a high voltage level, a medium voltage level, and a low voltage level, but example embodiments are not limited thereto.

[0098] The interface circuit 210 may include a plurality of comparators (e.g., a first comparator 210A, a second comparator 210B, and / or a third comparator 210C, but not limited thereto). In addition, the interface circuit 210 may convert the analog input signal A_IN into a digital input signal based on a voltage level difference between the first sub-signal A_IN1, the second sub-signal A_IN2, and / or the third sub-signal A_IN3, etc.

[0099] When the voltage level of the first sub-signal A_IN1 is greater than the voltage level of the second sub-signal A_IN2, the first comparator 210A may output the first digital input signal D_IN1 having a value of "1", but is not limited thereto. In addition, when the voltage level of the first sub-signal A_IN1 is lower than the voltage level of the second sub-signal A_IN2, the first comparator 210A may output the first digital input signal D_IN1 having a value of "0", but is not limited thereto.

[0100] When the voltage level of the second sub-signal A_IN2 is greater than the voltage level of the third sub-signal A_IN3, the second comparator 210B may output the second digital input signal D_IN2 having a value of "1". In addition, when the voltage level of the second sub-signal A_IN2 is lower than the voltage level of the third sub-signal A_IN3, the second comparator 210B may output the second digital input signal D_IN2 having a value of "0".

[0101] When the voltage level of the third sub-signal A_IN3 is greater than the voltage level of the first sub-signal A_IN1, the third comparator 210C may output the third digital input signal D_IN3 having a value of “1”. In addition, when the voltage level of the third sub-signal A_IN3 is lower than the voltage level of the first sub-signal A_IN1, the third comparator 210C may output the third digital input signal D_IN3 having a value of “0”.

[0102] The second delay circuit 250 may include a (2-1)th delay subcircuit 250-1, a (2-2)th delay subcircuit 250-2, and / or a (2-3)th delay subcircuit 250-3, etc., but is not limited thereto. Each of the delay subcircuits 250-1, 250-2, and / or 250-3 may be operated under the control of the delay control code DC2-1, DC2-2, and / or DC2-3 generated by the controller 280, but is not limited thereto. Specifically, the (2-1)th delay subcircuit 250-1 may generate a first delayed input signal DL_IN1 delayed from the first digital input signal D_IN1 according to the (2-1)th delay control code DC2-1. Similarly, the (2-2)th delay subcircuit 250-2 may generate a second delayed input signal DL_IN2 delayed from the second digital input signal D_IN2 according to the (2-2)th delay control code DC2-2. Furthermore, the (2-3)th delay sub-circuit 250 - 3 may generate a third delayed input signal DL_IN3 delayed from the third digital input signal D_IN3 according to the (2-3)th delay control code DC2 - 3 .

[0103] The selector 220 may receive a summed digital input signal SD_IN as a signal obtained by adding the first to third digital input signals D_IN1 to D_IN3, and a summed delayed input signal SDL_IN as a signal obtained by adding the first to third delayed input signals DL_IN1 to DL_IN3, and may output any one of the summed digital input signal SD_IN and the summed delayed input signal SDL_IN under the control of the mode control signal MC, but is not limited thereto. For example, when the mode control signal MC has a value of "1" corresponding to the eye margin test mode or the dual mode, the selector 220 may output the summed digital input signal SD_IN under the control of the mode control signal MC, but is not limited thereto. In addition, when the mode control signal MC has a value of "0" corresponding to the skew compensation mode, the selector 220 may output the summed delayed input signal SDL_IN under the control of the mode control signal MC, but is not limited thereto.

[0104] The clock signal recovery circuit 230 may generate a recovery clock signal REC_CLK based on the output S_IN of the selector 220. In other words, the clock signal recovery circuit 230 may recover a clock signal corresponding to a phase and / or frequency of the summed digital input signal SD_IN and / or the summed delayed input signal SDL_IN output by the selector 220. Specifically, the clock signal recovery circuit 230 may generate the recovery clock signal REC_CLK such that an edge of the clock signal is positioned at the center of the summed digital input signal SD_IN and / or the summed delayed input signal SDL_IN, etc. In some example embodiments, the clock signal recovery circuit 230 may be a clock signal and data recovery (CDR) circuit that recovers a clock signal and / or data based on the output S_IN of the selector.

[0105] The first delay circuit 240 may generate a delayed recovered clock signal DL_CLK from the recovered clock signal REC_CLK under the control of the first delay control code DC1. The first delay circuit 240 may generate a delayed recovered clock signal DL_CLK from the recovered clock signal REC_CLK that has been delayed by a time length corresponding to the first delay control code DC1.

[0106] The deserializer 260 may generate a sampling signal SAMP based on the first to third delayed input signals DL_IN1 to DL_IN3 and the delayed recovered clock signal DL_CLK. In other words, the deserializer 260 may generate the sampling signal SAMP by sampling the first to third delayed input signals DL_IN1 to DL_IN3 at a rising edge or a falling edge of the delayed recovered clock signal DL_CLK, etc., but is not limited thereto.

[0107] The controller 280 may generate a first delay control code DC1, a mode control signal MC, a (2-1)th delay control code DC2-1, a (2-2)th delay control code DC2-2, and / or a (2-3)th delay control code DC2-3, etc. The controller 280 may control the first delay circuit 240, the (2-1)th delay sub-circuit 250-1, the (2-2)th delay sub-circuit 250-2, the (2-3)th delay sub-circuit 250-3, and / or the selector 220 by adjusting the first delay control code DC1, the mode control signal MC, the (2-1)th delay control code DC2-1, the (2-2)th delay control code DC2-2, and / or the (2-3)th delay control code DC2-3, respectively.

[0108] The controller 280 may include test data 281 for an eye margin test. The test data 281 may include the same data as the analog input signal A_IN transmitted from an external transmitter (not shown), but is not limited thereto.

[0109] As mentioned above Figures 2A to 6 As described above, the controller 280 can obtain and / or determine the delay margin code corresponding to the time when the number of sampling errors occurring is equal to or greater than the expected threshold by adjusting each delay control code, but example embodiments are not limited thereto. The controller can obtain an eye margin code corresponding to the eye margin from the delay margin code. In addition, the controller 280 can estimate the timing skew of the first digital input signal D_IN1 to the third digital input signal D_IN3 from the sampling signal SAMP, and compensate for the timing skew of the first digital input signal D_IN1 to the third digital input signal by adjusting the (2-1)th delay control code DC2-1 to the (2-3)th delay control code DC2-3, etc.

[0110] The reference eye margin detector 270 may detect a reference clock signal from the first delayed input signal DL_IN1 to the third delayed input signal DL_IN3 having a first frequency pulse waveform. For example, the first delayed input signal DL_IN1 to the third delayed input signal DL_IN3 may be a signal generated according to a C-PHY interface protocol, but example embodiments are not limited thereto. The first delayed input signal DL_IN1 to the third delayed input signal DL_IN3 may include a pilot signal having a first frequency pulse waveform, etc.

[0111] The reference eye margin detector 270 may generate a reference clock signal of a second frequency pulse waveform having a second frequency higher than the first frequency of the first frequency pulse waveform based on the pilot signal. In addition, the reference eye margin detector 270 may use the second frequency and / or operating speed of the electronic device to generate a code corresponding to half of the period of the second frequency pulse waveform (e.g., half a duty cycle, etc.), but is not limited thereto. For example, when the electronic device operates at a speed of 10GPs, the half period of the second frequency pulse waveform may be 0.1ns, which is the reciprocal of 10GPs. Here, the code corresponding to the half period of the second frequency pulse waveform may be referred to as a reference eye margin code REMC or a unit interval (UI) code. The reference eye margin code REMC may be used to measure the size and / or absolute size of the eye margin in the controller 280.

[0112] In one example, the controller 280 may obtain an eye margin (e.g., an eye margin time, or the size and / or absolute size of the eye margin) based on a reference eye margin code and an eye margin code. For example, the controller 280 may measure the size and / or absolute size of the eye margin by comparing the reference eye margin code REMC with the eye margin code. For example, when the value of the reference eye margin code REMC is "32" and the value of the eye margin code is "16", the relative size of the eye margin code to the reference eye margin code REMC may be 0.5 (e.g., 16 / 32), but example embodiments are not limited thereto. Therefore, the eye margin of the delayed input signal may be 0.05ns, which is half of 0.1ns, etc. In one example, the eye margin (e.g., an eye margin time, or the size and / or absolute size of the eye margin) may be obtained by multiplying the half period of the second frequency pulse waveform corresponding to the reference eye margin code REMC by the ratio of the eye margin code to the reference eye margin code REMC.

[0113] exist Figure 7 , the reference eye margin detector 270 has been shown as a component separate from the controller 280, but in some example embodiments, the reference eye margin detector 270 may be a component of the controller 280 and / or the controller 280 may perform the functions of the reference eye margin detector 270, etc.

[0114] The electronic device according to at least one example embodiment may test the eye margins of the digital input signals D_IN1, D_IN2, and D_IN3 using the recovery clock signal REC_CLK generated based on the digital input signals D_IN1, D_IN2, and D_IN3, but example embodiments are not limited thereto. In addition, the electronic device may measure the absolute size of the eye margin by comparing the reference eye margin code REMC with the eye margins of the digital input signals D_IN1, D_IN2, and D_IN3.

[0115] FIG. 8A to FIG. 8D is a timing diagram of signals of an electronic device over time according to at least one example embodiment. Figure 7 describe FIG. 8A to FIG. 8D , but not limited thereto. Specifically, FIG. 8A to FIG. 8D Show Figure 7 The first digital input signal D_IN1, the second digital input signal D_IN2, the third digital input signal D_IN3, the summed digital input signal SD_IN, the output S_IN of the selector, the summed delayed input signal SDL_IN, and the recovered clock signal REC_CLK, but example embodiments are not limited thereto.

[0116] Fig. 8A is a timing diagram of a signal over time in an electronic device in a normal mode in which an eye margin test operation and / or a skew compensation operation has not been performed. Figure 7 , the first delay control code DC1, the (2-1)th delay control code DC2-1, the (2-2)th delay control code DC2-2, and / or the (2-3)th delay control code DC2-3 in the normal mode may be initial values, etc. In other words, the normal mode may represent a situation where there is no delay between the digital input signals D_IN1, D_IN2, and D_IN3, etc. and the recovered clock signal REC_CLK. Since the digital input signals D_IN1, D_IN2, and D_IN3 and the delayed input signals DL_IN1, DL_IN2, and DL_IN3 have the same phase, the mode control signal MC may have a value of "1" or a value of "0".

[0117] Figure 8B is a timing diagram of signals over time in an electronic device in a skew compensation mode for performing skew compensation.

[0118] In some example embodiments, the electronic device may compensate for the timing skew of the digital input signals D_IN1, D_IN2, and / or D_IN3, etc. Specifically, the electronic device may estimate the timing skew of the digital input signals D_IN1, D_IN2, and / or D_IN3, etc. based on the digital input signals D_IN1, D_IN2, and / or D_IN3, etc. In addition, the (2-1)th delay control code DC2-1, the (2-2)th delay control code DC2-2, and / or the (2-3)th delay control code DC2-3, etc. may be controlled to compensate for the timing skew of each of the digital input signals D_IN1, D_IN2, and / or D_IN3, etc.

[0119] Figure 8B It is shown that the timing skew is generated by the skew time TS in the second digital input signal D_IN2. The controller 280 can compensate for the timing skew of the second digital input signal D_IN2 by adjusting the (2-2)th delay control code DC2-2, but is not limited to this. In addition, the electronic device can store the value of the (2-2)th delay control code DC2-2 for compensating the timing skew. Here, the value of the (2-1)th delay control code DC2-1, the (2-2)th delay control code DC2-2 and / or the (2-3)th delay control code DC2-3 compensates for the timing skew and can be referred to as a skew compensation offset code.

[0120] Figure 8C This is a timing diagram of the signal over time in an electronic device in the eye margin test mode. Figures 1 to 7 As described above, the electronic device can obtain an eye margin code corresponding to the eye margin by adjusting the first delay control code DC1, the (2-1)th delay control code DC2-1, the (2-2)th delay control code DC2-2 and / or the (2-3)th delay control code DC2-3, etc.

[0121] Fig.8D It is a timing diagram of a signal over time in an electronic device in dual mode, in which both eye margin testing and skew compensation are performed. The electronic device can use the value of the skew compensation offset code stored in the skew mode in the dual mode. Specifically, the initial values ​​of the (2-1)th delay control code DC2-1, the (2-2)th delay control code DC2-2 and / or the (2-3)th delay control code DC2-3, etc. can be set to the value of the skew compensation offset code.

[0122] Afterwards, in dual mode, the electronic device can obtain the eye margin code corresponding to the eye margin by adjusting the first delay control code DC1, the (2-1) delay control code DC2-1, the (2-2) delay control code DC2-2 and / or the (2-3) delay control code DC2-3, etc.

[0123] Fig. 9 is a flowchart illustrating a method of operating an electronic device according to at least one example embodiment. Figures 7 to 8D describe Fig. 9 , but example embodiments are not limited thereto.

[0124] The method of operating the electronic device may include operation S210 and operation S220, but is not limited thereto.

[0125] In operation S210, the electronic device may select any one of a plurality of modes. The plurality of modes may include the FIG. 8A to FIG. 8D The normal mode, the skew compensation mode, the eye margin test mode and / or the dual mode are described, but the example embodiments are not limited thereto. Depending on which mode has been selected, the first delay control code DC1, the mode control signal MC, the (2-1)th delay control code DC2-1, the (2-2)th delay control code DC2-2 and / or the (2-3)th delay control code DC2-3 may be adjusted differently.

[0126] In operation S220, an operation may be performed according to the mode selected in operation S210, but is not limited thereto.

[0127] Fig.10 is a diagram illustrating a delayed input signal according to at least one example embodiment.

[0128] The delayed input signal may include a preamble signal having a periodic waveform and / or packet data including transmission data, but is not limited thereto. Fig.10 The delayed input signal shown in FIG. 1 can be as shown in FIG. Figures 1 to 7 The delayed input signal is described, but example embodiments are not limited thereto.

[0129] Fig.11is a timing diagram of a signal relative to a reference clock signal according to at least one example embodiment. Figure 7 describe Fig.11 , but example embodiments are not limited thereto.

[0130] In some example embodiments, the first to third delayed input signals DL_IN1 to DL_IN3 may have a first frequency pulse waveform.

[0131] The reference clock signal of the second frequency pulse waveform having a second frequency higher than the first frequency of the first frequency pulse waveform may be generated based on the first to third delayed input signals DL_IN1 to DL_IN3 , but is not limited thereto.

[0132] The reference clock signal REF_CLK may be generated according to and / or based on the following equation, but is not limited thereto.

[0133] [Equation 1]

[0134] REF_CLK

[0135] ={(DL_IN1 NOR DL_IN2)NOR(DL_IN3 NOR DL_IN2]NAND{(DL_IN1 NOR DL_IN3)NOR test_done}

[0136] In Equation 1, NOR represents a NOR operation, and NAND represents a NAND operation. In addition, test_done represents an internal signal of the controller 280 indicating whether the eye margin test has been completed. A value of test_done of "0" may represent a case where the eye margin test has not been completed, and a value of test_done of "1" may represent a case where the eye margin test has been completed, but example embodiments are not limited thereto.

[0137] The reference eye margin detector 270 may generate a reference clock signal REF_CLK according to Equation 1, and generate a reference eye margin code REMC corresponding to a half cycle (e.g., a half duty cycle, etc.) of the second frequency pulse waveform. Here, the half cycle of the second frequency pulse waveform may represent a unit interval. The controller 280 may obtain an eye margin time by comparing the reference eye margin code REMC with the eye margin code.

[0138] Fig.12 is a block diagram illustrating a system on chip according to at least one example embodiment. A system on chip (SoC) may represent an integrated circuit in which components of a computing system or other electronic system are integrated. For example, as one of the SoCs, an application processor (AP) may include at least one processor (e.g., a processor core, etc.) and / or components for other functions.

[0139] Reference Fig.12 , SoC 1000 may include a core 1100, a digital signal processor (DSP) 1200, a graphics processing unit (GPU) 1300, an embedded memory 1400, a communication interface (COMM.I / F) 1500 and / or a memory interface (I / F) 1600, etc., but is not limited thereto and may include a greater or lesser number of constituent components. The components of SoC 1000 may communicate with each other via at least one bus 1700.

[0140] The core 1100 may process instructions, control operations and / or data of one or more components included in the SoC 1000. For example, the SoC 1000 may run an operating system and execute applications on the operating system by processing a series of computer-readable instructions and / or data, etc. The DSP 1200 may generate useful data by processing at least one digital signal (e.g., at least one digital signal provided from the communication interface 1500, etc.). The GPU 1300 may generate data for an image output through a display device according to image data provided from the embedded memory 1400 and the memory interface 1600, and / or may encode and / or generate image data, etc. The embedded memory 1400 may store data desired and / or necessary for the operation of the core 1100, the DSP 1200 and / or the GPU 1300, etc. The memory interface 1600 may provide an interface to an external memory (such as a dynamic random access memory (DRAM), a flash memory, etc.) of the SoC 1000.

[0141] The communication interface 1500 may provide serial communication with the outside (eg, an external target) of the SoC 1000. For example, the communication interface 1500 may be connected to Ethernet and may include a serializer / deserializer (SERDES) for serial communication, but is not limited thereto.

[0142] Meanwhile, an electronic device to which one or more exemplary embodiments of the inventive concept are applied may be applied to the communication interface 1500 and / or the memory interface 1600. Specifically, the communication interface 1500 and / or the memory interface 1600 may test the eye margin according to one or more exemplary embodiments of the inventive concept.

[0143] While various example embodiments of the inventive concepts have been particularly shown and described, it will be understood that various changes in form and details may be made therein without departing from the spirit and scope of the appended claims.

Claims

1. A method for testing eye margin, the method comprising: include: receiving an analog input signal; Convert analog input signals into digital input signals; generating a recovered clock signal based on the digital input signal; delaying the recovered clock signal by adjusting the first delay control code; obtaining a first delay margin code based on the delayed recovered clock signal; delaying the digital input signal by adjusting a second delay control code; obtaining a second delay margin code based on the delayed digital input signal; as well as The eye margin code is obtained by adding the first delay margin code to the second delay margin code.

2. The eye margin testing method according to claim 1, in, The step of obtaining a first delay margin code comprises: generating a sample signal based on the delayed recovered clock signal and the digital input signal; detecting a number of first sampling errors based on the sampled signal and the test data; determining a value of a first delay control code such that the number of first sampling errors is equal to or greater than a first error threshold; and The first delay margin code is set to the value of the determined first delay control code.

3. The eye margin testing method according to claim 1, in, The step of obtaining a second delay margin code comprises: generating a sampled signal based on the recovered clock signal and the delayed digital input signal; detecting a number of second sampling errors based on the sampled signal and the test data; determining a value of a second delay control code such that the number of second sampling errors is equal to or greater than a second error threshold; and The second delay margin code is set to the value of the determined second delay control code.

4. The eye margin testing method according to claim 1, further comprising: include: estimating the timing skew of a digital input signal; as well as The timing skew is compensated by adjusting the second delay control code.

5. The eye margin testing method according to claim 1, wherein The digital input signal includes a preamble signal having a first pulse waveform of a first frequency; and The eye margin test method also include: generating a reference clock signal having a second pulse waveform with a second frequency based on the pilot signal, the second frequency being higher than the first frequency, and A reference eye margin code is obtained from a reference clock signal.

6. The eye margin testing method according to claim 5, further comprising: include: An eye margin time is obtained based on the reference eye margin code and the eye margin code.

7. The eye margin testing method according to any one of claims 1 to 6, wherein The analog input signal is a three-phase signal including a first sub-signal, a second sub-signal, and a third sub-signal; and Steps to convert analog input signal to digital input signal include: The analog input signal is converted into a digital input signal based on a voltage level difference among the first sub-signal, the second sub-signal, and the third sub-signal.

8. The eye margin testing method according to claim 7, in, The analog input signal is a signal generated based on a C-PHY interface protocol.

9. An electronic device, the electronic device include: The processing circuit is configured to: receiving an analog input signal and converting the analog input signal into a digital input signal; generating a recovered clock signal based on the digital input signal; generating a first delay control code and a second delay control code; generating a delayed recovered clock signal from the recovered clock signal based on a first delay control code; and A delayed input signal is generated from the digital input signal based on a second delay control code.

10. The electronic device according to claim 9, in, The processing circuit is further configured to: generating a sample signal based on the delayed input signal and the delayed recovered clock signal; detecting a number of first sampling errors based on the sampled signal and the test data; determining a value of a first delay control code such that the number of first sampling errors is equal to or greater than a first error threshold; and The first delay margin code is set to the value of the determined first delay control code.

11. The electronic device according to claim 10, in, The processing circuit is further configured to: detecting a number of second sampling errors based on the sampled signal and the test data; determining a value of a second delay control code such that the number of second sampling errors is equal to or greater than a second error threshold; and The second delay margin code is set to the value of the determined second delay control code.

12. The electronic device according to claim 11, in, The processing circuit is further configured to: A value of the eye margin code is obtained based on the first delay margin code and the second delay margin code.

13. The electronic device according to any one of claims 9 to 12, in, The processing circuit is further configured to: receiving a digital input signal and a delayed input signal; outputting one of the digital input signal and the delayed input signal as a selected input signal based on the mode control signal; and A recovered clock signal is generated based on the selected input signal.

14. The electronic device according to any one of claims 9 to 12, in, The processing circuit is further configured to: estimating a timing skew of a digital input signal; and The timing skew is compensated by adjusting the second delay control code.

15. The electronic device according to any one of claims 9 to 12, wherein The digital input signal includes a preamble signal having a first pulse waveform of a first frequency; and The processing circuit is further configured to, generating a reference clock signal having a second pulse waveform with a second frequency based on the pilot signal, the second frequency being higher than the first frequency, and A reference eye margin code is obtained from a reference clock signal.

16. The electronic device according to any one of claims 9 to 12, wherein The analog input signal is a three-phase signal including a first sub-signal, a second sub-signal, and a third sub-signal; and The processing circuit is further configured to convert the analog input signal into a digital input signal based on a voltage level difference between the first sub-signal, the second sub-signal, and the third sub-signal.

17. An electronic device, wherein the electronic device include: The processing circuit is configured to: generating a mode control signal, an input delay control code, and a clock signal delay control code; generating a second input signal delayed from the first input signal based on an input delay control code; outputting one of the first input signal and the second input signal as a selected input signal based on the mode control signal; generating a recovered clock signal based on the selected input signal; and A delayed recovered clock signal is generated from the recovered clock signal based on the clock signal delay control code.

18. The electronic device according to claim 17, in, The processing circuit is further configured to: generating a sampling signal based on the second input signal and the delayed recovered clock signal; detecting a number of first sampling errors based on the sampled signal and the test data; determining a value of the clock signal delay control code that makes the number of first sampling errors equal to or greater than a first error threshold; and The clock signal delay margin code is set to the value of the determined clock signal delay control code.

19. The electronic device according to claim 18, in, The processing circuit is further configured to: detecting a number of second sampling errors based on the sampled signal and the test data; determining a value of the input delay control code that causes the number of second sampling errors to be equal to or greater than a second error threshold; and The input delay margin code is set to the value of the determined input delay control code.

20. The electronic device according to claim 19, in, The processing circuit is further configured to: The value of the eye margin code is obtained by adding the clock signal delay margin code to the input delay margin code.