3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-08-09 04:31:25 +00:00

Added help messages to ilang and verilog frontends

This commit is contained in:
Clifford Wolf 2013-03-01 08:03:00 +01:00
parent 51c2b797b3
commit 8a6b0a3520
3 changed files with 60 additions and 2 deletions

View file

@ -32,7 +32,17 @@ void rtlil_frontend_ilang_yyerror(char const *s)
}
struct IlangFrontend : public Frontend {
IlangFrontend() : Frontend("ilang") { }
IlangFrontend() : Frontend("ilang", "read modules from ilang file") { }
virtual void help()
{
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
log("\n");
log(" read_ilang [filename]\n");
log("\n");
log("Load modules from an ilang file to the current design. (ilang is a text\n");
log("representation of a design in yosys's internal format.)\n");
log("\n");
}
virtual void execute(FILE *&f, std::string filename, std::vector<std::string> args, RTLIL::Design *design)
{
log_header("Executing ILANG frontend.\n");