[go: up one dir, main page]

CN102339245B - System and method for compensating circuit direct-current (DC) offset - Google Patents

System and method for compensating circuit direct-current (DC) offset Download PDF

Info

Publication number
CN102339245B
CN102339245B CN201010233909.3A CN201010233909A CN102339245B CN 102339245 B CN102339245 B CN 102339245B CN 201010233909 A CN201010233909 A CN 201010233909A CN 102339245 B CN102339245 B CN 102339245B
Authority
CN
China
Prior art keywords
function
fit
matrix
data
rational
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201010233909.3A
Other languages
Chinese (zh)
Other versions
CN102339245A (en
Inventor
曾文亮
李昇军
白育彰
许寿国
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
Original Assignee
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hongfujin Precision Industry Shenzhen Co Ltd, Hon Hai Precision Industry Co Ltd filed Critical Hongfujin Precision Industry Shenzhen Co Ltd
Priority to CN201010233909.3A priority Critical patent/CN102339245B/en
Publication of CN102339245A publication Critical patent/CN102339245A/en
Application granted granted Critical
Publication of CN102339245B publication Critical patent/CN102339245B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Indication And Recording Devices For Special Purposes And Tariff Metering Devices (AREA)
  • Design And Manufacture Of Integrated Circuits (AREA)

Abstract

一种电路直流偏移量补偿系统,安装并运行于计算机中。该系统包括:资料采集模块,用于从计算机的资料存储单元内读取多端口电路系统资料文件,并从该多端口电路系统资料文件内获取多端口散射参数f(sk);参数检查模块,用于检查上述散射参数f(sk)的频域分布中是否包含f(sk)为0的资料,当不包含f(sk)为0的资料时,执行插补算法补足f(sk)为0的资料;及偏移量补偿模块,用于对散射参数f(sk)执行向量拟合的直流偏移量补偿,生成补偿后的有理函数。本发明还提供一种电路直流偏移量补偿方法。实施本发明能够对向量拟合演算法所产生的电路直流偏移量进行补偿。

A circuit DC offset compensation system is installed and operated in a computer. The system includes: a data acquisition module, which is used to read the multi-port circuit system data file from the data storage unit of the computer, and obtain the multi-port scattering parameter f(s k ) from the multi-port circuit system data file; a parameter checking module , is used to check whether the frequency domain distribution of the above scattering parameter f(s k ) contains data with f(s k ) being 0, and if the data with f(s k ) being 0 is not included, perform an interpolation algorithm to complement f( s k ) is 0 data; and an offset compensation module is used to perform vector fitting DC offset compensation on the scattering parameter f(s k ), and generate a rational function after compensation. The invention also provides a circuit DC offset compensation method. The implementation of the invention can compensate the DC offset of the circuit generated by the vector fitting algorithm.

Description

电路直流偏移量补偿系统及方法Circuit DC offset compensation system and method

技术领域 technical field

本发明涉及信号模拟及量测领域,特别是关于一种电路直流偏移量补偿系统及方法。The invention relates to the field of signal simulation and measurement, in particular to a circuit DC offset compensation system and method.

背景技术 Background technique

散射参数(scatter parameter,又称S参数)是建立在入射波、反射波关系基础上的网络参数,适于微波电路分析,以器件端口的反射信号以及从该端口传向另一端口的信号来描述电路网络。散射参数被广泛运用在封装(package)与印刷电路板(PCB)信道(channel)模型上。Scatter parameter (also known as S parameter) is a network parameter based on the relationship between incident wave and reflected wave, which is suitable for microwave circuit analysis. Describe the circuit network. Scattering parameters are widely used in package and printed circuit board (PCB) channel models.

散射参数可通过向量拟合(vector fitting)演算法产生有理函数(rationalfunction)形式的数学表达式。在电路模拟运算流程中,Synopsys公司所开发的Hspice电路模拟软件使用有理函数矩阵(rational function matrix,rfm)标准档案格式来表示有理函数,以递归卷积(recurisive convolution)演算法来处理散射参数模型时域暂态(transient)问题,可提高模拟运算效率。Scattering parameters can be mathematically expressed in the form of rational functions through vector fitting algorithms. In the circuit simulation operation process, the Hspice circuit simulation software developed by Synopsys uses the rational function matrix (rfm) standard file format to represent rational functions, and uses the recursive convolution (recurisive convolution) algorithm to process the scattering parameter model Time-domain transient problems can improve the efficiency of simulation operations.

然而,利用向量拟合演算法对散射参数进行运算时得到的有理函数是一个近似结果,从而形成电路直流(DC)准位误差。在利用Hspice电路模拟软件时,这个电路直流准位误差会对时域暂态模拟结果造成影响。参阅图1所示,是一个内存(DDR3)系统24端口(port)散射参数经过52极值-残值(pole-residue)的向量拟合结果。从图1中右侧的局部放大图中可以看出,当频率为0(即直流部分)时有0.1dB的准位误差。这个0.1dB的直流准位误差会造成在利用Hspice进行有理函数矩阵时域模拟时产生6.98mV的直流偏移量。However, the rational function obtained when operating on the scattering parameters using the vector fitting algorithm is an approximate result, resulting in a direct current (DC) level error of the circuit. When using the Hspice circuit simulation software, the DC level error of this circuit will affect the time-domain transient simulation results. Referring to FIG. 1 , it is a vector fitting result of 24 port scattering parameters of a memory (DDR3) system through 52 pole-residues. It can be seen from the partial enlarged diagram on the right side of Fig. 1 that there is a level error of 0.1dB when the frequency is 0 (that is, the DC part). This 0.1dB DC level error will cause a 6.98mV DC offset when using Hspice for rational function matrix time domain simulation.

发明内容 Contents of the invention

鉴于以上内容,有必要提供一种电路直流偏移量补偿系统,能够对向量拟合演算法所产生的电路直流偏移量进行补偿。In view of the above, it is necessary to provide a circuit DC offset compensation system capable of compensating the circuit DC offset generated by the vector fitting algorithm.

鉴于以上内容,有必要提供一种电路直流偏移量补偿方法,能够对向量拟合演算法所产生的电路直流偏移量进行补偿。In view of the above, it is necessary to provide a circuit DC offset compensation method capable of compensating the circuit DC offset generated by the vector fitting algorithm.

所述的电路直流偏移量补偿系统,安装并运行于计算机中。该系统包括:资料采集模块,用于从计算机的资料存储单元内读取多端口电路系统资料文件,并从该多端口电路系统资料文件内获取多端口散射参数f(sk);参数检查模块,用于检查上述散射参数f(sk)的频域分布中是否包含f(sk)为0的资料,当不包含f(sk)为0的资料时,执行插补算法补足f(sk)为0的资料;及偏移量补偿模块,用于对散射参数f(sk)执行向量拟合的直流偏移量补偿,生成补偿后的有理函数。The circuit DC offset compensation system is installed and operated in a computer. The system includes: a data acquisition module, which is used to read the multi-port circuit system data file from the data storage unit of the computer, and obtain the multi-port scattering parameter f(s k ) from the multi-port circuit system data file; a parameter checking module , is used to check whether the frequency domain distribution of the above scattering parameter f(s k ) contains data with f(s k ) being 0, and if the data with f(s k ) being 0 is not included, perform an interpolation algorithm to complement f( s k ) is 0 data; and an offset compensation module is used to perform vector fitting DC offset compensation on the scattering parameter f(s k ), and generate a rational function after compensation.

所述的电路直流偏移量补偿方法包括如下步骤:从计算机的资料存储单元内读取多端口电路系统资料文件,并从该多端口电路系统资料文件内获取多端口散射参数f(sk);检查上述散射参数f(sk)的频域分布中是否包含f(sk)为0的资料,当不包含f(sk)为0的资料时,执行插补算法补足f(sk)为0的资料;及对散射参数f(sk)执行向量拟合的直流偏移量补偿,生成补偿后的有理函数。The method for compensating the DC offset of the circuit includes the following steps: reading the multi-port circuit system data file from the data storage unit of the computer, and obtaining the multi-port scattering parameter f(s k ) from the multi-port circuit system data file ; Check whether the frequency domain distribution of the above scattering parameter f(s k ) contains data with f(s k ) being 0, and if it does not contain data with f(s k ) being 0, perform an interpolation algorithm to supplement f(s k ) is 0 data; and performing vector fitting DC offset compensation on the scattering parameter f(s k ), to generate a rational function after compensation.

相较于现有技术,本发明所述向量拟合算法的电路直流偏移量补偿系统及方法利用Touchstone格式的多端口电路系统资料仿真产生标准档案格式(*.rfm)的Hspice有理函数矩阵。此有理函数矩阵能够改善散射参数模型时域瞬时直流准位问题。Compared with the prior art, the circuit DC offset compensation system and method of the vector fitting algorithm of the present invention use the multi-port circuit system data in the Touchstone format to simulate and generate the Hspice rational function matrix in the standard file format (*.rfm). This rational function matrix can improve the instantaneous DC level problem in the time domain of the scattering parameter model.

附图说明 Description of drawings

图1是24端口的散射参数的向量拟合结果。Figure 1 is the vector fitting result of the scattering parameters of 24 ports.

图2是本发明电路直流偏移量补偿系统较佳实施例的实施架构图。FIG. 2 is an implementation structure diagram of a preferred embodiment of the circuit DC offset compensation system of the present invention.

图3是本发明电路直流偏移量补偿方法较佳实施例的流程图。Fig. 3 is a flow chart of a preferred embodiment of the circuit DC offset compensation method of the present invention.

图4是图3中步骤S14的详细流程图。FIG. 4 is a detailed flowchart of step S14 in FIG. 3 .

主要元件符号说明Description of main component symbols

计算机                    1computer 1

直流偏移量补偿系统        12DC offset compensation system 12

资料采集模块              121Data acquisition module 121

参数检查模块              122Parameter checking module 122

偏移量补偿模块            123Offset Compensation Module 123

格式转换模块              124Format conversion module 124

资料存储单元              10Data Storage Unit 10

中央处理器                11CPU 11

输出设备                  2output device 2

具体实施方式 Detailed ways

如图1所示,是本发明电路直流偏移量补偿系统12较佳实施例的实施架构图。在本实施例中,该直流偏移量补偿系统12安装并运行于计算机1中。所述的计算机1包括资料存储单元10以及中央处理器(centralprocessing unit,CPU)11。该计算机1连接输出设备2,例如显示器。资料存储单元10用于存储Touchstone格式(例如*.SNP)的多端口(N-ports)电路系统资料文件,该多端口电路系统资料文件包括电子元件的多端口(N-ports)散射参数f(sk)。其中,该f(sk)表示每个频率点的散射参数的值。所述的Touchstone格式是IBIS协会所规范的一种资料存储的标准文件格式(Touchstone File Format Specification)。所述的直流偏移量补偿系统12用于从资料存储单元10内读取Touchstone标准文件格式的多端口(N-ports)电路系统资料文件,并对该多端口电路系统资料文件中的多端口散射参数进行处理,以生成对直流偏移量进行补偿后的有理函数,并将该有理函数输出至输出设备2,例如显示器中。As shown in FIG. 1 , it is an implementation structure diagram of a preferred embodiment of a circuit DC offset compensation system 12 of the present invention. In this embodiment, the DC offset compensation system 12 is installed and runs in the computer 1 . The computer 1 includes a data storage unit 10 and a central processing unit (central processing unit, CPU) 11 . The computer 1 is connected to an output device 2, such as a monitor. Data storage unit 10 is used for storing the multi-port (N-ports) circuit system data file of Touchstone format (such as *.SNP), and this multi-port circuit system data file comprises the multi-port (N-ports) scattering parameter f( s k ). Wherein, the f(s k ) represents the value of the scattering parameter at each frequency point. The Touchstone format is a standard file format (Touchstone File Format Specification) for data storage regulated by the IBIS Association. Described DC offset compensation system 12 is used for reading the multi-port (N-ports) circuit system data file of Touchstone standard file format in the data storage unit 10, and the multi-port in the multi-port circuit system data file The scattering parameters are processed to generate a rational function compensated for the DC offset, and the rational function is output to an output device 2, such as a display.

所述的直流偏移量补偿系统12包括资料采集模块121、参数检查模块122、偏移量补偿模块123,及格式转换模块124。本发明所称模块是一种能够完成特定功能的计算机程序段,其比程序更适合于描述软件在计算机中的执行过程,因此本发明对软件的描述均以模块描述。The DC offset compensation system 12 includes a data acquisition module 121 , a parameter checking module 122 , an offset compensation module 123 , and a format conversion module 124 . The module referred to in the present invention is a computer program segment capable of accomplishing a specific function, which is more suitable than a program for describing the execution process of software in a computer, so the description of software in the present invention is described as a module.

所述的资料采集模块121用于从资料存储单元10内读取Touchstone标准文件格式的多端口电路系统资料文件,以及从该多端口电路系统资料文件内获取多端口散射参数f(sk)。其中,该f(sk)表示每个频率点的散射参数的值,sk为散射参数的频率。The data acquisition module 121 is used to read the multi-port circuit system data file in the Touchstone standard file format from the data storage unit 10, and obtain the multi-port scattering parameter f(s k ) from the multi-port circuit system data file. Wherein, the f(s k ) represents the value of the scattering parameter at each frequency point, and s k is the frequency of the scattering parameter.

所述的参数检查模块122用于检查上述散射参数f(sk)的频域分布中是否包含频率为0的资料,即是否有f(sk)为0的资料。当不包含频率为0的资料时,执行插补算法补足频率为0的资料。频率为0即为直流。所述插补算法是根据给定的数学函数,在理想的轨迹式轮廓上的已知点之间,确定一些中间点的一种方法。The parameter checking module 122 is used to check whether the frequency domain distribution of the scattering parameter f(s k ) contains data with a frequency of 0, that is, whether there is data with f(s k ) being 0. When the data with a frequency of 0 is not included, the interpolation algorithm is executed to complement the data with a frequency of 0. A frequency of 0 is DC. The interpolation algorithm is a method of determining some intermediate points between known points on an ideal trajectory profile according to a given mathematical function.

所述的偏移量补偿模块123用于对散射参数f(sk)执行向量拟合的直流补偿,生成补偿后的有理函数。其中,向量拟合的直流补偿方法如下:The offset compensation module 123 is used for performing vector fitting DC compensation on the scattering parameter f(s k ), and generating a rational function after compensation. Among them, the DC compensation method of vector fitting is as follows:

(1)利用公式:(1) Use the formula:

其中u=1~M/2,M为极值的个数,计算出起始极值Pm Where u=1˜M/2, M is the number of extremums, and the initial extremum P m is calculated.

(2)将(σf)fit(s)函数及σfit(s)函数中未知变量rm,d,组成一个X矩阵,其中:(2) The (σf) fit (s) function and the unknown variable r m in the σ fit (s) function, d, Form an X matrix, where:

( σf ) fit ( s ) = f ( 0 ) + s ( Σ m = 1 M r m s - p m + d ) σ fit ( s ) = Σ m = 1 M r ~ m s - p m + 1 ( σ f ) fit ( the s ) = f ( 0 ) + the s ( Σ m = 1 m r m the s - p m + d ) and σ fit ( the s ) = Σ m = 1 m r ~ m the s - p m + 1

并将起始极值Pm及散射参数f(sk)分别代入矩阵A与矩阵B中,形成如下等式:And substitute the initial extremum P m and the scattering parameter f(s k ) into matrix A and matrix B respectively to form the following equation:

再由X=(ATA)-1ATB计算出未知变量rm,d,因此,计算出(σf)fit(s)函数及σfit(s)函数。 Then calculate the unknown variable r m , d, Therefore, the (σf) fit (s) function and the σ fit (s) function are calculated.

(3)在上述(2)只执行过一次的情况下,将上述得到的函数(σf)fit(s)记录为(σf)fit_old(s),并利用公式:(3) When the above (2) has been executed only once, record the function (σf) fit (s) obtained above as (σf) fit_old (s), and use the formula:

其中,pm=zm,m=1~M,重新计算出起始极值pm,并利用该重新计算出来的pm重新执行(2),以得到更新后的(σf)fit(s)函数及σfit(s)函数。 Wherein, p m =z m , m=1~M, recalculate the initial extremum p m , and use the recalculated p m to re-execute (2) to obtain the updated (σf) fit (s ) function and σ fit (s) function.

(4)在上述(2)执行过两次或者两次以上的情况下,判断是否|(σf)fit(s)-(σf)fit_old(s)|<tol,其中,tol为一个用户预设的误差值。在判断结果为否的情况下,返回执行(3),以及在判断结果为是的情况下,将该更新后的σfit(s)函数作为补偿后的有理函数。(4) When the above (2) has been executed twice or more, judge whether |(σf) fit (s)-(σf) fit_old (s)|<tol, where tol is a user preset error value. If the judgment result is No, return to execute (3), and if the judgment result is Yes, use the updated σ fit (s) function as a rational function after compensation.

如前所述,Synopsys公司所开发的Hspice电路模拟软件使用有理函数矩阵标准档案格式。为了与该Hspice电路模拟软件兼容,所述的格式转换模块124用于将上述生成的补偿后的有理函数转换为有理函数矩阵标准档案格式。转换过程如下:As mentioned earlier, the Hspice circuit simulation software developed by Synopsys uses the rational function matrix standard file format. In order to be compatible with the Hspice circuit simulation software, the format conversion module 124 is used to convert the generated compensated rational function into a rational function matrix standard file format. The conversion process is as follows:

首先,将散射参数f(sk)以下述矩阵形式表示:First, the scattering parameter f(s k ) is expressed in the following matrix form:

SS (( sthe s )) == SS 1111 (( sthe s )) SS 1212 (( sthe s )) .. .. .. SS 11 NN (( sthe s )) SS 21twenty one (( sthe s )) SS 22twenty two (( sthe s )) .. .. .. SS 22 NN (( sthe s )) .. .. .. .. .. .. .. .. .. .. .. .. SS NN 11 (( sthe s )) SS NN 22 (( sthe s )) .. .. .. SS NNNN (( sthe s ))

其次,将上述矩阵中的Sij(s),其中,i,j=1~N,分别代入补偿后的有理函数中,可得到如下矩阵:Secondly, substituting S ij (s) in the above matrix, where i, j=1~N, respectively into the rational function after compensation, the following matrix can be obtained:

S ( s ) &ap; S ^ ( s ) = S ^ 11 ( s ) S ^ 12 ( s ) . . . S ^ 1 N ( s ) S ^ 21 ( s ) S ^ 22 ( s ) . . . S ^ 2 N ( s ) . . . . . . . . . . . . S ^ N 1 ( s ) S ^ N 2 ( s ) . . . S ^ NN ( s ) , 其中, S ^ ij ( s ) = S ^ ij ( 0 ) + s ( &Sigma; m = 1 M r m i , j s - p m i , j + d i , j ) , S ( the s ) &ap; S ^ ( the s ) = S ^ 11 ( the s ) S ^ 12 ( the s ) . . . S ^ 1 N ( the s ) S ^ twenty one ( the s ) S ^ twenty two ( the s ) . . . S ^ 2 N ( the s ) . . . . . . . . . . . . S ^ N 1 ( the s ) S ^ N 2 ( the s ) . . . S ^ NN ( the s ) , in, S ^ ij ( the s ) = S ^ ij ( 0 ) + the s ( &Sigma; m = 1 m r m i , j the s - p m i , j + d i , j ) ,

最后,将上述矩阵中的合成如下有理函数矩阵标准格式:Finally, the above matrix in Synthesize the following rational function matrix standard form:

S ^ ij ( s ) = &Sigma; m = 1 M r ~ m i , j s - p m i , j + d ~ i , j + se i , j , 其中, r ~ m i , j = p m i , j r m i , j , d ~ m i , j = S ^ ij ( 0 ) + &Sigma; m = 1 M r m i , j , e m i , j = d m i , j . S ^ ij ( the s ) = &Sigma; m = 1 m r ~ m i , j the s - p m i , j + d ~ i , j + the se i , j , in, r ~ m i , j = p m i , j r m i , j , d ~ m i , j = S ^ ij ( 0 ) + &Sigma; m = 1 m r m i , j , e m i , j = d m i , j .

如图2所示,是本发明电路直流偏移量补偿方法较佳实施例的流程图。As shown in FIG. 2 , it is a flow chart of a preferred embodiment of the circuit DC offset compensation method of the present invention.

步骤S10,资料采集模块121从资料存储单元10内读取Touchstone标准文件格式的多端口电路系统资料文件。Step S10 , the data acquisition module 121 reads the multi-port circuit system data file in the Touchstone standard file format from the data storage unit 10 .

步骤S11,资料采集模块121从上述多端口电路系统资料文件内获取多端口散射参数f(sk)。其中,该f(sk)表示每个频率点的散射参数的值,sk为散射参数的频率。In step S11, the data acquisition module 121 acquires the multi-port scattering parameter f(s k ) from the above-mentioned multi-port circuit system data file. Wherein, the f(s k ) represents the value of the scattering parameter at each frequency point, and s k is the frequency of the scattering parameter.

步骤S12,参数检查模块122检查上述散射参数f(sk)的频域分布中是否包含频率为0的资料,即是否有f(sk)为0的资料。频率为0即为直流。In step S12, the parameter checking module 122 checks whether the frequency domain distribution of the scattering parameter f(s k ) contains data with a frequency of 0, that is, whether there is data with f(s k ) being 0. A frequency of 0 is DC.

当不包含频率为0的资料时,进入步骤S13,参数检查模块122执行插补算法补足频率为0的资料。所述插补算法是根据给定的数学函数,在理想的轨迹式轮廓上的已知点之间,确定一些中间点的一种方法。When the data with a frequency of 0 is not included, go to step S13, and the parameter checking module 122 executes an interpolation algorithm to complement the data with a frequency of 0. The interpolation algorithm is a method of determining some intermediate points between known points on an ideal trajectory profile according to a given mathematical function.

当包含频率为0的资料时,进入步骤S14,偏移量补偿模块123对散射参数f(sk)执行向量拟合的直流补偿,生成补偿后的有理函数,并存储该补偿后的有理函数至资料存储单元10。该步骤的详细流程图参见下述的图4。When data with a frequency of 0 is included, enter step S14, and the offset compensation module 123 performs vector fitting DC compensation on the scattering parameter f(s k ), generates a rational function after compensation, and stores the rational function after compensation to the data storage unit 10. For a detailed flowchart of this step, see Figure 4 below.

步骤S15,格式转换模块124将上述生成的补偿后的有理函数转换为有理函数矩阵标准档案格式。转换过程如下:In step S15, the format conversion module 124 converts the generated compensated rational function into a rational function matrix standard file format. The conversion process is as follows:

首先,将散射参数f(sk)以下述矩阵形式表示:First, the scattering parameter f(s k ) is expressed in the following matrix form:

SS (( sthe s )) == SS 1111 (( sthe s )) SS 1212 (( sthe s )) .. .. .. SS 11 NN (( sthe s )) SS 21twenty one (( sthe s )) SS 22twenty two (( sthe s )) .. .. .. SS 22 NN (( sthe s )) .. .. .. .. .. .. .. .. .. .. .. .. SS NN 11 (( sthe s )) SS NN 22 (( sthe s )) .. .. .. SS NNNN (( sthe s ))

其次,将上述矩阵中的Sij(s),其中,i,j=1~N,分别代入补偿后的有理函数中,可得到如下矩阵:Secondly, substituting S ij (s) in the above matrix, where i, j=1~N, respectively into the rational function after compensation, the following matrix can be obtained:

S ( s ) &ap; S ^ ( s ) = S ^ 11 ( s ) S ^ 12 ( s ) . . . S ^ 1 N ( s ) S ^ 21 ( s ) S ^ 22 ( s ) . . . S ^ 2 N ( s ) . . . . . . . . . . . . S ^ N 1 ( s ) S ^ N 2 ( s ) . . . S ^ NN ( s ) , 其中, S ^ ij ( s ) = S ^ ij ( 0 ) + s ( &Sigma; m = 1 M r m i , j s - p m i , j + d i , j ) , S ( the s ) &ap; S ^ ( the s ) = S ^ 11 ( the s ) S ^ 12 ( the s ) . . . S ^ 1 N ( the s ) S ^ twenty one ( the s ) S ^ twenty two ( the s ) . . . S ^ 2 N ( the s ) . . . . . . . . . . . . S ^ N 1 ( the s ) S ^ N 2 ( the s ) . . . S ^ NN ( the s ) , in, S ^ ij ( the s ) = S ^ ij ( 0 ) + the s ( &Sigma; m = 1 m r m i , j the s - p m i , j + d i , j ) ,

最后,将上述矩阵中的合成如下有理函数矩阵标准格式:Finally, the above matrix in Synthesize the following rational function matrix standard form:

S ^ ij ( s ) = &Sigma; m = 1 M r ~ m i , j s - p m i , j + d ~ i , j + se i , j , 其中, r ~ m i , j = p m i , j r m i , j , d ~ m i , j = S ^ ij ( 0 ) + &Sigma; m = 1 M r m i , j , e m i , j = d m i , j . S ^ ij ( the s ) = &Sigma; m = 1 m r ~ m i , j the s - p m i , j + d ~ i , j + the se i , j , in, r ~ m i , j = p m i , j r m i , j , d ~ m i , j = S ^ ij ( 0 ) + &Sigma; m = 1 m r m i , j , e m i , j = d m i , j .

参阅图4所示,是图3中步骤S14的详细流程图。Referring to FIG. 4 , it is a detailed flowchart of step S14 in FIG. 3 .

步骤S140,偏移量补偿模块123利用公式:Step S140, the offset compensation module 123 uses the formula:

其中u=1~M/2,M为极值的个数,计算出起始极值Pm Where u=1˜M/2, M is the number of extremums, and the initial extremum P m is calculated.

步骤S141,偏移量补偿模块123将(σf)fit(s)函数及σfit(s)函数中未知变量rm,d,组成一个X矩阵,其中:In step S141, the offset compensation module 123 converts the (σf) fit (s) function and the unknown variables r m , d , Form an X matrix, where:

( &sigma;f ) fit ( s ) = f ( 0 ) + s ( &Sigma; m = 1 M r m s - p m + d ) &sigma; fit ( s ) = &Sigma; m = 1 M r ~ m s - p m + 1 ( &sigma; f ) fit ( the s ) = f ( 0 ) + the s ( &Sigma; m = 1 m r m the s - p m + d ) and &sigma; fit ( the s ) = &Sigma; m = 1 m r ~ m the s - p m + 1

并将起始极值Pm及散射参数f(sk)分别代入矩阵A与矩阵B中,形成如下等式:And substitute the initial extremum P m and the scattering parameter f(s k ) into matrix A and matrix B respectively to form the following equation:

再由X=(ATA)-1ATB计算出未知变量rm,d,因此,计算出(σf)fit(s)函数及σfit(s)函数。 Then calculate the unknown variable r m , d, Therefore, the (σf) fit (s) function and the σ fit (s) function are calculated.

步骤S142,偏移量补偿模块123判断上述步骤S141是否只执行过一次。在上述步骤S141只执行过一次的情况下,流程进入步骤S143,偏移量补偿模块123将上述得到的函数(σf)fit(s)记录为(σf)fit_old(S)。In step S142, the offset compensation module 123 determines whether the above step S141 has been performed only once. In the case that the above step S141 is executed only once, the process proceeds to step S143, and the offset compensation module 123 records the obtained function (σf) fit (s) as (σf) fit_old (S).

步骤S144,偏移量补偿模块123利用公式:In step S144, the offset compensation module 123 uses the formula:

其中,pm=zm,m=1~M,重新计算出起始极值pm,并利用该重新计算出来的pm,返回步骤S141,以得到更新后的(σf)fit(s)函数及σfit(s)函数。 Wherein, p m =z m , m=1~M, recalculate the initial extremum p m , and use the recalculated p m to return to step S141 to obtain the updated (σf) fit (s) function and σ fit (s) function.

在上述步骤S141执行过两次或两次以上的情况下,在步骤S145中,偏移量补偿模块123判断是否|(σf)fit(s)-(σf)fit_old(s)|<tol,其中,tol为一个用户预设的误差值。In the case that the above-mentioned step S141 has been executed twice or more than twice, in step S145, the offset compensation module 123 judges whether |(σf) fit (s)-(σf) fit_old (s)|<tol, wherein , tol is a user preset error value.

在判断结果为否的情况下,返回步骤S144,以及在判断结果为是的情况下,进入步骤S145,偏移量补偿模块123将更新后的,即最后生成的σfit(s)函数作为补偿后的有理函数。In the case that the judgment result is no, return to step S144, and in the case of yes, enter step S145, the offset compensation module 123 uses the updated, i.e. the last generated σ fit (s) function as compensation The following rational function.

Claims (8)

1. A circuit dc offset compensation system installed and operating in a computer, the system comprising:
a data acquisition module for reading the multi-port circuit system data file from the data storage unit of the computer and acquiring the multi-port scattering parameter f(s) from the multi-port circuit system data filek);
A parameter checking module for checking the scattering parameter f(s)k) Whether f(s) is included in the frequency domain distribution of (1)k) Data of 0, if f(s) is not includedk) When the data is 0, executing interpolation algorithm to complement f(s)k) Data of 0; and
offset compensation module for compensating scattering parameter f(s)k) Performing vector-fitted DC offset compensation to generate a compensated rational function, comprising:
(1) using the formula:
where u is 1-M/2, M is the number of extreme values, and calculating the initial extreme value Pm
(2) Will (sigma f)fit(s) function and σfitThe unknown variables in the(s) function form an X matrix, where:
and
and will start extreme value PmAnd a scattering parameter f(s)k) Substituting into matrix a and matrix B, respectively, forms the following equation:
then by X ═ ATA)-1ATB calculates the unknown variable, and therefore (σ f)fit(s) function and σfit(s) a function;
(3) in the case where the above-mentioned (2) is executed only once, the function (σ f) to be calculatedfit(s) is reported as (σ f)fit_old(s) and using the formula:
wherein p ism=zmM is 1-M, and the initial extreme value p is recalculatedmAnd using the recalculated pmRe-executing (2) to obtain updated (σ f)fit(s) function and σfit(s) a function; and
(4) in the case where the above-mentioned (2) is performed twice or more, it is judged whether or not | (σ f)fit(s)-(σf)fit_old(s) | < tol, wherein tol is an error value preset by a user, returning to execute (3) in the case that the judgment result is no, and updating the sigma after updating in the case that the judgment result is yesfitThe(s) function is used as a rational function after compensation.
2. The circuit dc offset compensation system of claim 1, further comprising:
and the format conversion module is used for converting the generated compensated rational function into a rational function matrix standard file format.
3. The circuit dc offset compensation system of claim 1, wherein said multi-port circuitry data file is stored in a data storage unit in a touchtone standard file format.
4. The circuit dc offset compensation system of claim 2, wherein said converting the generated compensated rational function into a rational function matrix standard archive format comprises:
(1) the scattering parameter f(s)k) Expressed in the form of a matrix:
(2) s in the matrix isij(s), where i, j is 1 to N, and the compensated rational functions are substituted into the matrix, the following matrix is obtained:
wherein,and
(3) in the above matrixSynthesizing the following rational function matrix standard format:
wherein,
5. a method for compensating a DC offset of a circuit, the method comprising the steps of:
reading a multiport circuitry data file from a data storage unit of a computer and obtaining a multiport scattering parameter f(s) from the multiport circuitry data filek);
Examining the scattering parameter f(s)k) Whether f(s) is included in the frequency domain distribution of (1)k) Data of 0, if f(s) is not includedk) When the data is 0, executing interpolation algorithm to complement f(s)k) Data of 0; and
for the scattering parameter f(s)k) Performing vector-fitted DC offset compensation to generate a compensated rational function, comprising the steps of:
(1) using the formula:
where u is 1-M/2, M is the number of extreme values, and calculating the initial extreme value Pm
(2) Will (sigma f)fit(s) function and σfitThe unknown variables in the(s) function form an X matrix, where:
and
and will start extreme value PmAnd a scattering parameter f(s)k) Substituting into matrix a and matrix B, respectively, forms the following equation:
then by X ═ ATA)-1ATB calculates the unknown variable, and therefore (σ f)fit(s) function and σfit(s) a function;
(3) in the case where the above-mentioned (2) is executed only once, the function (σ f) to be calculatedfit(s) is reported as (σ f)fit_old(s) and using the formula:
wherein p ism=zmM is 1-M, and the initial extreme value p is recalculatedmAnd using the recalculated pmRe-executing (2) to obtain updated (σ f)fit(s) function and σfit(s) a function; and
(4) in the case where the above-mentioned (2) is performed twice or more, it is judged whether or not | (σ f)fit(s)-(σf)fit_old(s) | < tol, wherein tol is preset by a userIn the case that the judgment result is no, the procedure returns to the step (3), and in the case that the judgment result is yes, the updated sigma is usedfitThe(s) function is used as a rational function after compensation.
6. The method of circuit dc offset compensation of claim 5, further comprising:
and converting the generated compensated rational function into a rational function matrix standard file format.
7. The method as claimed in claim 5, wherein the multiport circuitry data file is stored in a data storage unit in a Touchstone standard file format.
8. The method of claim 6, wherein said step of converting the compensated rational function into a rational function matrix standard file format comprises the steps of:
(1) the scattering parameter f(s)k) Expressed in the form of a matrix:
(2) s in the matrix isij(s), where i, j is 1 to N, and the compensated rational functions are substituted into the matrix, the following matrix is obtained:
wherein,and
(3) in the above matrixSynthesizing the following rational function matrix standard format:
wherein,
CN201010233909.3A 2010-07-22 2010-07-22 System and method for compensating circuit direct-current (DC) offset Expired - Fee Related CN102339245B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010233909.3A CN102339245B (en) 2010-07-22 2010-07-22 System and method for compensating circuit direct-current (DC) offset

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010233909.3A CN102339245B (en) 2010-07-22 2010-07-22 System and method for compensating circuit direct-current (DC) offset

Publications (2)

Publication Number Publication Date
CN102339245A CN102339245A (en) 2012-02-01
CN102339245B true CN102339245B (en) 2014-08-20

Family

ID=45514987

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010233909.3A Expired - Fee Related CN102339245B (en) 2010-07-22 2010-07-22 System and method for compensating circuit direct-current (DC) offset

Country Status (1)

Country Link
CN (1) CN102339245B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109308391B (en) * 2018-09-20 2022-02-18 郑州云海信息技术有限公司 Signal compensation method and system for common mode and differential mode conversion
CN110149053B (en) * 2019-05-22 2021-03-02 湖南大学 Three-port isolation DC/DC type converter transient state direct current bias suppression method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2919732Y (en) * 2006-07-14 2007-07-04 虹光精密工业(苏州)有限公司 Signal compensating circuit for processing DC offset in simulating mode
CN101083472A (en) * 2006-05-30 2007-12-05 富士通株式会社 System and method for adjusting compensation applied to a signal
CN101119357A (en) * 2006-09-07 2008-02-06 威盛电子股份有限公司 Transmitter and transmitter error compensation method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7660685B2 (en) * 2006-08-02 2010-02-09 Lecroy Corporation Virtual probing

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101083472A (en) * 2006-05-30 2007-12-05 富士通株式会社 System and method for adjusting compensation applied to a signal
CN2919732Y (en) * 2006-07-14 2007-07-04 虹光精密工业(苏州)有限公司 Signal compensating circuit for processing DC offset in simulating mode
CN101119357A (en) * 2006-09-07 2008-02-06 威盛电子股份有限公司 Transmitter and transmitter error compensation method

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
参数曲线的自适应插补算法;游有鹏;《南京航空航天大学学报》;20001231;667-671 *
模型参考自适应原理在冲击信号零点偏移补偿中的应用;陈轩;《南昌航空工业学院学报》;19961120;1-4 *
游有鹏.参数曲线的自适应插补算法.《南京航空航天大学学报》.2000,667-671.
陈轩.模型参考自适应原理在冲击信号零点偏移补偿中的应用.《南昌航空工业学院学报》.1996,1-4.

Also Published As

Publication number Publication date
CN102339245A (en) 2012-02-01

Similar Documents

Publication Publication Date Title
Hagenblad et al. Maximum likelihood identification of Wiener models
CN102214253B (en) Method and apparatus for operational-level functional and degradation fault analysis
US20140314181A1 (en) Non-Linear Modeling of a Physical System Using Look-Up Table with Polynomial Interpolation
Haag et al. Model validation and selection based on inverse fuzzy arithmetic
Feil et al. Comparison of Monte Carlo and quasi Monte Carlo sampling methods in high dimensional model representation
Demattè et al. ADER methods for hyperbolic equations with a time-reconstruction solver for the generalized Riemann problem: the scalar case
Zhang et al. Goodness-of-fit test of copula functions for semi-parametric univariate time series models
CN102339245B (en) System and method for compensating circuit direct-current (DC) offset
Staniforth et al. Analysis of the numerics of physics–dynamics coupling
CN104008246A (en) Vector fitting and balanced truncation method based electromagnetic compatible macro model modeling method
US8881075B2 (en) Method for measuring assertion density in a system of verifying integrated circuit design
US20250037381A1 (en) Body model processing methods and apparatuses, electronic devices and storage media
US20120029887A1 (en) Computing device and method for analyzing scattering parameters passivity
US20120143582A1 (en) Characterization of nonlinear cell macro model for timing analysis
CN119378307B (en) A method, system and readable storage medium for predicting component fatigue life
CN102737145B (en) Measurement-based modeling method by prediction on electromagnetic emission broadband behavioral level of electronic component
CN107203495B (en) S parameter circular interpolation method
CN114900192A (en) Radar system, complex data compression method, apparatus, device, and medium
CN105608237B (en) Rapid waveform prediction method for post-simulation stage of circuit layout
CN102279896B (en) Hspice compatible equivalent circuit simulation system and method
US20220215138A1 (en) Method for Validating System Parameters of an Energy System, Method for Operating an Energy System, and Energy Management System for an Energy System
CN103488842B (en) A kind of reliability automatic method for predicting of typical discrete device based on Saber
JP5146087B2 (en) Power consumption estimation method, circuit design support apparatus and program
CN113465734A (en) Real-time estimation method for structural vibration
CN116609819B (en) A method for estimating X-ray energy spectrum with scatter correction

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20140820

Termination date: 20150722

EXPY Termination of patent right or utility model