how to calcluate the pahse difference between two sine waves using viva calculator
时间:04-04
整理:3721RD
点击:
Hi, I am using specter simulator, and i want to calculate the phase difference between two sine waves using viva calculator.. anybody give the suggestion..!
Use delay() or cross() function.
Enter following in CIW.
Code:
ocnHelp 'delay ocnHelp 'cross
Hi, Thanks. From that function i calculate phase difference between the two sine waves in seconds, and using this general formula ((T1-T2)/Tp)*360 i can calculate phase difference in degrees.
((cross(vtime('tran "/b1") 0 1 "falling" nil nil )-cross(vtime('tran "/a1") 0 1 "falling" nil nil ))/28.5e-12)*360