Skip to content
Snippets Groups Projects
Commit bf92cd62 authored by Pascal Engeler's avatar Pascal Engeler
Browse files

Added stitchtility and playground

parent c6212ef9
No related branches found
No related tags found
No related merge requests found
Source diff could not be displayed: it is too large. Options to address this: view the blob.
def frequencyHzToDphi(frequency):
dphi = int(frequency/0.18626451492)
if dphi <= 1:
return 1
if dphi >= 2**22:
return 2**22-1
else:
return dphi
def rampHzSqToDdphi(rampHzSq):
ddphi = int(rampHzSq/2.22044604921)
if ddphi <= 1:
return 1
if ddphi >= 2**22:
return 2**22-1
else:
return ddphi
def DeltaDphiAndDdphiToNsweep(DeltaDphi, Ddphi):
return int(DeltaDphi/(Ddphi*2**-23))
def numPeriodsToNringup(numPeriods, frequencyHz):
return int(numPeriods*100.0e6/frequencyHz)
def numPeriodsToNmeas(numPeriods, frequencyHz):
return int(numPeriods*100.0e6/frequencyHz)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment