void init_storage(neam::cr::storage &storage) { my_class my_instance(13, 42.00000042, 4.2e-5, 0); my_instance.print("original:"); storage.write_to_file("sample/storage/instance", my_instance); }
int sc_main(int argc, char* argv[]) { // Elaboration basic_process_ex my_instance("my_instance"); // Run sim sc_start(); // post proc. return 0; }
/** * main */ int sc_main(int argc, char* argv[]) { // Instance creation simple_process my_instance("my_instance"); // Start simulation sc_start(1, SC_SEC); system("pause"); return 0; }