hdl.ir: rename .get_fragment() to .elaborate().

Closes #9.
This commit is contained in:
whitequark 2019-01-26 02:31:12 +00:00
parent 4922a73c5d
commit 4948162f33
28 changed files with 108 additions and 88 deletions

View file

@ -57,7 +57,7 @@ class _MemoryPort(CompatModule):
@extend(NativeMemory)
@deprecated("it is not necessary or permitted to add Memory as a special or submodule")
def get_fragment(self, platform):
def elaborate(self, platform):
return Fragment()

View file

@ -1,5 +1,6 @@
import warnings
from ...hdl import Fragment
from ...back import verilog
from .conv_output import ConvOutput
@ -16,7 +17,7 @@ def convert(fi, ios=None, name="top", special_overrides=dict(),
# TODO: attr_translate
v_output = verilog.convert(
fragment=fi.get_fragment().get_fragment(platform=None),
fragment=Fragment.get(fi.get_fragment(), platform=None),
name=name,
ports=ios or (),
ensure_sync_exists=create_clock_domains