mirror of https://github.com/YosysHQ/yosys.git
delete module frontend
This commit is contained in:
parent
b56104ada2
commit
e801ea4fdb
|
|
@ -47,6 +47,7 @@ USING_YOSYS_NAMESPACE
|
|||
|
||||
#include "Array.h"
|
||||
#include "RuntimeFlags.h"
|
||||
#include "Set.h"
|
||||
#ifdef VERIFIC_HIER_TREE_SUPPORT
|
||||
#include "hier_tree.h"
|
||||
#endif
|
||||
|
|
@ -3924,6 +3925,22 @@ struct VerificPass : public Pass {
|
|||
goto check_error;
|
||||
}
|
||||
|
||||
if (GetSize(args) > argidx && args[argidx] == "-delete_module") {
|
||||
string lib = "work";
|
||||
Set *ignored = veri_file::GetIgnoredModuleSet();
|
||||
for (argidx++; argidx < GetSize(args); argidx++) {
|
||||
if (args[argidx] == "-work" && argidx+1 < GetSize(args)) {
|
||||
lib = args[++argidx];
|
||||
continue;
|
||||
}
|
||||
const char *name = args[argidx].c_str();
|
||||
if (ignored)
|
||||
ignored->Remove(name);
|
||||
veri_file::RemoveModule(name, lib.c_str());
|
||||
}
|
||||
goto check_error;
|
||||
}
|
||||
|
||||
if (GetSize(args) > argidx && args[argidx] == "-set_vhdl_default_library_path") {
|
||||
for (argidx++; argidx < GetSize(args); argidx++) {
|
||||
#ifdef VERIFIC_VHDL_SUPPORT
|
||||
|
|
|
|||
Loading…
Reference in New Issue