-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add alias write_ilang -> write_rtlil and update Yosys version
- Loading branch information
Showing
7 changed files
with
35 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
|
||
CXXFLAGS += -I $(SYNLIG_SRC)/mods/yosys_ast | ||
|
||
SYNLIG_OBJS += mods/yosys_ast/synlig_const2ast.o | ||
SYNLIG_OBJS += mods/yosys_ast/synlig_edif.o | ||
SYNLIG_OBJS += mods/yosys_ast/synlig_simplify.o | ||
SYNLIG_OBJS += mods/yosys_ast/synlig_write_ilang.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#include "kernel/yosys.h" | ||
|
||
namespace Synlig | ||
{ | ||
|
||
using namespace ::Yosys; | ||
struct WriteIlangAlias : public Pass { | ||
WriteIlangAlias() : Pass("write_ilang", "alias for write_rtlil pass") {} | ||
void help() override | ||
{ | ||
log_warning("write_ilang pass is an alias for write_rtlil pass.\n\n"); | ||
run_pass("help write_rtlil"); | ||
} | ||
void execute(std::vector<std::string> args, RTLIL::Design *design) override | ||
{ | ||
log_warning("write_ilang pass is an alias for write_rtlil pass.\n\n"); | ||
std::string cmd = "write_rtlil"; | ||
for (int i = 1; i < args.size(); i++) | ||
cmd += " " + args[i]; | ||
run_pass(cmd, design); | ||
} | ||
} WriteIlangAliasPass; | ||
|
||
} // namespace Synlig |
Submodule yosys
updated
40 files