Remove features deprecated in version 0.3.

This commit is contained in:
Catherine 2023-01-31 21:38:27 +00:00
parent 47551e8c71
commit 5a79c351e3
15 changed files with 21 additions and 319 deletions

View file

@ -1,11 +0,0 @@
import warnings
from ..sim import *
__all__ = ["Settle", "Delay", "Tick", "Passive", "Active", "Simulator"]
# TODO(amaranth-0.4): remove
warnings.warn("instead of amaranth.back.pysim.*, use amaranth.sim.*",
DeprecationWarning, stacklevel=2)

View file

@ -411,11 +411,7 @@ class _ValueCompiler(xfrm.ValueVisitor):
if value.start == 0 and value.stop == len(value.value):
return self(value.value)
if isinstance(value.value, ast.UserValue):
sigspec = self._prepare_value_for_Slice(value.value._lazy_lower())
else:
sigspec = self._prepare_value_for_Slice(value.value)
sigspec = self._prepare_value_for_Slice(value.value)
if value.start == value.stop:
return "{}"
elif value.start + 1 == value.stop:
@ -1041,11 +1037,7 @@ def convert_fragment(fragment, name="top", *, emit_src=True):
return str(builder), name_map
def convert(elaboratable, name="top", platform=None, ports=None, *, emit_src=True, **kwargs):
# TODO(amaranth-0.4): remove
if ports is None:
warnings.warn("Implicit port determination is deprecated, specify ports explicitly",
DeprecationWarning, stacklevel=2)
def convert(elaboratable, name="top", platform=None, *, ports, emit_src=True, **kwargs):
fragment = ir.Fragment.get(elaboratable, platform).prepare(ports=ports, **kwargs)
il_text, name_map = convert_fragment(fragment, name, emit_src=emit_src)
return il_text

View file

@ -42,11 +42,8 @@ def convert_fragment(*args, strip_internal_attrs=False, **kwargs):
return _convert_rtlil_text(rtlil_text, strip_internal_attrs=strip_internal_attrs), name_map
def convert(elaboratable, name="top", platform=None, ports=None, *, emit_src=True, strip_internal_attrs=False, **kwargs):
# TODO(amaranth-0.4): remove
if ports is None:
warnings.warn("Implicit port determination is deprecated, specify ports explicitly",
DeprecationWarning, stacklevel=2)
def convert(elaboratable, name="top", platform=None, *, ports, emit_src=True,
strip_internal_attrs=False, **kwargs):
fragment = ir.Fragment.get(elaboratable, platform).prepare(ports=ports, **kwargs)
verilog_text, name_map = convert_fragment(fragment, name, emit_src=emit_src, strip_internal_attrs=strip_internal_attrs)
return verilog_text