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:
parent
3194b5c90b
commit
9f643ce005
9 changed files with 19 additions and 26 deletions
4
nmigen/vendor/fpga/lattice_ice40.py
vendored
4
nmigen/vendor/fpga/lattice_ice40.py
vendored
|
|
@ -3,9 +3,7 @@ import os
|
|||
import subprocess
|
||||
import tempfile
|
||||
|
||||
from ...hdl.ast import *
|
||||
from ...hdl.dsl import *
|
||||
from ...hdl.ir import *
|
||||
from ...hdl import *
|
||||
from ...build import *
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue