The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
May 19th, 2024, 3:02am
Pages: 1
Send Topic Print
how to give pulse (Read 3668 times)
raja.cedt
Senior Fellow
******
Offline



Posts: 1516
Germany
how to give pulse
Jun 21st, 2009, 9:16am
 
hi,
  can anybody please tell me how to give a pulse with variable frequency in hspice, i know that PWL will work but very lengthy...

Thanks,
Rajasekhar.
Back to top
 
 
View Profile WWW raja.sekhar86   IP Logged
pancho_hideboo
Senior Fellow
******
Offline



Posts: 1424
Real Homeless
Re: how to give pulse
Reply #1 - Jun 21st, 2009, 10:04pm
 
raja.cedt wrote on Jun 21st, 2009, 9:16am:
can anybody please tell me how to give a pulse with variable frequency in hspice, i know that PWL will work but very lengthy....
I can't understand what you are confusing.

Use pulse() like following.
Quote:
.param Vlow=0.0 Vhigh=3.0
.param fclk=100MHz
.param Tperiod='1/fclk'
.param Tdelay=0.0
.param duty=0.5
.param Trise='Tperiod/20'
.param Tfall='Tperiod/20'
.param Twidth='Tperiod*duty-(Trise+Tfall)/2'

vpulse 1 0 pulse( Vlow Vhigh Tdelay Trise Tfall Twidth Tperiod )

Back to top
 
« Last Edit: Jun 22nd, 2009, 12:00am by pancho_hideboo »  
View Profile WWW Top+Secret Top+Secret   IP Logged
raja.cedt
Senior Fellow
******
Offline



Posts: 1516
Germany
Re: how to give pulse
Reply #2 - Jun 22nd, 2009, 1:46am
 
hi i am sorry, i mean to say that i want some frequency till some time after that i need another frequency..

Thanks,
Rajasekhar.
Back to top
 
 
View Profile WWW raja.sekhar86   IP Logged
pancho_hideboo
Senior Fellow
******
Offline



Posts: 1424
Real Homeless
Re: how to give pulse
Reply #3 - Jun 22nd, 2009, 2:20am
 
raja.cedt wrote on Jun 22nd, 2009, 1:46am:
hi i am sorry, i mean to say that i want some frequency till some time after that i need another frequency.
Create signal sources using Verilog-A.
It is very easy to generate such signals if you use $abstime, @timer() and transition() in Verilog-A.

If frequency variation is continuous, you can use FM-signal source and limitter to generate pulse signal of continuous FM without using Verilog-A model.

As another method, you can use signals based on VCD(Value Change Dump) format data.
This method is also implemented in both Cadence Spectre and Agilent GoldenGate.

http://www.designers-guide.org/Forum/YaBB.pl?num=1207062028/4#4

Currently almost all commercial transient simulator have an ability of generating signal based on VCD(Value Change Dump) format data.
Back to top
 
« Last Edit: Jun 22nd, 2009, 5:09am by pancho_hideboo »  
View Profile WWW Top+Secret Top+Secret   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.