mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
sim/generic: support implicit get_fragment
This commit is contained in:
parent
d92ca43cd0
commit
69dbf84e54
1 changed files with 2 additions and 0 deletions
|
@ -76,6 +76,8 @@ end
|
|||
|
||||
class Simulator:
|
||||
def __init__(self, fragment, top_level=None, sim_runner=None, sockaddr="simsocket", **vopts):
|
||||
if not isinstance(fragment, Fragment):
|
||||
fragment = fragment.get_fragment()
|
||||
if top_level is None:
|
||||
top_level = TopLevel()
|
||||
if sim_runner is None:
|
||||
|
|
Loading…
Reference in a new issue