CN1691020A - Method for fast generation of pseudo-random code as driving source for simulation - Google Patents
Method for fast generation of pseudo-random code as driving source for simulation Download PDFInfo
- Publication number
- CN1691020A CN1691020A CN 200410036799 CN200410036799A CN1691020A CN 1691020 A CN1691020 A CN 1691020A CN 200410036799 CN200410036799 CN 200410036799 CN 200410036799 A CN200410036799 A CN 200410036799A CN 1691020 A CN1691020 A CN 1691020A
- Authority
- CN
- China
- Prior art keywords
- pseudo
- random code
- tbit
- random
- simulation
- 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.)
- Pending
Links
Images
Landscapes
- Tests Of Electronic Circuits (AREA)
Abstract
本发明公开了一种快速产生伪随机码激励源进行仿真的方法,该方法为:确定伪随机序列的固定重复周期序列和伪随机码激励源的模型参数;利用所述模型参数描述所述伪随机序列中的每一位伪随机码激励源的波形,产生描述文件;当执行仿真时,由仿真程序直接调用所述描述文件,并用实际的模型参数值代替该描述文件中相应的模型参数产生伪随机码激励源信号;以及利用产生的伪随机码激励源信号激励系统进行仿真。
The invention discloses a method for quickly generating a pseudo-random code excitation source for simulation. The method comprises: determining the fixed repetition period sequence of the pseudo-random sequence and the model parameters of the pseudo-random code excitation source; using the model parameters to describe the pseudo-random code excitation source; The waveform of each pseudo-random code excitation source in the random sequence generates a description file; when the simulation is performed, the description file is directly called by the simulation program, and the actual model parameter values are used to replace the corresponding model parameters in the description file. The pseudo-random code excites the source signal; and the excitation system is simulated by using the generated pseudo-random code to excite the source signal.
Description
技术领域technical field
本发明涉及电子和通信领域的仿真技术,尤其涉及一种快速产生伪随机码激励源进行仿真的方法。The invention relates to simulation technology in the field of electronics and communication, in particular to a method for quickly generating pseudo-random code excitation sources for simulation.
背景技术Background technique
在通讯产品中,随着系统的工作频率越来越高和系统越来越复杂,通过板级仿真和系统级仿真来进行信号完整性分析的需求越来越迫切,一块印制电路板不经过板级仿真分析就拿去投板,然后再在调试中去发现问题的设计方法已无法适应市场发展的要求。In communication products, as the operating frequency of the system becomes higher and the system becomes more and more complex, the demand for signal integrity analysis through board-level simulation and system-level simulation is becoming more and more urgent. A printed circuit board does not go through The design method of using board-level simulation analysis to cast boards and then finding problems during debugging can no longer meet the requirements of market development.
为了仿真系统开放业务时的系统信号质量,一般会用一个激励源信号激励系统进行不带业务的误码仿真,该激励源信号就是伪随机码激励源。伪随机码激励源有以下特点:In order to simulate the system signal quality when the system is open to business, an excitation source signal is generally used to stimulate the system to perform bit error simulation without services. The excitation source signal is the pseudo-random code excitation source. The pseudo-random code excitation source has the following characteristics:
(1)伪随机序列是由移位寄存器产生的确定序列,以一定的周期稳定的重复。(1) The pseudo-random sequence is a definite sequence generated by the shift register, which repeats stably with a certain period.
(2)伪随机序列具有真随机序列的部分随机特性。(2) Pseudo-random sequences have some random characteristics of true random sequences.
(3)序列中两种元素“0”和“1”的个数几乎相等(只差1个),各在序列中约占1/2。(3) The numbers of the two elements "0" and "1" in the sequence are almost equal (the difference is only 1), each accounting for about 1/2 in the sequence.
在建立伪随机码激励源仿真模型的方案中,现有的实现方案都采用了移位寄存器的方法建立伪随机码激励源仿真模型。其方法如下:In the scheme of establishing the simulation model of the pseudo-random code excitation source, the existing implementation schemes all adopt the shift register method to establish the simulation model of the pseudo-random code excitation source. The method is as follows:
方法一、采用HSPICE(一种集成电路高速仿真软件)实现移位寄存器,同时用非HSPICE软件处理,来建立伪随机码激励源仿真模型的方案。其实现过程如图1所示:Method 1. Using HSPICE (a high-speed simulation software for integrated circuits) to realize the shift register, and processing it with non-HSPICE software to establish a pseudo-random code excitation source simulation model. Its implementation process is shown in Figure 1:
由HSPICE搭建移位寄存器仿真电路;运行HSPICE仿真输出移位序列;用非HSPICE软件对移位序列进行处理;运行产生被HSPICE接受的仿真模型;HSPICE调用模型进行仿真。Build the shift register simulation circuit by HSPICE; run the HSPICE simulation output shift sequence; use non-HSPICE software to process the shift sequence; run to generate the simulation model accepted by HSPICE; HSPICE calls the model for simulation.
这种方法存在以下缺点:This method has the following disadvantages:
1、由于需要多步处理和多种软件综合才能产生伪随机码激励源仿真模型,因而其速度较慢。1. The simulation model of the pseudo-random code excitation source is generated because it needs multi-step processing and multiple software synthesis, so its speed is relatively slow.
2、不能直接在HSPICE中产生伪随机码激励源仿真模型,而必须借助非HSPICE软件对HSPICE移位寄存器产生的结果进行处理后方可使用,因而成本较高。2. The pseudo-random code excitation source simulation model cannot be generated directly in HSPICE, but the result generated by the HSPICE shift register must be processed by non-HSPICE software before it can be used, so the cost is relatively high.
3、产生和调用仿真模型不能同时进行。3. Generating and calling the simulation model cannot be performed at the same time.
方法二、采用非HSPICE软件实现移位寄存器,同时处理产生HSPICE伪随机码激励源仿真模型。其实现过程如图2所示:Method 2: Use non-HSPICE software to realize the shift register, and simultaneously process and generate the simulation model of the HSPICE pseudo-random code excitation source. Its implementation process is shown in Figure 2:
由非HSPICE软件实现移位寄存器;运行非HSPICE软件输出移位序列;产生被HSPICE识别的伪随机码激励源模型;HSPICE调用伪随机码激励源模型进行仿真组成。The shift register is implemented by non-HSPICE software; the non-HSPICE software is run to output the shift sequence; the pseudo-random code excitation source model recognized by HSPICE is generated; HSPICE calls the pseudo-random code excitation source model for simulation.
该种方法存在以下缺点:This method has the following disadvantages:
1、必须运行非HSPICE软件才能产生伪随机码激励源模型,因而速度慢。1. It is necessary to run non-HSPICE software to generate the pseudo-random code excitation source model, so the speed is slow.
2、产生和调用仿真模型不能同时进行。2. Generating and calling the simulation model cannot be performed at the same time.
3、需用非HSPICE软件处理完成,导致成本高。3. It needs to be processed by non-HSPICE software, resulting in high cost.
发明内容Contents of the invention
本发明提供一种快速产生伪随机码激励源进行仿真的方法,以解决现有的仿真过程中因需要使用多种软件而存在速度慢和成本高的问题。The invention provides a method for quickly generating a pseudo-random code excitation source for simulation to solve the problems of slow speed and high cost in the existing simulation process due to the need to use various software.
为解决上述问题,本发明提供下述技术方案:In order to solve the above problems, the present invention provides the following technical solutions:
一种快速产生伪随机码激励源进行仿真的方法,该方法为:A method for quickly generating a pseudo-random code excitation source for simulation, the method is:
确定伪随机序列的固定重复周期序列和伪随机码激励源的模型参数;Determine the model parameters of the fixed repetition period sequence of the pseudo-random sequence and the excitation source of the pseudo-random code;
利用所述模型参数描述所述伪随机序列中的每一位伪随机码激励源的波形,产生描述文件;Using the model parameters to describe the waveform of each pseudo-random code excitation source in the pseudo-random sequence to generate a description file;
由仿真程序直接调用所述描述文件,并用实际的模型参数值代替该描述文件中相应的模型参数产生伪随机码激励源信号;以及The description file is directly invoked by the simulation program, and the corresponding model parameters in the description file are replaced with actual model parameter values to generate a pseudo-random code excitation source signal; and
利用产生的伪随机码激励源信号激励系统进行仿真。The simulation is carried out by using the generated pseudo-random code to stimulate the source signal to stimulate the system.
其中:in:
所述伪随机码激励源的模型参数包括:伪随机序列的每比特位持续时间bit、上升沿时间tr、下降沿时间tf、低电平电压vl和高电平电压vh。The model parameters of the pseudo-random code excitation source include: per-bit duration bit of the pseudo-random sequence, rising edge time tr, falling edge time tf, low-level voltage vl and high-level voltage vh.
根据时间和电压的二维坐标关系,以及每一位伪随机码激励源在伪随机序列中的位置,利用模型参数表示的时间坐标点和电压坐标点相连的分段线段来描述伪随机码激励源的波形。According to the two-dimensional coordinate relationship between time and voltage, and the position of each pseudo-random code excitation source in the pseudo-random sequence, the pseudo-random code excitation is described by the segmented line segment connecting the time coordinate point and the voltage coordinate point represented by the model parameters source waveform.
本发明具有以下有益效果:The present invention has the following beneficial effects:
1、只要设置相应模型参数,即可迅速产生并调用伪随机仿真激励源仿真模型进行仿真,因而速度快。1. As long as the corresponding model parameters are set, the simulation model of the pseudo-random simulation excitation source can be quickly generated and called for simulation, so the speed is fast.
2、本发明直接在HSPICE中产生并调用伪随机码激励源模型,无需其它软件工具,因此成本较低。2. The present invention directly generates and invokes the pseudo-random code excitation source model in HSPICE without requiring other software tools, so the cost is relatively low.
附图说明Description of drawings
图1为现有技术一的仿真流程图;Fig. 1 is the simulation flowchart of prior art 1;
图2为现有技术二的仿真流程图;Fig. 2 is the simulation flowchart of prior art 2;
图3为本发明的仿真流程图;Fig. 3 is the simulation flowchart of the present invention;
图4为本发明的伪随机码激励源模型相关参数示意图。Fig. 4 is a schematic diagram of related parameters of the pseudo-random code excitation source model of the present invention.
具体实施方式Detailed ways
本发明采用伪随机码一定周期稳定重复的特性和集成电路高速仿真软件HSPICE直接带参数化的特点来实现。The invention adopts the characteristics of stable repetition of pseudo-random codes in a certain period and the characteristics of direct parameterization of integrated circuit high-speed simulation software HSPICE.
参阅图3所示,本发明的主要处理过程如下:Referring to shown in Figure 3, the main process of the present invention is as follows:
1、确定伪随机序列的固定重复周期序列。1. Determine the fixed repetition period sequence of the pseudo-random sequence.
由于伪随机序列是具有周期性稳定重复,可以确定序列中两种元素“0”(即低电平)和“1”(即高电平)的排列顺序。具体的第n位是“0”(即低电平电压)或“1”(即高电平电压)都是固定的。如对于具体的(1+x3+x7)PRBS伪随机码来说,其周期固定重复序列为:1011001010110101111101111000011000100010100110011110101010001111111001000000101100000111010000100111000110100100101110110111001。具体的第n位是“0”(即低电平电压)或“1”都是固定的。Since the pseudo-random sequence has periodic and stable repetition, the sequence of the two elements "0" (ie low level) and "1" (ie high level) in the sequence can be determined. Whether the nth bit is "0" (that is, a low-level voltage) or "1" (that is, a high-level voltage) is fixed.如对于具体的(1+x3+x7)PRBS伪随机码来说,其周期固定重复序列为:1011001010110101111101111000011000100010100110011110101010001111111001000000101100000111010000100111000110100100101110110111001。 Whether the specific nth bit is "0" (that is, a low-level voltage) or "1" is fixed.
2、设定伪随机码激励源模型参数。2. Set the model parameters of the pseudo-random code excitation source.
利用HSPICE电路可以参数化的特点,根据伪随机序列激励源模型的需求,提出伪随机码激励源仿真模型的相关参数。各相关参数如图4所示,这些参数包括:Utilizing the characteristic that HSPICE circuit can be parameterized, according to the demand of pseudo-random sequence excitation source model, the relevant parameters of pseudo-random code excitation source simulation model are proposed. The relevant parameters are shown in Figure 4, and these parameters include:
(1)伪随机序列的每比特位时间tbit;(1) Each bit time tbit of the pseudo-random sequence;
(2)上升沿时间tr,即从“0”(低电平)到“1”(高电平)的转换时间;(2) The rising edge time tr, that is, the conversion time from "0" (low level) to "1" (high level);
(3)下降沿时间tf,即从“1”(高电平)到“0”(低电平)的转换时间;(3) Falling edge time tf, that is, the conversion time from "1" (high level) to "0" (low level);
(4)“0”(低电平)电压vl;(4) "0" (low level) voltage vl;
(5)“1”(高电平)电压vh。(5) "1" (high level) voltage vh.
设定了上述参数后,伪随机码激励源仿真模型的接口模型可以定义为:After setting the above parameters, the interface model of the pseudo-random code excitation source simulation model can be defined as:
.subckt prbs Dataout tbit=1000ps tr=100ps tf=100ps vh=1v vl=0v.subckt prbs Dataout tbit=1000ps tr=100ps tf=100ps vh=1v vl=0v
其中的参数tbit=1000ps tr=100ps tf=100ps vh=1v vl=0v为默认值,可根据实际值需要进行相应的修改。The parameters tbit=1000ps tr=100ps tf=100ps vh=1v vl=0v are the default values, which can be modified according to the actual value.
3、利用所述模型参数描述所述伪随机序列中的每一位伪随机码激励源的波形,产生伪随机码激励源仿真模型的描述文件。3. Using the model parameters to describe the waveform of each bit of the pseudo-random code excitation source in the pseudo-random sequence, and generate a description file of the simulation model of the pseudo-random code excitation source.
参阅图4所示,对于伪随机序列中的任意一位的激励源波形可以由(时间、电压)坐标点相连的分段曲线组成。根据两个相连比特位不同情况分别进行处理:Referring to FIG. 4 , the excitation source waveform for any bit in the pseudo-random sequence can be composed of segmented curves connected with (time, voltage) coordinate points. According to the different situations of two connected bits, it is processed separately:
(1)如果从第(n-1)位的“0”(低电平)转换到第n位的“1”高电平时,激励源可以用时间与电压坐标点[(n-1)*tbit,vl]、[(n-1)*tbit+tr,vh]、[n*tbit,vh]相连来表示。(1) If the "0" (low level) of the (n-1)th bit is switched to the "1" high level of the nth bit, the excitation source can use the time and voltage coordinate point [(n-1)* tbit, vl], [(n-1)*tbit+tr, vh], [n*tbit, vh] are connected to represent.
(2)如果从第(n-1)位的“1”(高电平)转换到第n位的“0”(低电平)时,激励源可以用时间与电压坐标点[(n-1)*tbit,vh]、[(n-1)*tbit+tf,vl]、[n*tbit,vl]相连来表示。(2) If the "1" (high level) of the (n-1)th bit is switched to the "0" (low level) of the nth bit, the excitation source can use the time and voltage coordinate point [(n- 1) *tbit, vh], [(n-1)*tbit+tf, vl], [n*tbit, vl] are connected to represent.
(3)如果第(n-1)位和第n位都是“0”(低电平)时,激励源可以用时间与电压坐标点[(n-1)*tbit,vl]、[n*tbit,vl]相连来表示。(3) If the (n-1)th bit and the nth bit are both "0" (low level), the excitation source can use time and voltage coordinate points [(n-1)*tbit, vl], [n *tbit, vl] connected to represent.
(4)如果第(n-1)位和第n位都是“1”高电平时,激励源可以用时间与电压坐标点[(n-1)*tbit,vh]、[n*tbit,vh]相连来表示。(4) If the (n-1)th bit and the nth bit are both "1" high level, the excitation source can use the time and voltage coordinate points [(n-1)*tbit, vh], [n*tbit, vh] connected to represent.
对于伪随机序列中的固定重复序列都通过以上(1)到(4)的方法来表示。The fixed repeating sequences in the pseudo-random sequences are represented by the methods (1) to (4) above.
对于伪随机序列的周期性重复可在HSPICE使用脉冲函数带R参数完成。The periodic repetition of the pseudo-random sequence can be done in HSPICE using the pulse function with the R parameter.
由此,带有参数的整个伪随机序列激励源仿真模型电路就实现了。Thus, the whole pseudo-random sequence excitation source simulation model circuit with parameters is realized.
4、HSPICE直接调用描述文件,并用实际的模型参数值代替该描述文件中相应的模型参数产生伪随机码激励源信号进行仿真。4. HSPICE directly invokes the description file, and replaces the corresponding model parameters in the description file with actual model parameter values to generate a pseudo-random code excitation source signal for simulation.
如果要仿真每位比特时间tbit是10000ps、波形上升沿时间tr是150ps、下降沿时间是200ps、高电平电压vh是3V、低电平电压是1V的具体伪随码激励源仿真模型,只需要直接在HSPICE中使用X_prbs Dataout prbs tbit=10000pstr=150ps tf=200ps vh=3V vl=0V,HSPICE调用描述文件并用实际值代替参数,并根据伪随机码激励源仿真模型产生相应的伪随机码激励源信号,通过该信号激励系统进行仿真。If you want to simulate the simulation model of a specific pseudo-code excitation source with a bit time tbit of 10000ps, waveform rising edge time tr of 150ps, falling edge time of 200ps, high-level voltage vh of 3V, and low-level voltage of 1V, only Need to use X_prbs Dataout prbs tbit=10000pstr=150ps tf=200ps vh=3V vl=0V directly in HSPICE, HSPICE calls the description file and replaces the parameters with the actual value, and generates the corresponding pseudo-random code excitation according to the simulation model of the pseudo-random code excitation source The source signal by which the system is stimulated for simulation.
在实际的激励源模型模型应用中,只要做一次第1-3的步骤,就可以适应在不同tbit、tr、tf、vh和vl参数下的各种实际应用。也就是说,不用再重新做第1-3的步骤,HSPICE可以直接产生并调用在不同的tbit、tr、tf、vh和vl参数下的伪随机码激励源仿真模型。In the actual application of the excitation source model, as long as the steps 1-3 are done once, it can be adapted to various practical applications under different tbit, tr, tf, vh and vl parameters. That is to say, without repeating steps 1-3, HSPICE can directly generate and call pseudo-random code excitation source simulation models under different tbit, tr, tf, vh and vl parameters.
Claims (5)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN 200410036799 CN1691020A (en) | 2004-04-30 | 2004-04-30 | Method for fast generation of pseudo-random code as driving source for simulation |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN 200410036799 CN1691020A (en) | 2004-04-30 | 2004-04-30 | Method for fast generation of pseudo-random code as driving source for simulation |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN1691020A true CN1691020A (en) | 2005-11-02 |
Family
ID=35346459
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN 200410036799 Pending CN1691020A (en) | 2004-04-30 | 2004-04-30 | Method for fast generation of pseudo-random code as driving source for simulation |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN1691020A (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101087148B (en) * | 2006-06-07 | 2011-01-05 | 鸿富锦精密工业(深圳)有限公司 | High-speed differential signal analog analysis system and method |
| CN107292066A (en) * | 2017-08-14 | 2017-10-24 | 郑州云海信息技术有限公司 | A kind of encryption mixed model SI emulation modes based on ADS and HSPICE |
| CN107506540A (en) * | 2017-08-10 | 2017-12-22 | 郑州云海信息技术有限公司 | A kind of mixed model signal integrity simulation method |
| CN107609219A (en) * | 2017-08-10 | 2018-01-19 | 郑州云海信息技术有限公司 | A kind of mixed model signal integrity simulation method |
-
2004
- 2004-04-30 CN CN 200410036799 patent/CN1691020A/en active Pending
Cited By (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101087148B (en) * | 2006-06-07 | 2011-01-05 | 鸿富锦精密工业(深圳)有限公司 | High-speed differential signal analog analysis system and method |
| CN107506540A (en) * | 2017-08-10 | 2017-12-22 | 郑州云海信息技术有限公司 | A kind of mixed model signal integrity simulation method |
| CN107609219A (en) * | 2017-08-10 | 2018-01-19 | 郑州云海信息技术有限公司 | A kind of mixed model signal integrity simulation method |
| WO2019029105A1 (en) * | 2017-08-10 | 2019-02-14 | 郑州云海信息技术有限公司 | Mixed-model signal integrity simulation method |
| CN107609219B (en) * | 2017-08-10 | 2020-03-06 | 郑州云海信息技术有限公司 | A Mixed Model Signal Integrity Simulation Method |
| US11074384B1 (en) | 2017-08-10 | 2021-07-27 | Zhengzhou Yunhai Information Technology Co., Ltd. | Method for simulating signal integrity of hybrid model |
| CN107292066A (en) * | 2017-08-14 | 2017-10-24 | 郑州云海信息技术有限公司 | A kind of encryption mixed model SI emulation modes based on ADS and HSPICE |
| WO2019033613A1 (en) * | 2017-08-14 | 2019-02-21 | 郑州云海信息技术有限公司 | Encryption hybrid model si simulation method based on ads and hspice |
| US11475196B2 (en) | 2017-08-14 | 2022-10-18 | Zhengzhou Yunhai Information Technology Co., Ltd. | Encryption hybrid model SI simulation method based on ADS and HSPICE |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN1862508A (en) | Automatic testing system of person digital aid cell phone function and method thereof | |
| CN1691020A (en) | Method for fast generation of pseudo-random code as driving source for simulation | |
| CN1564489A (en) | Testing method for limitting status machine of communication system | |
| CN1223246C (en) | Method for designing printed circuit board and its equipment | |
| CN1360397A (en) | Formation of pulse signal from clock signal | |
| CN1482661A (en) | General digital circuit simulation test system and test method | |
| CN1283060C (en) | Data receiving method based on clock signal and apparatus thereof | |
| CN1207680C (en) | Circuit simulation device and circuit simulation method | |
| CN1908690A (en) | Border scanning system and method | |
| CN1656447A (en) | Software development tool for ensuring links between UML models and the implementation thereof in a CORBA environment | |
| CN1858717A (en) | Data coding and decoding method and its coding and decoding device | |
| CN1549109A (en) | Printing method capable of simultaneously performing scaling, merging and outputting of contents | |
| CN1622464A (en) | Method for outputting Gray code count and counter thereof | |
| CN101030441A (en) | Method and apparatus for reading and sampling data of DDR and DDR2 memory controller | |
| CN1755375A (en) | Signal generation apparatus and method | |
| CN1275386C (en) | Pulse duty cycle automatic correction device and method | |
| CN1848092A (en) | Testing device and method | |
| CN1313900C (en) | Synchronous logic circuit interface and synchronization method thereof | |
| CN1641595A (en) | Adaptive wave filter logic verifying system and method | |
| US20090112549A1 (en) | Techniques for generating and simulating a simulatable vector having amplitude noise and/or timing jitter added thereto | |
| CN1845514A (en) | Software module testing method | |
| CN1552034A (en) | Systems and methods for implementing composite electronic circuits | |
| CN1506803A (en) | Methods and random number generators for generating random numbers | |
| CN1839370A (en) | A hardware generator for uniform and gaussian deviates employing analog and digital correction circuits | |
| CN106199472B (en) | A kind of magnetic resonance imaging pulse sequence delay correction method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C12 | Rejection of a patent application after its publication | ||
| RJ01 | Rejection of invention patent application after publication |