|
1 | | -import warnings |
2 | | - |
3 | | -from .ast import Shape, unsigned, signed |
4 | | -from .ast import Value, Const, C, Mux, Cat, Repl, Array, Signal, ClockSignal, ResetSignal |
5 | | -from .dsl import Module |
6 | | -from .cd import ClockDomain |
7 | | -from .ir import Elaboratable, Fragment, Instance |
8 | | -from .mem import Memory |
9 | | -with warnings.catch_warnings(): |
10 | | - warnings.filterwarnings(action="ignore", category=DeprecationWarning) |
11 | | - from .rec import Record |
12 | | -from .xfrm import DomainRenamer, ResetInserter, EnableInserter |
| 1 | +from ._ast import Shape, unsigned, signed, ShapeCastable, ShapeLike |
| 2 | +from ._ast import Value, ValueCastable, ValueLike |
| 3 | +from ._ast import Const, C, Mux, Cat, Repl, Array, Signal, ClockSignal, ResetSignal |
| 4 | +from ._dsl import SyntaxError, SyntaxWarning, Module |
| 5 | +from ._cd import DomainError, ClockDomain |
| 6 | +from ._ir import UnusedElaboratable, Elaboratable, DriverConflict, Fragment, Instance |
| 7 | +from ._mem import Memory, ReadPort, WritePort, DummyPort |
| 8 | +from ._rec import Record |
| 9 | +from ._xfrm import DomainRenamer, ResetInserter, EnableInserter |
13 | 10 |
|
14 | 11 |
|
15 | 12 | __all__ = [ |
16 | | - "Shape", "unsigned", "signed", |
17 | | - "Value", "Const", "C", "Mux", "Cat", "Repl", "Array", "Signal", "ClockSignal", "ResetSignal", |
18 | | - "Module", |
19 | | - "ClockDomain", |
20 | | - "Elaboratable", "Fragment", "Instance", |
21 | | - "Memory", |
| 13 | + # _ast |
| 14 | + "Shape", "unsigned", "signed", "ShapeCastable", "ShapeLike", |
| 15 | + "Value", "ValueCastable", "ValueLike", |
| 16 | + "Const", "C", "Mux", "Cat", "Repl", "Array", "Signal", "ClockSignal", "ResetSignal", |
| 17 | + # _dsl |
| 18 | + "SyntaxError", "SyntaxWarning", "Module", |
| 19 | + # _cd |
| 20 | + "DomainError", "ClockDomain", |
| 21 | + # _ir |
| 22 | + "UnusedElaboratable", "Elaboratable", "DriverConflict", "Fragment", "Instance", |
| 23 | + # _mem |
| 24 | + "Memory", "ReadPort", "WritePort", "DummyPort", |
| 25 | + # _rec |
22 | 26 | "Record", |
| 27 | + # _xfrm |
23 | 28 | "DomainRenamer", "ResetInserter", "EnableInserter", |
24 | 29 | ] |
0 commit comments