## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; if not, write to the Free Software
-## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+## along with this program; if not, see <http://www.gnu.org/licenses/>.
##
import sigrokdecode as srd
desc = 'Retrieves the timing jitter between two digital signals.'
license = 'gplv2+'
inputs = ['logic']
- outputs = ['jitter']
+ outputs = []
+ tags = ['Clock/timing', 'Util']
channels = (
{'id': 'clk', 'name': 'Clock', 'desc': 'Clock reference channel'},
{'id': 'sig', 'name': 'Resulting signal', 'desc': 'Resulting signal controlled by the clock'},
)
annotations = (
('jitter', 'Jitter value'),
- ('clk_missed', 'Clock missed'),
- ('sig_missed', 'Signal missed'),
+ ('clk_miss', 'Clock miss'),
+ ('sig_miss', 'Signal miss'),
)
annotation_rows = (
- ('jitter', 'Jitter values', (0,)),
- ('clk_missed', 'Clock missed', (1,)),
- ('sig_missed', 'Signal missed', (2,)),
+ ('jitter_vals', 'Jitter values', (0,)),
+ ('clk_misses', 'Clock misses', (1,)),
+ ('sig_misses', 'Signal misses', (2,)),
)
binary = (
('ascii-float', 'Jitter values as newline-separated ASCII floats'),
)
def __init__(self):
+ self.reset()
+
+ def reset(self):
self.state = 'CLK'
self.samplerate = None
self.oldclk, self.oldsig = 0, 0