mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-25 19:28:26 +08:00
coreanalyzer handle input events without timestamp
Offset the timeline by the first non-zero timestamp.
This commit is contained in:
parent
bc3fc26e34
commit
41e8acf3ad
@ -367,13 +367,17 @@ def decoded_dump_to_vcd(fileobj, devices, dump):
|
|||||||
slack = vcd_manager.get_channel("rtio_slack", 64)
|
slack = vcd_manager.get_channel("rtio_slack", 64)
|
||||||
|
|
||||||
vcd_manager.set_time(0)
|
vcd_manager.set_time(0)
|
||||||
if messages:
|
for m in messages:
|
||||||
start_time = get_message_time(messages[0])
|
start_time = get_message_time(m)
|
||||||
for message in messages:
|
if start_time:
|
||||||
if message.channel in channel_handlers:
|
break
|
||||||
vcd_manager.set_time(
|
|
||||||
get_message_time(message) - start_time)
|
for message in messages:
|
||||||
channel_handlers[message.channel].process_message(message)
|
if message.channel in channel_handlers:
|
||||||
if isinstance(message, OutputMessage):
|
t = get_message_time(message) - start_time
|
||||||
slack.set_value_double(
|
if t >= 0:
|
||||||
(message.timestamp - message.rtio_counter)*ref_period)
|
vcd_manager.set_time(t)
|
||||||
|
channel_handlers[message.channel].process_message(message)
|
||||||
|
if isinstance(message, OutputMessage):
|
||||||
|
slack.set_value_double(
|
||||||
|
(message.timestamp - message.rtio_counter)*ref_period)
|
||||||
|
Loading…
Reference in New Issue
Block a user