# Patent

## Title
Modeling an electronic device

## Abstract

For modeling a first device, a measured electrical behavior in at least one of time and frequency domain is received, wherein the measured electrical behavior at least substantially represents at least a portion of the electrical behavior of the first device. The first device is modeled by using a circuit with one or more circuit device, wherein each circuit device has a known model for its electrical behavior, and the circuit substantially represents the measured electrical behavior of the first device. The modeling comprises a step of approximating the measured signal response by sections of a curve.

## Background
BACKGROUND OF THE INVENTION
Modeling of electronic devices e.g. for simulation of electronic circuits comprising such devices, as known for example from the SPICE circuit simulation system, requires to know or reveal details about the internal construction of the device to be modeled. Often manufacturers of devices (like operational amplifiers) provide model parameter to be used in the SPICE system.
SUMMARY OF THE INVENTION
It is an object of the invention to provide an improved modeling of electronic devices. The object is solved by the independent claims. Preferred embodiments are given by the dependent claims.
According to the present invention it is not necessary to provide an analytical model describing the internal construction, but the measured (external) behavior of the device in time or frequency domain is used. In a preferred embodiment, the measured electrical behavior comprises a measured signal response on a predetermined electrical signal input to the device, and preferably comprises a measured signal response on a step signal.
The device can contain any kind of element like—for example—cables, board traces, connectors, packages, sockets, stubs, resistors, inductors or capacitors. Even multiple reflections or frequency dependent parameters like skin effect or dielectric losses can be characterized according to preferred embodiments.
In testing of modern high-speed electronic devices, e.g. in the frequency range of tenth to ten times GHz, the corresponding high-speed signal path e.g. between an Automated Test Equipment (ATE) and a Device Under Test (DUT) becomes relevant influence on the measured signals. In a preferred embodiment the device to be modeled is such high-speed signal path, which might be connected between the ATE and the DUT. The device to be modeled can also be a line drive output of such ATE, an n-port network, etc.
According to an embodiment, the device to be modeled can be characterized in the time domain by at least one of its pulse or step response. An ideal pulse allows characterizing the device to be modeled in the time domain. Such ideal pulse is infinitely short, infinitely high, has a predetermined energy, and is known as Dirac pulse. Such Dirac pulse, however, is often not sufficiently feasible in reality. Therefore, in a preferred embodiment a substantially ideal pulse or the response to a step input signal is used to build the model out of measurement data.
It is also possible to use the measured external behavior of the device in the frequency domain, e.g. using a vector-network-analyzer. For example, the step response can be calculated by an inverse Fourier transformation and subsequent integration of the resulting pulse response.



BRIEF DESCRIPTION OF THE DRAWINGS
Other objects and many of the attendant advantages of the present invention will be readily appreciated and become better understood by reference to the following detailed description when considering in connection with the accompanied drawings. Features that are substantially or functionally equal or similar will be referred to with the same reference signs.
FIG. 1 shows stimulating incident waves into a 2-port network,
FIG. 2 shows the SPICE model of the 2-port network of FIG. 1,
FIG. 3 shows the model of a voltage adder,
FIG. 4 shows an example for an approximated step response,
FIG. 5 shows time and voltage values of the sampling points shown in FIG. 4,
FIG. 6 shows a SPICE model representing a step response, and
FIG. 7 shows how the four step responses of a 2-port network can be measured using a time domain reflection (TDR) oscilloscope.



MORE DETAILED DESCRIPTION OF PREFERRED EMBODIMENTS ACCORDING TO THE INVENTION
Without limitation of the general inventive concept, in the following the invention is described on the example of a 2-port network with ports x and y. As known from systems theory such a 2-port network can be fully described by the so-called S-parameters in the frequency domain. In an analog manner, the network can also be described in the time domain by its step response according to the following convolution equations:

eR1(t)=sr11(t)*eI1′(t)+sr12(t)*eI2′(t)  (1)

eR2(t)=sr21(t)*eI1′(t)+sr22(t)*eI2′(t)  (2)

The term srxy(t) stands for the response at port x on a stimulation at port y with an ideal step signal. The term eIy′(t) stands for the first derivative of the incident wave into port x. The symbol “*” stands for the convolution.
To put the above equations (1) and (2) into a simple recipe: Take each little step the incident signal makes, multiply with the step response and delay the result by the time when your input step takes place. Summing everything together then generates the response to the input signal. The responses to each individual input signal can be added together according to the principal of superposition.
FIG. 1 shows stimulating incident waves into a 2-port network. The relationship between voltages and currents at the ports v1 a nd v2 of the network are defined by their characteristic impedances Z1 and Z2. Incident waves can be generated by external voltage sources:

eI1S(t)=Z1/(ZS1+Z1)×vS1(t)  (3)

eI2S(t)=Z2/(ZS2+Z2)×vS2(t)  (4)

or by reflections at the ports

eI1R(t)=(ZS1−Z1)/(ZS1+Z1)×eR1(t)  (5)

eI2R(t)=(ZS2−Z2)/(ZS2+Z2)×eR2(t)  (6)

According to the principle of superposition, it results from addition:

eI1(t)=eI1S(t)+eI1R(t)  (7)

eI2(t)=eI2S(t)+eI2R(t)  (8)

Thus, from systems theory it is clear how incident waves are generated by transmission line theory and how reflected waves are generated by convolution with step responses. This information can be used to construct a comprehensive model to be used in the SPICE system. Usually a 50-Ohm environment is given and therefore in the following the model is designed with 50-Ohm characteristic impedance at its ports. Any deviation from that value is regarded as internal effect and will show up in the step response part of the model.
FIG. 2 shows the SPICE model of the 2-port network of FIG. 1 and FIG. 3 shows the model of a voltage adder.
Calculating the incident waves from the schematic result into:

eI1(t)=(Z1×vS1(t)+(ZS1−Z1)×eR1(t))/(ZS1+Z1)  (9)

eI2(t)=(Z2×vS2(t)+(ZS2−Z2)×eR2(t))/(ZS2+Z2)  (10)

eR1(t)=sr11(t)*eI1′(t)+sr12(t)*eI2′(t)  (11)

eR2(t)=sr21(t)*eI1′(t)+sr22(t)*eI2′(t)  (12)

Using simple mathematics, it can be shown that these equations match with the calculated equations mentioned above.
Any arbitrary step response can be approximated with arbitrary accuracy by a section-wise linear curve like in the example shown in the top graph of FIG. 4. The corresponding sampling points for the approximation in this example have the time and voltage values listed in FIG. 5. In order to construct the step response, the incoming step s(t) is stripped down to the pulses pi(t) having their transitions at the sampling points used for approximation. Those pulses are used to control current sources with a trans-conductance representing the slope in the corresponding section of the step response like depicted in FIG. 6.
The delays TDi of the transmission lines Ti(i=1, 2, . . . , 8) represent the lengths of the construction pulses pi(t):

TDi=ti−ti−1  (13)

The differential input signals on the voltage controlled current sources Gi look like the construction pulses pi in FIG. 4. The trans-conductances GTi have to be:

GTi=(Vi−Vi−1)×C1/(ti−ti−1)  (14)

The resistors R1 and R2 define the DC path for the output voltage. They can be calculated from the end value of the step response:

R2/(R1+R2)=sr(∞)/s(∞)=sr(∞)/1V  (15)

The time constant of the RC element

τRC=C1×(R1∥R2)  (16)

has to be large enough so that the exponential loading curve does not interfere with the shape of the step response. A good value would be if the time constant were 1000 times larger that the time range between the first and the last sampling point. This limits the resulting voltage error of the simulated step response to below 0.1%.

With the SPICE model shown in FIG. 6 a circuit is created that has the step response needed for the device to be modeled. As the model is linear and time invariant, its response to any arbitrary input signal is equal to the response of the signal path to be characterized in the described embodiment.
FIG. 7 shows how the four step responses of a 2-port network can be measured using a time domain reflection (TDR) oscilloscope. The internal TDR source is dedicated to the first channel CH1. It generates a steep edge with a rise time in the order of 40 ps. This can be taken as an approximate ideal step scaled with a factor. The delay time relative to the internally generated oscilloscope trigger can be observed as the point in time on the scope graph of channel 1 where the edge starts.
Setup A places a short circuit at the end of cable 1 generating a reflection coefficient of −1. Channel 1 of the oscilloscope sees a pulse with a length that equals the round trip delay of cable 1. The delay of single trip of cable 1 can be easily determined by placing markers at the 50% points of the pulse edges and taking half of the time distance between the two markers.
In Setup B the two channels capture the same signal but on channel 2 (CH2) the combined delay of cable 1 and cable 2 takes effect. The delay of cable 2 can be determined by placing markers at the 50% points of the two channels, reading out the time distance and subtracting the delay time of cable 1.
The Setups A and B can be regarded as a calibration procedure.
In Setup C and Setup D the reflections at the stimulated port can be observed as superposition to the stimulating time domain reflection pulse on channel 1 of the oscilloscope with an additional roundtrip cable 1 delay. The transmitted signals can be observed on channel 2 with an additional delay of cable 2.
The four step responses can now be derived very easily from the measurement and from using equations representing the Setup A to Setup D described above.
Although the edge of a TDR edge is usually very fast, it certainly is not a perfect step. In order to eliminate the remaining distortions due to finite slew rate, possibly over—and undershoot and settling phase to final value, the ideal step response can be calculated from the measured stimulus and response by the method described below.
At first, the captured waveforms together with a shape of an ideal step starting at the same time as the stimulus have to be converted into a periodic shape by extending the measured date set with the same edge that has been mirrored at the average value of the first and the last sampling point.
The resulting signals can then be converted into the frequency domain via Fast Fourier Transformation (FFT). The transfer function results from the division from the output signal by the input signal. Multiplication of transfer function and the ideal step in the frequency domain gives the spectrum of the ideal step response that can be converted back into time domain via inverse FFT.
As the output voltage of the model shown in FIG. 2 is generated by integrating loading currents, the voltage error in the transient analysis strongly depends on the integration method and the time steps of the SPICE simulator. As a rule of thumb, the time step should be in the same order of magnitude as the delay time of the transmission lines in the step response model. Depending of which simulator is used, there may be a lot more options controlling simulation accuracy. The best way to test those parameters is to stimulate the model with a single edge and verify if the final value is close enough to the theoretical end voltage.
Differing from the comprehensive model shown in FIG. 2 there are applications where not all step responses are of interest and for such applications the model can be drastically simplified. In many cases only the transmission of a signal from port 1 to port 2 is necessary. This is the case for example for an environment with 50-Ohm terminations at both ends or for signal paths with only small reflections. In such cases, the responses sr11, sr21, and sr22 can be neglected and deleted from the model. The measurement effort and the model complexity are strongly reduced.
Another example for the device to be modeled is a line driver controlled by a digital input signal. In this case, there is no response at the control input to anything happening at the output. Therefore s12 and s11 are not necessary.
Similar to S-parameters in the frequency domain, step responses can be used to characterize n-port networks with n>2. For example, coupled transmission lines for differential signaling would be an application for it.
In summary, the present invention introduces a new method of modeling linear and time invariant devices like signal paths or n-port networks. The principle has been derived from basic transmission line and systems theory and is based on step response measurement with a TDR oscilloscope. It has been validated by the means of a SPICE simulation showing the correlation between an arbitrarily chosen signal path model and the corresponding step response model.

## Claims

1. A method comprising:
(a) receiving a measured electrical signal response in at least one of time domain or frequency domain, wherein the measured electrical signal response represents an electrical behavior of an electronic device;
(b) sampling the received measured electrical signal response at a plurality of sampling points and approximating each section of the received measured electrical signal response between two adjacent sampling points by a respective linear curve section;
(c) for each section of the received measured electrical signal response between two adjacent sampling points:
(i) selecting a pulse unit for generating a pulse having a transition between the two adjacent sampling points associated with the section; and
(ii) selecting a current source or a voltage source providing, in response to the pulse from the selected pulse unit, an output signal corresponding to a slope of the section;

(d) selecting an integrating unit for superimposing the output signals from each of the selected current or voltage sources for generating an approximated signal response; and
(e) creating a model of the electronic device based on the selected pulse units, the selected current or voltage sources and the selected integrating unit.

2. The method of claim 1, wherein the measured electrical signal response comprises a signal selected from the group consisting of:
a measured signal response to a predetermined electrical signal provided as a stimulus signal to the electronic device, and
a response to a step signal so that the measured signal response comprises a step response.

3. The method of claim 1, wherein the measured electrical signal response is sampled in the time domain.

4. The method of claim 1, further comprising:
calculating a ideal step response from a measured real step signal having a finite slew rate and from the measured electrical signal response to the measured real step signal.

5. The method of claim 4, wherein the ideal step response is calculated by a technique selected from the group consisting of a Fourier Transformation and a Fast Fourier Transformation.

6. The method of claim 1, wherein the model of the electronic device is generated by a system selected from the group consisting of a simulation system and a SPICE simulation system.

7. The method of claim 1, wherein the electronic device is selected from the group consisting of: a linear device, a time-invariant device, an electrical device, a signal path, a high-speed signal path, a line drive output, a line drive output of an automated test equipment, and an n-port network.

8. The method of claim 1, wherein the measured electrical signal response of the electronic device is a measurement selected from the group consisting of a time domain reflection measurement and a time domain transmission measurement.

9. The method of claim 1, further comprising:
measuring the signal response of the electronic device in at least one of the time domain and the frequency domain.

10. A computer readable storage media containing executable computer program instructions which when executed cause a processing system to perform a method comprising:
(a) receiving a measured electrical signal response in at least one of time domain or frequency domain, wherein the measured electrical signal response represents an electrical behavior of an electronic device;
(b) sampling the received measured electrical signal response at a plurality of sampling points and approximating each section of the received measured electrical signal response between two adjacent sampling points by a respective linear curve section;
(c) for each section the received measured electrical signal response between two adjacent sampling points:
(i) selecting a pulse unit for generating a pulse having a transition between the two adjacent sampling points associated with the section; and
(ii) selecting a current source or a voltage source providing, in response to the pulse from the selected pulse unit, an output signal corresponding to a slope of the section;

(d) selecting an integrating unit for superimposing the output signals from each of the selected current or voltage sources for generating an approximated signal response; and
(e) creating a model of the electronic device based on the selected pulse units, the selected current or voltage sources and the selected integrating unit.

11. A system comprising:
(I) a receiver for receiving a measured electrical signal response in at least one of time domain or frequency domain, wherein the measured electrical signal response represents an electrical behavior of an electronic device;
(II) a modeling unit for:
(a) sampling the received measured electrical signal response at a plurality of sampling points and approximating each section of the received signal response between two adjacent sampling points by a respective linear curve section;
(b) for each section of the received measured electrical signal response between two adjacent sampling points:
(i) selecting a pulse unit for generating a pulse having a transition between the two adjacent sampling points associated with the section; and
(ii) selecting a current source or a voltage source providing, in response to the pulse from the selected pulse unit, an output signal corresponding to a slope of the section;

(c) selecting an integrating unit for superimposing the output signals from each of the selected current or voltage sources for generating an approximated signal response; and
(d) creating a model of the electronic device based on the selected pulse units, the selected current or voltage sources and the selected integrating unit; and
(III) a measuring unit for measuring the electrical behavior of the electronic device in at least one of the time domain or the frequency domain.