The present invention relates to a system and method for simulation, particularly to a system and method for generating various simulation conditions for simulation analysis.
When using Hspice for simulation analysis of an integrity of signal, it is necessary to describe signal simulation conditions properly on top of the components and interconnections parameters. A simulation conditions device makes use of a buffer for a fan-out of a signal, which includes a series of 0s and 1s voltage expressions and a corresponding sequence of corresponding time parameters.
Usually, the way of simulation conditions generating device is by inputting the series of 0s and 1s voltage expressions and the corresponding sequence of corresponding time parameters one by one by a user. However, the process of manual input is slow, and it is easy to make mistake when calculating and inputting, moreover, it is not easy to add applications thereinto as length of signals may be too long.
Therefore, what is needed is a system and method for generating various signal simulation conditions for simulation analysis, to automate the manual input method and generate a series of “0s” and “1s” voltage expressions and sequence of corresponding time parameters, thereby outputting the necessary signal simulation conditions more efficiently.
A system for generating various simulation conditions for simulation analysis includes: a parameter inputting device for inputting signal source parameters and control parameters; a signal generating module for generating an N-bit binary sequence consisting of “1” and “0” according to the signal source parameters; and a application module for applying the N-bit binary sequence to generate various simulation conditions according to the control parameters.
A method for generating various simulation conditions for simulation analysis includes the steps of: generating an N-bit binary sequence consisting of “1” and “0” according to signal source parameters; and applying the N-bit binary sequence to generate the various simulation conditions according to control parameters.
Other advantages and novel features of the embodiments will be drawn from the following detailed description with reference to the attached drawings.
The signal generating module 301 is used for generating an N-bit binary sequence consisting of “1s” and “0s” according to the signal source parameters. The N-bit binary sequence may be a stochastic binary sequence (SBS), a repeated binary sequence (RBS), or a pseudo random binary sequence (PRBS). The SBS consists of “1s” and “0s” randomly. The RBS consists of a repeating “1s” and “0s” combination, for example, “110,110,110,110,110” and “001,001,001,001,001”. The PRBS consists of “1s” and “0s” according to a rule that any two adjacent “0s” and “1s” is unrelated, for example, “100,110,101,010,011,001,100” and “110,101,010,011,001,100,110”.
The application module 302 has a plurality of sub-modules (described below in detail in relation to
The noise generating module 303 is used for generating N influence values of Gauss noises with N standard deviations to N signal bit-widths. The noise generating module 303 sets a standard deviation σ of Gauss distribution, and generates a stochastic numerical value (−7σ<X<7σ) of a greatest value that is 7 times N standard deviations. Afterwards, the noise generating module 303 converts the stochastic numerical value to a corresponding time value, and generates the N influence values. A signal bit-width is a value of time needed to process of a single bit “0” or a single bit “1”. A Gauss noise is a change of the signal bit-width that is influenced by ambient, electromagnetic interference, temperature interference, and so on. The influence value is also a value of time. According to above mentioned described, if an advance signal bit-width is 10 seconds and an influence value of a gauss noise is minus 1 seconds, the signal bit-width influenced by the gauss noise is 9 seconds.
The addition module 304 is used for adding the Gauss noises to digital waveforms corresponding positions of the generated simulation conditions, and then generated various simulation conditions. A digital waveform shows a relation of a sequence consisting of a single “0” and “1” and a width of time of the single bit. The single bit is the single “0” or “1” in the N-bit binary sequence, thus the width of time of the single bit is a continual time of the single “0” or “1” that is in a logic state.
The 8b/10b encoding sub-module 3021 is used for encoding an 8-bit binary sequence into a 10 bit binary sequence in the N-bit binary sequence according to the control parameters. The 8 bit binary sequence is a segment of the N-bit binary sequence, therefore the N-bit binary sequence becomes a 1.25N-bit binary sequence after encoding. The application module 302 captures the N-bit sequence in the front of the 1.25N-bit binary sequence for application. The captured N-bit sequence consists of a series of “1” and “0” according to a rule that a bit cannot repeated itself more than five times. I.e., a bit “0” or “1” cannot appear consecutively more than five times in a row.
The DS&DES generating sub-module 3022 is used for generating a differential sequence according to the N-bit binary sequence and for generating a de-emphasis sequence according to the differential sequence. The DS&DES generating sub-module 3022 generates the differential sequence by reversing the “0” and “1” bits in the N-bit binary sequence to generate an antilogarithm N-bit binary sequence, the antilogarithm N-bit binary sequence is then further combined with the N-bit binary sequence. The de-emphasis sequence is generated by rearranging a last two bits of the differential sequence to the front. For example, if the N-bit binary sequence is “10101001,” the antilogarithm N-bit binary sequence would be “010100110,” therefore, the differential sequence is “10101001,010100110” a combination of the N-bit binary sequence with the antilogarithm N-bit binary sequence. Accordingly, the de-emphasis sequence is “10101011001,0101001” after rearranging the last two bits of the differential sequence to the front.
The SSC & SBW modulating sub-module 3023 is used for generating a digital waveforms according to the N-bit binary sequence, and generating simulation conditions with the spread spectrum clock and signal bit-width according to the digital waveforms. Since the digital waveform shows the relation of the sequence consisting of single the “0” and “1” and the width of time of the single bit, the SSC & SBW modulating sub-module 3023 generates the simulation conditions with the SSC & SBW by modulating the relation gradually and periodically, and generates a SSC preview graphic by fast Fourier transform (FFT).
In step S53, the user determines whether there is a need to generate a differential signal and a de-emphasis signal. If the user does not need to generate a differential signal and a de-emphasis signal, the procedure goes directly to step S55. Otherwise, if the user needs to generate the differential signal and the de-emphasis signal, in step S54, the DS&DES generating sub-module 3022 generates a differential sequence according to the N-bit binary sequence, and generates a de-emphasis sequence according to the differential sequence. Herein, the DS&DES generating sub-module generates the differential sequence by reversing the “0” and “1” bits in the N-bit binary sequence to generate an antilogarithm N-bit binary sequence, the antilogarithm N-bit binary sequence is then further combined with the N-bit binary sequence. The de-emphasis sequence is generated by rearranging a last two bits of the differential sequence to the front.
In step S55, the user determines whether there is a need to generate simulation conditions with the SSC & SBW. If the user does not need to generate the simulation conditions with the SSC & SBW, the procedure ends. If the user needs to generate the simulation conditions with the SSC & SBW, in step S56, the SSC & SBW modulating sub-module 3023 generates digital waveforms according to the N-bit binary sequence, and generates the simulation conditions with the SSC & SBW according to the digital waveforms. Herein, the SSC & SBW modulating sub-module generates the simulation conditions with the SSC & SBW by modulating a relation of an sequence consisting of single “0” and “1” in the N-bit binary sequence and a width of time of single bit gradually and periodically, and generates a SSC preview graphic by fast Fourier transform.
Although the present invention has been specifically described on the basis of preferred embodiments and preferred methods, the invention is not to be construed as being limited thereto. Various changes or modifications may be made to the embodiment and method without departing from the scope and spirit of the invention.
Number | Date | Country | Kind |
---|---|---|---|
200510035985.2 | Jul 2005 | CN | national |