The disclosure relates to a signal analytic method, a computer readable recording medium, and an electronic apparatus, and in particular to an eye-diagram index analytic method, a computer readable recording medium, and an electronic apparatus.
Today's technology is booming, and various electronic products have gradually become an indispensable part of lives. Electronic products close to personal life, such as wearable devices, computers, smartphones, and tablets, are continuously innovating. Among these products, double data rate (DDR) synchronous dynamic random access memory (SDRAM) is an essential component. With the evolution of DDR, the speed thereof gradually increases. As the usage bandwidth of DDR becomes higher and higher, how to effectively transmit data becomes even more crucial.
DDR modules serve as the primary bridge for storage and the processor, achieving data transmission through multiple transmission lines. However, the lines can couple with each other, thereby generating crosstalk. Particularly in cases with multiple channels, far-end crosstalk (FEXT) caused by crosstalk aggressors at the receiver end becomes one of the bottlenecks in increasing data rates. Simultaneously, when the transmitter end and the receiver end are not matched properly, FEXT and near-end crosstalk (NEXT) also adversely affect signal integrity.
In this situation, to ensure high-quality transmission of the DDR modules, it is necessary to analyze and measure signal integrity, and it is necessary to be able to quickly find the worst-case sequences on the transmission lines. In the prior art, simulating eye diagrams using pseudorandom binary sequences (PRBS) is very time-consuming. Generating the worst-case eye diagram for inter symbol interference (ISI) caused by FEXT and NEXT requires a specific sequence, and obtaining the worst-case sequences for different lines simultaneously using PRBS is highly challenging. Therefore, there is a need to develop a fast method to find the worst-case sequences on the transmission lines to ensure high-quality transmission of the DDR modules.
Embodiments of the disclosure provide an eye-diagram index analytic method, a computer readable recording medium, and an electronic apparatus. The eye-diagram index analytic method can effectively find worst-case sequence patterns on multiple transmission lines in multiple channels.
The eye-diagram index analytic method according to the embodiment of the disclosure includes the following steps. A transfer function of multiple coupled lines is calculated. The transfer function is converted into a pulse response. An eye-diagram index is calculated based on the pulse response. The eye-diagram index is corrected based on peak distortion analysis.
The computer readable recording medium according to the embodiment of the disclosure includes a computer program enabling a computer to execute the eye-diagram index analytic method after executing the computer program.
The electronic apparatus according to the embodiment of the disclosure includes a processor and a storage element. The storage element stores a computer program enabling a processor to execute the eye-diagram index analytic method after executing the computer program.
In order for the features and advantages of the disclosure to be more comprehensible, the following specific embodiments are described in detail in conjunction with the drawings.
An embodiment of the disclosure provides an eye-diagram index analytic method, which can effectively find worst-case sequence patterns on multiple transmission lines in multiple channels. Existing methods need to consider a large number of sequence combinations, which are very computationally intensive and time-consuming. Therefore, an embodiment of the disclosure provides an eye-diagram index based on a peak distortion analysis (PDA) method of a pulse response. Through extending the pulse response to multiple transmission lines, the worst-case sequence patterns on the transmission lines can be quickly found, and the eye-diagram index is calculated to quickly analyze the quality of signal integrity. Such a method can find the worst-case sequence patterns in a short time to calculate the eye-diagram index, thereby saving a lot of time and calculations in simulating an eye diagram.
Taking a double data rate (DDR) module as an example, the DDR module is one of the most common memory modules in today's computer motherboards and other equipment. With the development of integrated circuit manufacturing technology, the data transmission rate of DDR is getting higher and higher, reaching the gigabit per second (Gbps) level. However, higher and higher data transmission rates and shorter and shorter signal rising and falling times have brought challenges to system signal integrity. In the design of the DDR module, signals are simultaneously transmitted by multiple transmission lines, and often due to cost considerations, the transmission lines are very close together. Therefore, special attention needs to be paid to issues such as transmission delay, reflection, and crosstalk. The issues can cause damage to signal integrity, thereby causing incorrect transmission of data or a reduction in transmission rate. The eye diagram can be used to evaluate the signal integrity of the DDR module and can help a designer understand the signal transmission status and degree of damage, so that appropriate optimization measures can be taken in the design. For example, if an opening of the eye diagram becomes smaller or distorted, the designer may consider ways such as increasing the power of a driver or reducing the length of a transmission line to improve signal integrity.
An embodiment of the disclosure provides an eye-diagram index analytic method. By inputting S-parameters, a pulse response with boundaries containing mismatched linear elements can be calculated through a derived transfer function, and an eye-diagram index is calculated based on a PDA.
The eye diagram is composed of a series of overlapping pulse responses, and each waveform represents a signal sample at a different time point. When a continuous digital signal is interfered or distorted during transmission, the shape of the signal waveform changes. Through combining the waveforms, the deformation of a signal may be observed.
The main objective of the eye diagram is to evaluate the signal quality of a system in high-speed data transmission and to detect issues in data transmission. For example, the eye diagram may be used to detect issues such as signal distortion, timing offset, and spurious interference. Through analyzing the eye diagram, the characteristics of a signal may be further understood, thereby optimizing the design of a transmission system and improving signal quality. As shown in
Generally, the eye diagram is simulated using a pseudorandom binary sequence (PRBS). However, the amount of data generated by the PRBS is very large, and the analysis and evaluation processes often need a lot of time and resources. Therefore, in order to improve efficiency, the PDA may be adopted to analyze the worst-case eye diagram. The PRBS stands for the pseudorandom binary sequence, which is a digital signal. The PRBS is a binary sequence generated by a set of pseudorandom number generators and has random statistical properties. For example, the numbers of “0” and “1” of the PRBS signal are approximately equal. The PRBS is often used as an input signal for simulating the eye diagram to evaluate the performance of a digital system. However, in actual situations, there are usually many channels. Since the eye diagram generated by the PRBS is only representative when the length is long enough, it will be very time-consuming to use the PRBS to simulate the eye diagram for multiple channels. Also, the ISI of crosstalk on the main signal needs a specific sequence to generate the worst-case eye diagram. In the case of multiple channels, finding the worst-case sequence through peak distortion analysis (PDA) based on the pulse response is the current trend.
In a linear time-invariant (LTI) system, the pulse responses of the system at different times are superimposed on each other. Therefore, the inter symbol interference may be calculated from a single pulse response, thereby finding the worse-case sequence of the eye diagram. The LTI system means that there is a linear relationship between the input and the output of the system, but parameters of the system do not change over time. In other words, the response of the system to input is fixed and does not change over time.
In the LTI system, a series of signals may be regarded as the superposition of many signals. If a symbol is completely transmitted and the waveform has not completely disappeared, it will cause interference to the transmission of the next symbol. Such an interference is referred to as the inter symbol interference. The influence of the inter symbol interference may be calculated through analyzing the pulse response.
In the LTI digital system, if the input signals are a series of “1” and “0”, since it is an LTI system, the series of signals may be regarded as many single trapezoidal waves at different times as the input signals to be then superimposed together. In a circuit with multiple transmission lines, the pulse responses may be divided into two types, and the first type is an insertion loss response. As shown in
As shown in the insertion loss response of
In the circuit with multiple transmission lines, crosstalk also causes the inter symbol interference, as shown by the far-end crosstalk response of
It can be seen from (1) that the worst-case bit 1 is only affected by the cursor and negative ISI, so negative ISI corresponds to bit 1, and positive ISI corresponds to bit 0; and vice versa for the worst-case bit 0.
In the insertion loss response of
In the far-end crosstalk response of
After obtaining the worst-case bits 1 and the worst-case bits 0 of the main signal line and all coupled lines, the worst-case bits may be connected in series as the worst-case sequence of the eye diagram of each line to be used as the input signal of the transmitter end of each line, so that the worst-case eye diagram may be obtained.
The eye-diagram index is first explained below, and the transfer function of a single transmission line is then derived, thereby extending to the transfer function of multiple coupled lines to quickly establish the pulse response of multiple transmission lines and calculate the eye-diagram index.
First, the eye-diagram index is explained. In the embodiment of the disclosure, the eye-diagram index at least includes the worst eye width and the worst center eye height, as described below.
From (1) and (2), the worst case 1-level and 0-level may be calculated. Therefore, the worst case 1-level may be deducted from 0-level to calculate the worst eye height at the sampling time point of the main cursor, as shown by (3). The dotted line of
It can be seen that when calculating the worst eye height, whether it is positive or negative ISI, the absolute value is added and then subtracted. Therefore, the values of different sampling points may also be used to rewrite (3) to obtain (4):
The values of the cursor, the postcursor, etc. in (4) may be calculated using (5) to obtain (6) and (7):
In (6) and (7), it can be seen that the integration range is from −f0 to f0. However, the transfer functions Hmain(f) and Hxtk(f) in the integration include the S-parameters, but in the actual situations, the S-parameters do not include negative frequencies, but by the property that a pulse function h(t) and a single trapezoidal wave Vi(t) of a signal only have a value when t>0, (8) and (9) may be obtained, and (10) and (11) may then be listed:
Then, the worst eye height at different sampling time points may be obtained from (15), wherein positions where the worst eye height equals zero on two sides of the eye are the left and right endpoints, and the sampling time points are τright and τleft. The two sampling time points are subtracted to obtain the worst eye width (16). Then, through calculating the midpoint of the left and right endpoints (17), the worst center eye height may also be obtained (18), and (16), (17), and (18) may be respectively listed:
Therefore, in the embodiment of the disclosure, the eye-diagram index at least includes the worst eye width and the worst center eye height.
Next, the transfer function of a single transmission line is explained. In order to obtain the transfer function where both the transmitter end and the receiver end are mismatched, a single transmission line as shown in
In terms of transmission lines, the distortion of the signal transmitted from the transmitter end to the receiver end must be within an acceptable range. The S-parameters may be used to measure the influence on signals in the frequency domain when the transmission lines are interconnected, that is, the frequency domain characteristics of the signal may be observed through the S-parameters. An electronic element between the transmission lines may be equivalently described as an S-parameter matrix and be used to analogize the behavior of the electronic element at different frequencies.
A transfer function V2/VS of a single transmission line where both the transmitter end and the receiver end are mismatched may be derived as:
Next, the transfer function of multiple coupled lines (that is, transmission lines) are explained. In order to obtain a transfer function
of the insertion loss response and the far-end crosstalk response, where k=1˜n and m=1˜n. The single transmission line architecture of
First, (21) may be defined from the S-parameter matrix:
Since there is no voltage source at the receiver end, the transmission wave is the reflection wave multiplied by the reflection coefficient, so (22) may be listed:
There is a voltage source at the transmitter end, so (23) may be listed:
represents that
The matrix on the left of the equation is defined as
Then, inverse matrix of
Considering the relationship between the reflection wave at the receiver end and a voltage V2,k at the receiver end, (26) may be obtained:
of the insertion loss response and the far-end crosstalk response:
k=m is the transfer function of the insertion loss response of a kth signal line. k≠m represents the transfer function of far-end crosstalk caused by an mth signal line to the kth signal line. Therefore, (27) is substituted back into (10) and (11) to obtain the insertion loss response and the far-end crosstalk response.
Next, the transfer function with parallel circuit boundaries is explained. Taking the DDR module as an example, the main storage structure of the DDR module is a DRAM, and the DRAM is composed of a capacitor and a transistor. Therefore, in a linear equivalent circuit, the transmitter end and the receiver end are connected in parallel with the capacitor, as shown in
A transfer function
The following takes a DDR4 circuit as an example to illustrate the analysis of the eye-diagram index.
The circuit of the transmitter may be represented by a simple CMOS output buffer, as shown in
In the “write” mode, the SOC end is in the transmitter mode and the DRAM end is in the receiver mode. As shown in
Next, S-parameter preprocessing and peak distortion analysis including a clock signal are explained. First, the S-parameter preprocessing is explained. The circuit of
Taking
The relationships between a5 and b5 and a6 and b6 are as follows:
After sorting the above equation, the following may be obtained:
Then, the inverse matrix operation is performed on the matrix E to obtain the relationship between a1 to a6:
Then, the above equation is substituted back into (29) and (30) to obtain:
From the relationships between b1 to b4 and a1 to a4, an S-parameter matrix S2 may be obtained as:
Next, the peak distortion analysis including the clock signal is explained. The DQS of
Therefore, for Equation (15), considering the sum of crosstalk of the DQS and crosstalk caused by remaining coupled lines, (31) may be listed:
XtkDQS is to respectively calculate under which sequences do a worst case 1 and a worst case 0 of DQS p and n have poor ISI sums, as shown in Table 1 below.
In addition, for Equations (1) and (2), considering the sum of crosstalk of the DQS and crosstalk caused by the remaining coupled lines, Equations (1) and (2) may be corrected as:
Specifically, in Step S100, the processor 110 calculates the transfer function of the transmission line architecture with multiple coupled lines as shown in
For example, the eye-diagram index analytic method of the embodiment may be used to analyze a DDR 4 memory circuit, wherein the DDR 4 memory circuit has a transmission line architecture with multiple coupled lines. The S-parameter matrix may be used to describe the frequency domain characteristics of the electronic element in the DDR 4.
In Step S110, the processor 110 substitutes Equation (27) back into (10) and (11) to convert the transfer function into the pulse response, such as Equation (5). The pulse response includes the pulse response of the insertion loss response and the far-end crosstalk response.
In Step S120, the processor 110 calculates the eye-diagram index according to the pulse response, such as Equations (15) to (18). The eye-diagram index includes the worst eye height of Equation (15), the worst eye width of Equation (16), and the worst center eye height of Equation (18).
In Step S130, the processor 110 corrects the eye-diagram index according to the peak distortion analysis, such as Equation (31). The peak distortion analysis includes the peak distortion analysis of the clock signal. In other words, for Equation (15), the processor 110 may further consider the sum of crosstalk of the DQS and crosstalk caused by the remaining coupled lines, and Equation (15) is corrected into Equation (31).
In an embodiment, for Equations (1) and (2), the processor 110 may also consider the sum of crosstalk of the DQS and crosstalk caused by the remaining coupled lines, and Equations (1) and (2) are corrected into Equations (32) and (33).
In an embodiment, the processor 110 is, for example, a center processing unit (CPU), other programmable general-purpose or specific-purpose micro control units (MCU), microprocessors, digital signal processors (DSP), programmable controllers, application specific integrated circuits (ASIC), graphics processing units (GPU), image signal processors (ISP), image processing units (IPU), arithmetic logic units (ALU), complex programmable logic devices (CPLD), field programmable gate arrays (FPGA), other similar elements, or a combination of the above elements.
In an embodiment, the storage element 120 is used to store various software, data, and various program codes required when the electronic apparatus 100 is running. The storage medium 120 is, for example, any type of fixed or removable random access memory (RAM), read-only memory (ROM), flash memory, hard disk drive (HDD), solid state drive (SSD), similar elements, or a combination of the above elements and is used to store multiple modules or various applications that may be executed by the processor 110. In an embodiment, the storage element 120 may further include a database.
In addition, sufficient teachings, suggestions, and implementation explanations for the eye-diagram index analytic method of the embodiment may be obtained from the description of the embodiments of
Specifically, the circuit to be calculated by the computer program of the embodiment is, for example, the DDR4 circuit of
The user may input the S-parameters and the value of each element in the linear equivalent circuit and each parameter of the voltage source as shown in
The output/input interface 230 is, for example, a display apparatus and may be used to display a program window, so that a user may input each parameter through a keyboard, a mouse, touch, etc.
Therefore, the embodiment writes a program based on the eye-diagram index analytic method and establishes a graphical user interface (GUI). Therefore, the user may calculate the eye-diagram index in a simple and intuitive operating environment, and the result is not only directly displayed in the interface, but also stored in a file to provide the user with further analysis.
In addition, sufficient teachings, suggestions, and implementation explanations for the eye-diagram index analytic method of the embodiment may be obtained from the description of the embodiments of
An application scenario of the eye-diagram index analytic method according to the embodiment of the disclosure is described below. The eye-diagram index analytic method according to the embodiment of the disclosure may be used to validate whether the package carrying the chip and the transmission signal quality of the printed circuit board meet the requirements after the chip circuit design. There are several reasons that affect the package and the transmission signal quality of the printed circuit board, loss, reflection, crosstalk, and equivalent load at the circuit end.
The general method to validate signal quality is to simulate with a circuit simulation software through connecting a chip circuit model, a PKG model, and a PCB model in series. However, such a simulation validation method requires more time if multiple signal lines are to be validated. Therefore, the eye-diagram index analytic method of the embodiment of the disclosure may be used to first screen out signal lines that may have poor transmission signal quality, then check the package and the layout design of the printed circuit board, and make modification.
In an embodiment, the eye-diagram index analytic method may be integrated into an electronic design automation (EDA) tool, and the EDA tool may even be provided as a reference for modification. In an embodiment, input data required by the eye-diagram index analytic method includes a package channel model carrying the chip, a printed circuit board channel model connected to the chip package, and input parameters. The input parameters vary according to a circuit under test and functions. Taking the test of DDR transmission quality as an example, the parameters that need to be input include voltage source, transmission rate, write mode, read mode, circuit equivalent resistance load, circuit equivalent capacitance load, and eye height voltage.
In summary, in the embodiment of the disclosure, the eye-diagram index analytic method of multiple coupled transmission lines is provided. First, the transfer function under mismatched boundaries is derived, the pulse response may be then obtained using inverse Fourier transform, and each index of the eye diagram may be obtained based on the peak distortion analysis, which can greatly improve the design and optimization efficiency. The eye-diagram index analytic method of the embodiment of the disclosure can more effectively and accurately determine the signal integrity of different signal lines than other methods.
Although the disclosure has been disclosed in the above embodiments, the embodiments are not intended to limit the disclosure. Persons skilled in the art may make some changes and modifications without departing from the spirit and scope of the disclosure. Therefore, the protection scope of the disclosure shall be defined by the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
112149437 | Dec 2023 | TW | national |
This application claims the priority benefit of U.S. provisional application Ser. No. 63/536,436, filed on Sep. 4, 2023, and Taiwan application serial no. 112149437, filed on Dec. 19, 2023. The entirety of each of the above-mentioned patent applications is hereby incorporated by reference herein and made a part of this specification.
Number | Date | Country | |
---|---|---|---|
63536436 | Sep 2023 | US |