From 58d0e2c0b8e7c95ed52ebaf3a673fab138db0c56 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 23 Dec 2015 18:56:23 +0800 Subject: [PATCH] coredevice/analyzer: log TTL decoding in debug mode --- artiq/coredevice/analyzer.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/artiq/coredevice/analyzer.py b/artiq/coredevice/analyzer.py index bcc445871..780cee7c1 100644 --- a/artiq/coredevice/analyzer.py +++ b/artiq/coredevice/analyzer.py @@ -128,12 +128,15 @@ class VCDManager: class TTLHandler: def __init__(self, vcd_manager, name): + self.name = name self.channel_value = vcd_manager.get_channel(name, 1) self.last_value = "X" self.oe = True def process_message(self, message): if isinstance(message, OutputMessage): + logger.debug("TTL write @%d %d to %d, name: %s", + message.timestamp, message.data, message.address, self.name) if message.address == 0: self.last_value = str(message.data) if self.oe: