Esempio 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)
Esempio 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)
Esempio 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)
Esempio 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)
Esempio n. 5
0
File: rpc.py Progetto: 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)
Esempio n. 6
0
File: rpc.py Progetto: 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)
Esempio 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)
Esempio 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)
Esempio n. 9
0
def write_standalone_program(builder):
    build.write_header(builder)
    buildnet.write_core(builder)
    write_main(builder)
    buildnet.write_user_functions(builder)