Exemplo n.º 1
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)
Exemplo n.º 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)
Exemplo n.º 3
0
def write_statespace_program(builder):
    builder.thread_class = "cass::Thread"
    builder.pack_bindings = True

    build.write_header(builder)
    builder.line("#include <caverif.h>")
    write_core(builder)
    write_verif_configuration(builder)
    write_main(builder)
    buildnet.write_user_functions(builder)
Exemplo n.º 4
0
def write_statespace_program(builder):
    builder.thread_class = "cass::Thread"
    builder.pack_bindings = True

    build.write_header(builder)
    builder.line("#include <caverif.h>")
    write_core(builder)
    write_verif_configuration(builder)
    write_main(builder)
    buildnet.write_user_functions(builder)
Exemplo n.º 5
0
Arquivo: rpc.py Projeto: 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)
Exemplo n.º 6
0
Arquivo: rpc.py Projeto: 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)
Exemplo n.º 7
0
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)
Exemplo n.º 8
0
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)
Exemplo n.º 9
0
def write_standalone_program(builder):
    build.write_header(builder)
    buildnet.write_core(builder)
    write_main(builder)
    buildnet.write_user_functions(builder)