from nmigen import *
from nmigen.sim import *
-from nmigen.back import rtlil, verilog
+from nmigen.back import verilog
class Counter(Elaboratable):
import re
from collections import OrderedDict
from collections.abc import Iterable
-from contextlib import contextmanager
from .utils import *
import io
-import textwrap
-from collections import defaultdict, OrderedDict
+from collections import OrderedDict
from contextlib import contextmanager
from .._utils import bits_for, flatten
-from ..hdl import ast, rec, ir, mem, xfrm
+from ..hdl import ast, ir, mem, xfrm
__all__ = ["convert", "convert_fragment"]
import warnings
from ..fhdl.structure import Signal, If, Case
-from ..._utils import deprecated
from ..fhdl.module import CompatModule
from abc import ABCMeta, abstractmethod
-import traceback
-import sys
import warnings
-import typing
import functools
from collections import OrderedDict
from collections.abc import Iterable, MutableMapping, MutableSet, MutableSequence
-from collections import OrderedDict, namedtuple
-from collections.abc import Iterable
+from collections import OrderedDict
from contextlib import contextmanager, _GeneratorContextManager
from functools import wraps
from enum import Enum
import warnings
-from .._utils import flatten, bits_for, deprecated
+from .._utils import flatten, bits_for
from .. import tracer
from .ast import *
from .ir import *
-from abc import ABCMeta, abstractmethod
+from abc import ABCMeta
from collections import defaultdict, OrderedDict
from functools import reduce
import warnings
-import traceback
-import sys
from .._utils import *
from .._unused import *
from functools import reduce, wraps
from .. import tracer
-from .._utils import union, deprecated
+from .._utils import union
from .ast import *
from collections import OrderedDict
from collections.abc import Iterable
-from .._utils import flatten, deprecated
+from .._utils import flatten
from .. import tracer
from .ast import *
from .ast import _StatementList
-from .._utils import deprecated
from .. import *
from .. import *
from ..asserts import *
-from .._utils import log2_int, deprecated
+from .._utils import log2_int
from .coding import GrayEncoder, GrayDecoder
from .cdc import FFSynchronizer, AsyncFFSynchronizer
-import inspect
-
from ._base import BaseProcess
import traceback
import unittest
import warnings
-from contextlib import contextmanager
from ..hdl.ast import *
from ..hdl.ir import *
import unittest
-from itertools import count
from nmigen.compat import *
from nmigen.compat.genlib.fsm import FSM
import os
from contextlib import contextmanager
-from nmigen._utils import flatten, union
+from nmigen._utils import flatten
from nmigen.hdl.ast import *
from nmigen.hdl.cd import *
from nmigen.hdl.mem import *
import textwrap
import traceback
import unittest
-from contextlib import contextmanager
from nmigen.hdl.ast import *
from nmigen.hdl.ir import *