
It turns out that while Python does not import _private identifiers when using * imports, it does nevertheless import all submodules. Avoid polluting the namespace in the prelude by explicitly listing all exported identifiers.
23 lines
767 B
Python
23 lines
767 B
Python
from .ast import Shape, unsigned, signed
|
|
from .ast import Value, Const, C, Mux, Cat, Repl, Array, Signal, ClockSignal, ResetSignal
|
|
from .dsl import Module
|
|
from .cd import ClockDomain
|
|
from .ir import Elaboratable, Fragment, Instance
|
|
from .mem import Memory
|
|
from .rec import Record
|
|
from .xfrm import DomainRenamer, ResetInserter, EnableInserter, \
|
|
CEInserter # TODO(nmigen-0.2): remove this
|
|
|
|
|
|
__all__ = [
|
|
"Shape", "unsigned", "signed",
|
|
"Value", "Const", "C", "Mux", "Cat", "Repl", "Array", "Signal", "ClockSignal", "ResetSignal",
|
|
"Module",
|
|
"ClockDomain",
|
|
"Elaboratable", "Fragment", "Instance",
|
|
"Memory",
|
|
"Record",
|
|
"DomainRenamer", "ResetInserter", "EnableInserter",
|
|
"CEInserter", # TODO(nmigen-0.2): remove this
|
|
]
|