Clean up imports.

This commit:
  * moves lists of universally useful imports from `nmigen` to
    `nmigen.hdl` and `nmigen.lib`, reimporting them in `nmigen`;
  * replaces lots of imports from individual parts of `nmigen.hdl`
    with a star import from `nmigen.hdl`;
  * replaces imports in tests with what we expect downstream code
    to use;
  * adds some missing imports in `nmigen.formal`.
This commit is contained in:
whitequark 2019-06-04 08:18:50 +00:00
parent 3194b5c90b
commit 9f643ce005
9 changed files with 19 additions and 26 deletions

View file

@ -1,7 +1,5 @@
from .tools import *
from ..hdl.ast import *
from ..hdl.cd import *
from ..hdl.dsl import *
from ..hdl import *
from ..back.pysim import *
from ..lib.cdc import *

View file

@ -1,7 +1,6 @@
from .tools import *
from ..hdl.ast import *
from ..hdl.dsl import *
from ..hdl.ir import *
from ..hdl import *
from ..formal import *
from ..back.pysim import *
from ..lib.coding import *

View file

@ -1,10 +1,6 @@
from .tools import *
from ..hdl.ast import *
from ..hdl.dsl import *
from ..hdl.mem import *
from ..hdl.ir import *
from ..hdl.xfrm import *
from ..hdl.cd import *
from ..hdl import *
from ..formal import *
from ..back.pysim import *
from ..lib.fifo import *

View file

@ -1,6 +1,7 @@
from .tools import *
from ..hdl.ast import *
from ..hdl import *
from ..hdl.rec import *
from ..back.pysim import *
from ..lib.io import *