Maryam_Shafighpour
Newbie level 1
dear all !
in my circuit, i have a switch parallel with Rload, and duty cycle of this switch changes (with n and t parameters in my code ) , i want to measure the Efficiency and then, compare them , to find maximum efficiency,
i did it with .DATA and here is my code:
the problem is i need Hspice to give me MAX efficiency and the data statement related to it.
in my circuit, i have a switch parallel with Rload, and duty cycle of this switch changes (with n and t parameters in my code ) , i want to measure the Efficiency and then, compare them , to find maximum efficiency,
i did it with .DATA and here is my code:
Code:
.meas TRAN Pin AVG V(pp) FROM 80u to 100u
.meas TRAN Pout AVG P(RL) FROM 80u to 100u
.meas TRAN Efficiency PARAM='(Pout/Pin)*100'
.tran 0.1n 100u SWEEP DATA=data1
.DATA data1 n p
0 1
0 2
0 3
0 4
0 5
0 6
0 7
0 8
0 9
0 10
******
1 2
1 3
1 4
1 5
1 6
1 7
1 8
1 9
1 10
1 11
******
.ENDDATA