Skip to content

Commit

Permalink
read_liberty: s/busses/buses/
Browse files Browse the repository at this point in the history
  • Loading branch information
povik committed Nov 12, 2024
1 parent 56a9202 commit 0d5c412
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions frontends/liberty/liberty.cc
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ struct LibertyFrontend : public Frontend {
log(" -ignore_miss_data_latch\n");
log(" ignore latches with missing data and/or enable pins\n");
log("\n");
log(" -ignore_busses\n");
log(" -ignore_buses\n");
log(" ignore cells with bus interfaces (wide ports)\n");
log("\n");
log(" -setattr <attribute_name>\n");
Expand All @@ -481,7 +481,7 @@ struct LibertyFrontend : public Frontend {
bool flag_ignore_miss_func = false;
bool flag_ignore_miss_dir = false;
bool flag_ignore_miss_data_latch = false;
bool flag_ignore_busses = false;
bool flag_ignore_buses = false;
bool flag_unit_delay = false;
std::vector<std::string> attributes;

Expand Down Expand Up @@ -518,8 +518,8 @@ struct LibertyFrontend : public Frontend {
flag_ignore_miss_data_latch = true;
continue;
}
if (arg == "-ignore_busses") {
flag_ignore_busses = true;
if (arg == "-ignore_buses") {
flag_ignore_buses = true;
continue;
}
if (arg == "-setattr" && argidx+1 < args.size()) {
Expand Down Expand Up @@ -593,7 +593,7 @@ struct LibertyFrontend : public Frontend {

if (node->id == "bus" && node->args.size() == 1)
{
if (flag_ignore_busses) {
if (flag_ignore_buses) {
log("Ignoring cell %s with a bus interface %s.\n", log_id(module->name), node->args.at(0).c_str());
delete module;
goto skip_cell;
Expand Down
6 changes: 3 additions & 3 deletions tests/liberty/options_test.ys
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Test memory macro gets ignored due to -ignore_busses
# Test memory macro gets ignored due to -ignore_buses
read_verilog -noblackbox <<EOF
module RM_IHPSG13_1P_64x64_c2_bm_bist();
endmodule
EOF
read_liberty -lib -ignore_busses foundry_data/RM_IHPSG13_1P_64x64_c2_bm_bist_typ_1p20V_25C.lib.filtered.gz
read_liberty -lib -ignore_buses foundry_data/RM_IHPSG13_1P_64x64_c2_bm_bist_typ_1p20V_25C.lib.filtered.gz

# Test memory macro doesn't get ignored without -ignore_busses
# Test memory macro doesn't get ignored without -ignore_buses
# and check the area and capacitance attributes are populated
design -reset
read_liberty -lib foundry_data/RM_IHPSG13_1P_64x64_c2_bm_bist_typ_1p20V_25C.lib.filtered.gz
Expand Down

0 comments on commit 0d5c412

Please sign in to comment.