Kasli-SoC get_rtio_counter_mu always returns 0 #201

Closed
opened 2022-09-07 00:16:57 +08:00 by mbirtwell · 1 comment

Running the experiment:

from time import sleep

from artiq.coredevice.core import Core
from artiq.language import EnvExperiment


class CheckCounter(EnvExperiment):
    def build(self):
        self.core: Core = self.get_device("core")

    def run(self):
        print(f"counter: {self.core.get_rtio_counter_mu()}")
        sleep(1.0)
        print(f"counter: {self.core.get_rtio_counter_mu()}")

On a kasli v2.0 you get something like:

print:counter: 970749070566752
print:counter: 970750149100312

Depending on how long the kasli has been running but on Kasli-SoC you always get:

print:counter: 0
print:counter: 0

I would expect it to print the uptime in ns.

Running the experiment: ``` from time import sleep from artiq.coredevice.core import Core from artiq.language import EnvExperiment class CheckCounter(EnvExperiment): def build(self): self.core: Core = self.get_device("core") def run(self): print(f"counter: {self.core.get_rtio_counter_mu()}") sleep(1.0) print(f"counter: {self.core.get_rtio_counter_mu()}") ``` On a kasli v2.0 you get something like: ``` print:counter: 970749070566752 print:counter: 970750149100312 ``` Depending on how long the kasli has been running but on Kasli-SoC you always get: ``` print:counter: 0 print:counter: 0 ``` I would expect it to print the uptime in ns.
esavkin was assigned by sb10q 2022-10-05 17:00:05 +08:00

I ran code you provided, but was unable to reproduce the issue. I also added @kernel decorator, but that didn't have any effect. Output values seems to be fine:

counter: 1495496331440
counter: 1496540367824
I ran code you provided, but was unable to reproduce the issue. I also added @kernel decorator, but that didn't have any effect. Output values seems to be fine: ``` counter: 1495496331440 counter: 1496540367824 ```
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: M-Labs/artiq-zynq#201
There is no content yet.