Back to Forums
3 posts / 0 new
Last post
#1 Sep 26, 2017
Sbrettsc
Offline
Last seen: 3 years 10 months ago
Joined: 2017-08-17 21:19

Global Parameter in PWL Source

Is it possible to use a global parameters and expressions within the definition of a PWL source (for either the time steps or value steps)?

Sun, 2017-10-08 23:52
alok
Offline
Last seen: 1 year 1 month ago
Joined: 2016-05-10 23:49

yes. This is possible. Refer the example given below - I believe you are looking for something like this?

 

*Analysis directives: 
.TRAN  0 20m 0 
.OPTIONS ADVCONV
.PROBE64 V(alias(*)) I(alias(*)) W(alias(*)) D(alias(*)) NOISE(alias(*)) 
.INC "..\SCHEMATIC1.net" 

**** INCLUDING SCHEMATIC1.net ****
* source PWLSOURCE
V_V1         N00045 0   PWL    
+ 1m {T1} 2m {X1}  
R_R1         0 N00045  1k TC=0,0 
.PARAM  t1=2m x1=2

**** RESUMING TRAN.cir ****
.END

Tue, 2017-10-10 09:17
Sbrettsc
Offline
Last seen: 3 years 10 months ago
Joined: 2017-08-17 21:19

It works for me as long as the parameter values are only for the voltage steps.  If I use the parameter values in the time steps then it gives me an error saying "time value must not be an expression".  See the example below.  Is there any way around this?

*Analysis directives: 
.TRAN  0 10m 0 0.1m 
.OPTIONS ADVCONV
.PROBE64 V(alias(*)) I(alias(*)) W(alias(*)) D(alias(*)) NOISE(alias(*)) 
.INC "..\SCHEMATIC1.net" 

**** INCLUDING SCHEMATIC1.net ****
* source PWL_Project
V_V1         N00104 0  
+PWL 0 0 {T2} {V2} 
---------$
ERROR(ORPSIM-16352): Time value must not be an expression
R_R1         0 N00104  1k TC=0,0 
.PARAM  v2=2 t2=4m

**** RESUMING Transient.cir ****
.END

Download PSpice and try it for free! Download Free Trial
Cadence