}
extra_args(f, filename, args, argidx);
+ fprintf(f, "# Generated by %s\n", yosys_version_str);
+
std::vector<RTLIL::Module*> mod_list;
for (auto module_it : design->modules)
*
*/
+// [[CITE]] EDIF Version 2 0 0 Grammar
+// http://web.archive.org/web/20050730021644/http://www.edif.org/documentation/BNF_GRAMMAR/index.html
+
#include "kernel/rtlil.h"
#include "kernel/register.h"
#include "kernel/sigtools.h"
fprintf(f, " (edifVersion 2 0 0)\n");
fprintf(f, " (edifLevel 0)\n");
fprintf(f, " (keywordMap (keywordLevel 0))\n");
+ fprintf(f, " (comment \"Generated by %s\")\n", yosys_version_str);
fprintf(f, " (external LIB\n");
fprintf(f, " (edifLevel 0)\n");
extra_args(f, filename, args, argidx);
log("Output filename: %s\n", filename.c_str());
+ fprintf(f, "# Generated by %s\n", yosys_version_str);
ILANG_BACKEND::dump_design(f, design, selected);
}
} IlangBackend;
}
extra_args(f, filename, args, argidx);
- fprintf(f, "\n");
- fprintf(f, "*************************************\n");
- fprintf(f, "* SPICE netlist, generated by Yosys *\n");
- fprintf(f, "*************************************\n");
+ fprintf(f, "* SPICE netlist generated by %s\n", yosys_version_str);
fprintf(f, "\n");
for (auto module_it : design->modules)
reset_auto_counter(module);
active_module = module;
+ fprintf(f, "\n");
for (auto it = module->processes.begin(); it != module->processes.end(); it++)
dump_process(f, indent + " ", it->second, true);
}
extra_args(f, filename, args, argidx);
+ fprintf(f, "/* Generated by %s */\n", yosys_version_str);
for (auto it = design->modules.begin(); it != design->modules.end(); it++) {
if (it->second->get_bool_attribute("\\placeholder") != placeholders)
continue;
log_cmd_error("Can't handle partially selected module %s!\n", RTLIL::id2cstr(it->first));
continue;
}
- if (it != design->modules.begin())
- fprintf(f, "\n");
log("Dumping module `%s'.\n", it->first.c_str());
dump_module(f, "", it->second);
}
#include "kernel/register.h"
#include "kernel/log.h"
-// from kernel/version_*.o (cc source generated from Makefile)
-extern const char *yosys_version_str;
-
bool fgetline(FILE *f, std::string &buffer)
{
buffer = "";
extern Tcl_Interp *yosys_get_tcl_interp();
#endif
+// from kernel/version_*.o (cc source generated from Makefile)
+extern const char *yosys_version_str;
+
// implemented in driver.cc
extern RTLIL::Design *yosys_get_design();
std::string rewrite_yosys_exe(std::string exe);