hdl.rec: deprecate in favor of lib.data and lib.wiring.

Tracking #879.
This commit is contained in:
Catherine 2023-09-01 02:58:42 +00:00
parent 7f1397b281
commit 5a17f94fdc
10 changed files with 327 additions and 278 deletions

View file

@ -1,7 +1,11 @@
# amaranth: UnusedElaboratable=no
import warnings
from amaranth import *
from amaranth.hdl.rec import *
with warnings.catch_warnings():
warnings.filterwarnings(action="ignore", category=DeprecationWarning)
from amaranth.hdl.rec import *
from amaranth.lib.io import *
from amaranth.build.dsl import *
from amaranth.build.res import *

View file

@ -1,7 +1,11 @@
import warnings
from enum import Enum
from amaranth.hdl.ast import *
from amaranth.hdl.rec import *
with warnings.catch_warnings():
warnings.filterwarnings(action="ignore", category=DeprecationWarning)
from amaranth.hdl.rec import *
from .utils import *

View file

@ -1,5 +1,9 @@
import warnings
from amaranth.hdl import *
from amaranth.hdl.rec import *
with warnings.catch_warnings():
warnings.filterwarnings(action="ignore", category=DeprecationWarning)
from amaranth.hdl.rec import *
from amaranth.sim import *
from amaranth.lib.io import *

View file

@ -6,7 +6,9 @@ from amaranth._utils import flatten
from amaranth.hdl.ast import *
from amaranth.hdl.cd import *
from amaranth.hdl.mem import *
from amaranth.hdl.rec import *
with warnings.catch_warnings():
warnings.filterwarnings(action="ignore", category=DeprecationWarning)
from amaranth.hdl.rec import *
from amaranth.hdl.dsl import *
from amaranth.hdl.ir import *
from amaranth.sim import *