예제 #1
0
def start(*k, **kw):
    if api.is_running():
        if hasattr(api, "start"):
            api.start(*k)
        else:
            print("sc_start is not implemented")
    from usi import shell
    if shell.is_running():
        shell.stop()
예제 #2
0
파일: systemc.py 프로젝트: Emantor/pysc
def start(*k, **kw):
  if api.is_running():
      if hasattr(api, "start"):
          api.start(*k)
      else:
          print("sc_start is not implemented")
  from usi import shell
  if shell.is_running():
      shell.stop()
예제 #3
0
def pause(*k, **kw):
    from usi import shell
    if not shell.is_running():
        api.pause()
예제 #4
0
def stop(*k, **kw):
    if api.is_running():
        api.stop()
    from usi import shell
    if shell.is_running():
        shell.stop()
예제 #5
0
파일: systemc.py 프로젝트: Emantor/pysc
def pause(*k, **kw):
  from usi import shell
  if not shell.is_running():
      api.pause()
예제 #6
0
파일: systemc.py 프로젝트: Emantor/pysc
def stop(*k, **kw):
  if api.is_running():
      api.stop()
  from usi import shell
  if shell.is_running():
      shell.stop()