示例#1
0
文件: simrun.py 项目: DiPi22/kaira
def write_simrun_program(builder):
    build.write_header(builder)
    write_clocks(builder)
    buildnet.write_core(builder)
    write_run_configuration(builder)
    write_main(builder)
    buildnet.write_user_functions(builder)
    write_clocks_tock(builder)
示例#2
0
def write_simrun_program(builder):
    build.write_header(builder)
    write_clocks(builder)
    buildnet.write_core(builder)
    write_run_configuration(builder)
    write_main(builder)
    buildnet.write_user_functions(builder)
    write_clocks_tock(builder)
示例#3
0
文件: rpc.py 项目: Kobzol/kaira
def write_server(builder):
    builder.line("#include <caserver.h>")
    builder.line("#include \"{0}.h\"", builder.project.get_name())
    builder.emptyline()
    builder.line("using namespace caserver;")
    buildnet.write_core(builder)
    for net in builder.project.nets:
        library.write_library_function(builder, net, rpc=True)
    library.write_library_init_function(builder)
    write_server_main(builder)
    buildnet.write_user_functions(builder)
示例#4
0
文件: rpc.py 项目: spirali/kaira
def write_server(builder):
    builder.line("#include <caserver.h>")
    builder.line("#include \"{0}.h\"", builder.project.get_name())
    builder.emptyline()
    builder.line("using namespace caserver;")
    buildnet.write_core(builder)
    for net in builder.project.nets:
        library.write_library_function(builder, net, rpc=True)
    library.write_library_init_function(builder)
    write_server_main(builder)
    buildnet.write_user_functions(builder)
示例#5
0
文件: library.py 项目: DiPi22/kaira
def write_library(builder, header_filename):
    builder.line("#include \"{0}\"", header_filename)
    builder.emptyline()
    buildnet.write_core(builder)
    write_library_functions(builder)
    buildnet.write_user_functions(builder)
示例#6
0
文件: library.py 项目: spirali/kaira
def write_library(builder, header_filename):
    builder.line("#include \"{0}\"", header_filename)
    builder.emptyline()
    buildnet.write_core(builder)
    write_library_functions(builder)
    buildnet.write_user_functions(builder)
示例#7
0
def write_standalone_program(builder):
    build.write_header(builder)
    buildnet.write_core(builder)
    write_main(builder)
    buildnet.write_user_functions(builder)