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)
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)
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)
def write_standalone_program(builder): build.write_header(builder) buildnet.write_core(builder) write_main(builder) buildnet.write_user_functions(builder)