projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad9bbcb
)
Automatically run "proc" on extract map files
author
Clifford Wolf
<clifford@clifford.at>
Wed, 24 Jul 2013 18:19:08 +0000
(20:19 +0200)
committer
Clifford Wolf
<clifford@clifford.at>
Wed, 24 Jul 2013 18:19:08 +0000
(20:19 +0200)
passes/extract/extract.cc
patch
|
blob
|
history
diff --git
a/passes/extract/extract.cc
b/passes/extract/extract.cc
index d25af324e4acac2644d4ce7157a30e4ced9719ec..0c639aeda3dbdd28bf71b07682bdff00b621dc1e 100644
(file)
--- a/
passes/extract/extract.cc
+++ b/
passes/extract/extract.cc
@@
-521,6
+521,11
@@
struct ExtractPass : public Pass {
map = new RTLIL::Design;
Frontend::frontend_call(map, f, filename, (filename.size() > 3 && filename.substr(filename.size()-3) == ".il") ? "ilang" : "verilog");
fclose(f);
+
+ if (filename.size() <= 3 || filename.substr(filename.size()-3) != ".il") {
+ Pass::call(map, "proc");
+ Pass::call(map, "opt_clean");
+ }
}
std::map<std::string, RTLIL::Module*> needle_map, haystack_map;