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

@ -347,7 +347,7 @@ class _StatementCompiler(StatementVisitor):
class Simulator:
def __init__(self, fragment, vcd_file=None, gtkw_file=None, traces=()):
self._fragment = fragment
self._fragment = Fragment.get(fragment, platform=None)
self._signal_slots = SignalDict() # Signal -> int/slot
self._slot_signals = list() # int/slot -> Signal
@ -386,9 +386,6 @@ class Simulator:
self._run_called = False
while not isinstance(self._fragment, Fragment):
self._fragment = self._fragment.get_fragment(platform=None)
@staticmethod
def _check_process(process):
if inspect.isgeneratorfunction(process):