Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed issue #1869 by adding a new option, -to or --top-output to strmxor #1883

Merged
merged 2 commits into from
Oct 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/buddies/src/bd/strmxor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ BD_PUBLIC int strmxor (int argc, char *argv[])
generic_reader_options_b.set_group_prefix ("Input B");

std::string infile_a, infile_b, output;
std::string top_a, top_b;
std::string top_a, top_b, top_output;
bool dont_summarize_missing_layers = false;
bool silent = false;
bool no_summary = false;
Expand Down Expand Up @@ -393,6 +393,10 @@ BD_PUBLIC int strmxor (int argc, char *argv[])
<< tl::arg ("-tb|--top-b=name", &top_b, "Specifies the top cell for the second layout",
"See --top-a for details."
)
<< tl::arg ("-to|--top-output=name", &top_output, "Specifies the top cell for the output layout",
"This option is only used if an output layout is given. It will specify the name of top cell to use there. "
"If not specified, KLayout uses the top cell name of the first layout or the one given with --top-a."
)
<< tl::arg ("-u|--deep", &deep, "Deep (hierarchical mode)",
"Enables hierarchical XOR (experimental). In this mode, tiling is not supported "
"and the tiling arguments are ignored."
Expand Down Expand Up @@ -518,7 +522,7 @@ BD_PUBLIC int strmxor (int argc, char *argv[])

if (! output.empty ()) {
output_layout.reset (new db::Layout ());
output_top = output_layout->add_cell ("XOR");
output_top = output_layout->add_cell (top_output.empty () ? top_a.c_str () : top_output.c_str ());
}

std::map<std::pair<int, db::LayerProperties>, ResultDescriptor> results;
Expand Down
Binary file modified testdata/bd/strmxor_au1.oas
Binary file not shown.
Binary file modified testdata/bd/strmxor_au1d.oas
Binary file not shown.
Binary file modified testdata/bd/strmxor_au2.oas
Binary file not shown.
Binary file modified testdata/bd/strmxor_au2d.oas
Binary file not shown.
Binary file modified testdata/bd/strmxor_au3.oas
Binary file not shown.
Binary file modified testdata/bd/strmxor_au3_heal.oas
Binary file not shown.
Binary file modified testdata/bd/strmxor_au3d.oas
Binary file not shown.
Binary file modified testdata/bd/strmxor_au4.oas
Binary file not shown.
Binary file modified testdata/bd/strmxor_au4_heal.oas
Binary file not shown.
Binary file modified testdata/bd/strmxor_au4d.oas
Binary file not shown.
Binary file modified testdata/bd/strmxor_au5.oas
Binary file not shown.
Binary file modified testdata/bd/strmxor_au5d.oas
Binary file not shown.
Binary file modified testdata/bd/strmxor_au6.oas
Binary file not shown.
Binary file modified testdata/bd/strmxor_au6d.oas
Binary file not shown.
Loading