mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-05 09:46:36 +08:00
31 lines
808 B
Python
31 lines
808 B
Python
from operator import itemgetter
|
|
|
|
|
|
class Comm:
|
|
def __init__(self, dmgr):
|
|
super().__init__()
|
|
|
|
def switch_clock(self, external):
|
|
pass
|
|
|
|
def load(self, kcode):
|
|
print("================")
|
|
print(" LLVM IR")
|
|
print("================")
|
|
print(kcode)
|
|
|
|
def run(self, kname):
|
|
print("RUN: "+kname)
|
|
|
|
def serve(self, rpc_map, exception_map):
|
|
print("================")
|
|
print(" RPC map")
|
|
print("================")
|
|
for k, v in sorted(rpc_map.items(), key=itemgetter(0)):
|
|
print(str(k)+" -> "+str(v))
|
|
print("================")
|
|
print(" Exception map")
|
|
print("================")
|
|
for k, v in sorted(exception_map.items(), key=itemgetter(0)):
|
|
print(str(k)+" -> "+str(v))
|