import functools
-import collections
import inspect
+from collections.abc import Iterable
from ...back.pysim import *
for domain, period in clocks.items():
sim.add_clock(period / 1e9, domain=domain)
for domain, processes in generators.items():
- if isinstance(processes, collections.Iterable) and not inspect.isgenerator(processes):
+ if isinstance(processes, Iterable) and not inspect.isgenerator(processes):
for process in processes:
sim.add_sync_process(process, domain=domain)
else: