summaryrefslogtreecommitdiff
path: root/passes
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2013-11-24 19:50:25 +0100
committerClifford Wolf <clifford@clifford.at>2013-11-24 19:50:25 +0100
commit20175afd298be717aa91a96c9d8654859cf2dd2d (patch)
tree4dd05b42f8f76b07dc05c6453b2f7530140b062d /passes
parent019b3015418aaf848313ca05ce1ac59df1715052 (diff)
Added "techmap -share_map" option
Diffstat (limited to 'passes')
-rw-r--r--passes/techmap/techmap.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/passes/techmap/techmap.cc b/passes/techmap/techmap.cc
index c3af697b..551fc578 100644
--- a/passes/techmap/techmap.cc
+++ b/passes/techmap/techmap.cc
@@ -372,6 +372,11 @@ struct TechmapPass : public Pass {
log(" transforms the internal RTL cells to the internal gate\n");
log(" library.\n");
log("\n");
+ log(" -share_map filename\n");
+ log(" like -map, but look for the file in the share directory (where the\n");
+ log(" yosys data files are). this is mainly used internally when techmap\n");
+ log(" is called from other commands.\n");
+ log("\n");
log("When a module in the map file has the 'techmap_celltype' attribute set, it will\n");
log("match cells with a type that match the text value of this attribute.\n");
log("\n");
@@ -423,6 +428,10 @@ struct TechmapPass : public Pass {
map_files.push_back(args[++argidx]);
continue;
}
+ if (args[argidx] == "-share_map" && argidx+1 < args.size()) {
+ map_files.push_back(get_share_file_name(args[++argidx]));
+ continue;
+ }
break;
}
extra_args(args, argidx, design);