Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

how to use hspics or matlab to imulation eye diagram

Status
Not open for further replies.

shinnyi

Junior Member level 1
Junior Member level 1
Joined
Apr 13, 2006
Messages
15
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,384
eye diagram matlab

how to use hspics or matlab to imulation eye diagram

the eye diagram like figure1~4

**broken link removed**
 

matlab eyediagram

Dear shinnyi :

using these commands:

.param width=period phase=0ns
.probe tran time2=par('TIME+phase-int((TIME+phase)/width)*width')


mpig
 

    shinnyi

    Points: 2
    Helpful Answer Positive Rating
eye diagram sample in matlab

mpig09 said:
Dear shinnyi :

using these commands:

.param width=period phase=0ns
.probe tran time2=par('TIME+phase-int((TIME+phase)/width)*width')


mpig

sorry sir
I have already tried Several time
but it still won't work

can you tell me more about that



*******************************1.25GHZ
.param width=800p phase=0ns
.probe tran time2=par('TIME+phase-int((TIME+phase)/width)*width')
I filter PD_IN pulse(50u 550u 80p 10p 10p 400p 800p)
.tran 1n 200n
*******************************
 

eye diagram example matlab

hi
search edaboard
I saw your solution.
regards
 

    shinnyi

    Points: 2
    Helpful Answer Positive Rating
dolphin eye diagram

shinnyi said:
how to use hspics or matlab to imulation eye diagram

the eye diagram like figure1~4

h**p://tw.pg.photos.yahoo.com/ph/shinnyi2002/my_photos

hi,shinnyi

you can find a demo in this subject, generally, in xx/demo/awaves/demo/eyediag.sp
where xx means hspice root directory

the content of it, in my hspice version, is following

*******************************************************

* Eye Diagrams
* This type of diagram is to reduce a large amount of data to
* one frame. Data from a fixed period is superimposed upon
* itself.
*
* An e source is setup to create a sawtooth.
* The sawtooth period is the window to be plotted, eyewidth. i.e. if
* you are looking at a periodic signal and want to know if the
* period or amplitude drifts over a large time, then the
* eyewidth is set to the period of the data to be plotted and
* superimposed.
*
* In this example, Y is a damped sin wave at 1 Mhz. X is a 5 Mhz
* sin wave. The eyewidth is set to 2 Mhz. (Look at the difference
* between 2Mhz and 1Mhz as an experiment).
*
* To view output in Meta-Waves, place signal T on the x axis and plot either
* X or Y on the y axis. For the damped sin wave, notice that the
* frequency is constant but that the amplitude obviously decays.
* This is a view of all periods super-imposed on each other.
*
* Plot X, Y vs Time,
* X, or Y vs T
*
* Only 4 lines are needed to add eye diagrams to a circuit:
* Here they are:
* .Param EyeWidth = 2.0x $ Bandwidth
* eT T 0 Vol='(TIME*EyeWidth)-int((TIME*EyeWidth))'
* rT T 0 1k
* .Option Post

.Param EyeWidth = 1.0x $ Bandwidth

* a clever alternative here is to set .Param Eyewidth = '1/<clock_period>'

vX X 0 Sin ( 0v 3v 1xHz )
vY Y 0 Sin ( 0v 1v 1xHz 0s 500k )

* Simple time manipulation to create a sawtooth pattern
eT T 0 Vol='(TIME*EyeWidth)-int((TIME*EyeWidth))'

rX X 0 1k
rY Y 0 1k
rT T 0 1k



.Tran 10ns 10us
.Option Post=2
.End
*******************************************************

young
 

    shinnyi

    Points: 2
    Helpful Answer Positive Rating
eye diagram in matlab

Dear shinnyi :

Sorry, I late to solve your problem.
Please try these following steps :

When you creates a new TIME2 output variable :
*Open the resulting .tr# file
*In the "Results Browser" window, under "Types:" select "Params"
*Under "Curves:" select "time2"
*Under "Current X-Axis," click on "Apply"
*Under "Types:" again, select "Voltages," "Currents" or any other
type of output variable you want to display
*Double click on the desired signals you want to display
*In the viewing window, click on the right mouse button; *select "Monotonic Plot ..."

If you have any problem, give me some message!


mpig
 

matlab eye diagram

maybe you can try smash
www.dolphin.fr

smash simulator have some function can get eye pattern
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top