1. Technical Field
The present application is related to simulation systems for circuits, especially to a direct current (DC) compensation system and method for S-parameter rational functions.
2. Description of Related Art
S-parameters, also called scattering parameters, are used to describe signal-wave response of an n-port electrical network (circuit system) at given frequency.
S-parameters can be expressed by an S-parameter rational function, which is generated according to the S-parameters using a vector fitting algorithm. However, the S-parameter rational function generated using the vector fitting algorithm is an approximation, thus, may produce errors at a DC level of the signal-wave response of the n-port electrical networks.
The application is illustrated by way of examples and not by way of limitation in the figures of the accompanying drawings in which like references indicate similar elements. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean at least one.
In general, the word “module” as used hereinafter, refers to logic embodied in hardware or firmware, or to a collection of software instructions, written in a programming language, such as, for example, Java, C, or Assembly. One or more software instructions in the modules may be embedded in firmware. It will be appreciated that modules may be comprised of connected logic units, such as gates and flip-flops, and may be comprised of programmable units, such as programmable gate arrays or processors. The modules described herein may be implemented as either software and/or hardware modules and may be stored in any type of computer-readable medium or other computer storage device.
In the embodiment, the function modules of the DC compensation system 10 may include one or more computerized codes in the form of one or more programs that are stored in the storage unit 11. The storage unit 11 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other non-volatile solid state memory devices. The one or more computerized codes of the DC compensation system 10 include instructions that are executed by the processor 12, to provide functions for the function modules of the DC compensation system 10.
The acquisition module 101 reads the S-parameters f(sk) from the storage unit 11. As mentioned, the S-parameters describe signal-wave response of an n-port electrical network (circuit system), and are generated at given frequency sk.
The parameter check module 102 checks if there is an S-parameter which is generated at the frequency sk=0. It may be appreciated that, the S-parameter generated at the frequency sk=0 represents DC.
The parameter supplement module 103 supplements the S-parameter at frequency sk=0 using an interpolation method if there is no S-parameter which is generated at the frequency sk=0. It may be appreciated that, the interpolation method is a method of constructing new data points within the range of a discrete set of known data points.
The vector fitting module 104 generates an S-parameter ration function according to the S-parameters f(sk) using a vector fitting algorithm. In one embodiment, the S-parameter rational function is constituted by pole values pm and residue values rm, and is shown below:
The DC compensation module 105 compensates the DC level of the above S-parameter rational function to generate a compensated S-parameter rational function using the following steps:
where μ=1˜M/2, and M is a total number of the pole values.
using unknown variables rm, d, and {tilde over (γ)}m of functions (σf)fit and σfit(s). In one embodiment, the functions (σf)fit(s) and σfit(s) are shown as follows:
where pm=zm, m=1˜M.
The format conversion module 106 converts a format of the compensated S-parameter rational function to a standard format, for being compatible with HSPICE simulation software. The conversion is realized as follows: Firstly, expressing the S-parameters f(sk) using a following matrix:
Secondly, substituting the Sij(s), where i, j=1˜N, of the above matrix into the compensated S-parameter rational function, obtaining a matrix as follows:
After that, converting the format of the compensated S-parameter rational function in to the standard format according to the Ŝij (s):
The output module 107 stores the compensated S-parameter rational function into the storage unit 11, and outputs the compensated S-parameter rational function to the output unit 13.
In block S10, the acquisition module 101 reads the S-parameters f(sk), which are generated at given frequency sk, from the storage unit 11.
In block S11, the parameter check module 102 checks if there is an S-parameter which is generated at the frequency sk=0. Block S13 is implemented if there is an S-parameter which is generated at the frequency sk=0. Otherwise, block S12 is implemented if there is no S-parameter which is generated at the frequency sk=0.
In block S12, the parameter supplement module 103 supplements the S-parameter at frequency sk=0 using an interpolation method. It may be appreciated that, the interpolation method is a method of constructing new data points within the range of a discrete set of known data points.
In block S13, the vector fitting module 104 generates an S-parameter ration function according to the S-parameters f(sk) using a vector fitting algorithm. In one embodiment, the S-parameter rational function is constituted by pole values pm and residue values rm, and is shown below:
In block S14, the DC compensation module 105 compensates the DC level of the above S-parameter rational function to generate a compensated S-parameter rational function. The detailed description of block S14 refers to
In block S15, the format conversion module 106 converts a format of the compensated S-parameter rational function to a standard format, for being compatible with HSPICE simulation software. The conversion is realized as follows: Firstly, expressing the S-parameters f(sk) using a following matrix:
Secondly, substituting the Sij (s), where i, j=1˜N, of the above matrix into the compensated S-parameter rational function, obtaining a matrix as follows:
After that, converting the format of the compensated S-parameter rational function in to the standard format according to the Ŝij (s):
In block S16, the output module 107 stores the compensated S-parameter rational function into the storage unit 11, and outputs the compensated S-parameter rational function to the output unit 1.
In block S140, the DC compensation module 105 computing the pole values pm using first formulas as follows:
where μ=1˜M/2, and M is a total number of the pole values.
using unknown variables rm, d, and {tilde over (γ)}m of functions (σf)fit(s) and σfit(s). In one embodiment, the functions (σf)fit(s) and σfit(s) are shown as follows:
In block S142, the DC compensation module 105 substitutes the pole values pm and the S-parameters f(sk) into matrixes A and B. In one embodiment, the matrixes A and B are shown as follows:
In block S143, the DC compensation module 105 computes the unknown variables rm, d, and {tilde over (γ)}m using a formula X=(AT A)−1 AT B, to get the functions (σf)fit(s) and σfit(s).
In block S144, the DC compensation module 105 determines if blocks S141 to S143 are only executed one time. Block S145 is implemented if blocks S141 to S143 are only executed one time. Otherwise, block S147 is implemented if blocks S141 to S143 are executed more than one time.
In block S145, the DC compensation module 105 records the got (σf)fit(s) as (σf)fit
In block S146, the DC compensation module 105 computes the pole values pm again using a second formula as follows:
where pm=zm, m=1˜M.
After block S146, the flow returns to block S141 described above.
In block S147, the DC compensation module 105 determines if |(σf)fit(s)−(σf)fit
In block S148, the DC compensation module 105 regards the got (σf)fit(s) as the compensated S-parameter rational function.
While the disclosure has been described by way of example and in terms of preferred embodiment, it is to be understood that the disclosure is not limited thereto. To the contrary, it is intended to cover various modifications and similar arrangements (as would be apparent to those skilled in the art). Therefore, the scope of the appended claims should be accorded the broadest interpretation so as to encompass all such modifications and similar arrangements.
Number | Date | Country | Kind |
---|---|---|---|
99123358 | Jul 2010 | TW | national |
Number | Name | Date | Kind |
---|---|---|---|
20080059092 | Pupalaikis et al. | Mar 2008 | A1 |
Number | Date | Country |
---|---|---|
101119357 | Feb 2008 | CN |
Number | Date | Country | |
---|---|---|---|
20120016920 A1 | Jan 2012 | US |