mirror of https://github.com/m-labs/artiq.git
test: prevent NAC3 analysis failures of imported but unused methods
This commit is contained in:
parent
770896a64b
commit
618e2788d9
|
@ -9,7 +9,7 @@ from artiq.coredevice.exceptions import CacheError
|
|||
from artiq.test.hardware_testbench import ExperimentCase
|
||||
|
||||
|
||||
@nac3
|
||||
# NAC3TODO @nac3
|
||||
class _Cache(EnvExperiment):
|
||||
core: KernelInvariant[Core]
|
||||
core_cache: KernelInvariant[CoreCache]
|
||||
|
|
|
@ -19,7 +19,7 @@ class EdgeCounterExp(EnvExperiment):
|
|||
self.setattr_device("loop_out")
|
||||
|
||||
# NAC3TODO https://git.m-labs.hk/M-Labs/nac3/issues/461
|
||||
@kernel
|
||||
# NAC3TODO @kernel
|
||||
def count_pulse_edges(self, gate_fn) -> tuple[int32, int32]:
|
||||
self.core.break_realtime()
|
||||
with parallel:
|
||||
|
@ -27,9 +27,9 @@ class EdgeCounterExp(EnvExperiment):
|
|||
self.core.delay(5. * us)
|
||||
self.loop_out.pulse(10. * us)
|
||||
with sequential:
|
||||
#gate_fn(10. * us)
|
||||
gate_fn(10. * us)
|
||||
self.core.delay(1. * us)
|
||||
#gate_fn(10 * us)
|
||||
gate_fn(10 * us)
|
||||
return (self.loop_in_counter.fetch_count(),
|
||||
self.loop_in_counter.fetch_count())
|
||||
|
||||
|
|
Loading…
Reference in New Issue