Skip to content

Commit be1845a

Browse files
[Spelling] Renamed Misspelled "Unknown" and "callibration"
There were several cases where an enum was created for an "Unknown" value, but it was spelled "Unkown". This was fixed. In power, there was an entire sub-class of the power analysis where every use of "calibration" was spelled with 2 Ls. This has been resolved.
1 parent 7341a51 commit be1845a

20 files changed

+173
-173
lines changed

libs/EXTERNAL/libblifparse/src/blif_parser.y

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,12 +193,12 @@ subckt: DOT_SUBCKT STRING { $$ = SubCkt(); $$.model = $2; }
193193
latch: DOT_LATCH STRING STRING {
194194
//Input and output only
195195
callback.lineno(lexer.lineno());
196-
callback.latch($2, $3, LatchType::UNSPECIFIED, "", LogicValue::UNKOWN);
196+
callback.latch($2, $3, LatchType::UNSPECIFIED, "", LogicValue::UNKNOWN);
197197
}
198198
| DOT_LATCH STRING STRING latch_type latch_control {
199199
//Input, output, type and control
200200
callback.lineno(lexer.lineno());
201-
callback.latch($2, $3, $4, $5, LogicValue::UNKOWN);
201+
callback.latch($2, $3, $4, $5, LogicValue::UNKNOWN);
202202
}
203203
| DOT_LATCH STRING STRING latch_type latch_control latch_init {
204204
//Input, output, type, control and init-value
@@ -215,7 +215,7 @@ latch: DOT_LATCH STRING STRING {
215215
latch_init: LOGIC_TRUE { $$ = LogicValue::TRUE; }
216216
| LOGIC_FALSE { $$ = LogicValue::FALSE; }
217217
| LATCH_INIT_2 { $$ = LogicValue::DONT_CARE; }
218-
| LATCH_INIT_3 { $$ = LogicValue::UNKOWN; }
218+
| LATCH_INIT_3 { $$ = LogicValue::UNKNOWN; }
219219
;
220220

221221
latch_control: STRING { $$ = $1;}

libs/EXTERNAL/libblifparse/src/blif_pretty_print.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ void BlifPrettyPrinter::latch(std::string input, std::string output, LatchType t
112112
case LogicValue::FALSE: printf("%s0", indent().c_str()); break;
113113
case LogicValue::TRUE: printf("%s1", indent().c_str()); break;
114114
case LogicValue::DONT_CARE: printf("%s2", indent().c_str()); break;
115-
case LogicValue::UNKOWN: printf("%s3", indent().c_str()); break;
115+
case LogicValue::UNKNOWN: printf("%s3", indent().c_str()); break;
116116
default: assert(false);
117117
}
118118
--indent_level_;

libs/EXTERNAL/libblifparse/src/blifparse.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ enum class LogicValue {
108108
FALSE = 0, //Logic zero
109109
TRUE = 1, //Logic one
110110
DONT_CARE, //Don't care
111-
UNKOWN //Unkown (e.g. latch initial state)
111+
UNKNOWN //Unkown (e.g. latch initial state)
112112
};
113113

114114
enum class LatchType {

libs/EXTERNAL/libtatum/libtatum/tatum/base/TimingType.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace tatum {
77
enum class TimingType {
88
SETUP,
99
HOLD,
10-
UNKOWN
10+
UNKNOWN
1111
};
1212

1313
} //namespace

libs/EXTERNAL/libtatum/libtatum/tatum/report/TimingPath.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class TimingPathInfo {
3939
DomainId capture_domain() const { return capture_domain_; }
4040

4141
private:
42-
TimingType path_type_ = TimingType::UNKOWN;
42+
TimingType path_type_ = TimingType::UNKNOWN;
4343

4444
Time delay_;
4545
Time slack_;

libs/EXTERNAL/libtatum/libtatum/tatum/report/graphviz_dot_writer.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ void GraphvizDotWriter::write_dot_file(std::ostream& os) {
3838
for(NodeId node : nodes_to_dump_) {
3939
node_slacks[node] = std::vector<TimingTag>(); //No slacks
4040
}
41-
TimingType timing_type = TimingType::UNKOWN;
41+
TimingType timing_type = TimingType::UNKNOWN;
4242

4343
write_dot_format(os, node_tags, node_slacks, timing_type);
4444
}
@@ -175,7 +175,7 @@ void GraphvizDotWriter::write_dot_edge(std::ostream& os, const EdgeId edge, cons
175175
} else if (timing_type == TimingType::HOLD) {
176176
os << "\\n"<< delay_calc_.hold_time(tg_, edge) << " (thld)";
177177
} else {
178-
TATUM_ASSERT(timing_type == TimingType::UNKOWN);
178+
TATUM_ASSERT(timing_type == TimingType::UNKNOWN);
179179
//Create both setup and hold edges if type is unknown
180180
os << "\\n"<< -delay_calc_.setup_time(tg_, edge) << " (-tsu)";
181181
os << "\\n"<< delay_calc_.hold_time(tg_, edge) << " (thld)";
@@ -190,7 +190,7 @@ void GraphvizDotWriter::write_dot_edge(std::ostream& os, const EdgeId edge, cons
190190
} else if (timing_type == TimingType::HOLD) {
191191
os << "\\n" << delay_calc_.min_edge_delay(tg_, edge);
192192
} else {
193-
TATUM_ASSERT(timing_type == TimingType::UNKOWN);
193+
TATUM_ASSERT(timing_type == TimingType::UNKNOWN);
194194
os << "\\n" << delay_calc_.max_edge_delay(tg_, edge) << " (tmax)";
195195
os << "\\n" << delay_calc_.min_edge_delay(tg_, edge) << " (tmin)";
196196
}

libs/libvtrutil/src/vtr_logic.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ enum class LogicValue {
2727
FALSE = 0,
2828
TRUE = 1,
2929
DONT_CARE = 2,
30-
UNKOWN = 3,
30+
UNKNOWN = 3,
3131
NUM_LOGIC_VALUE_TYPES = 4
3232
};
3333

vpr/src/base/atom_netlist_utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ void print_netlist_as_blif(FILE* f, const AtomNetlist& netlist, const LogicalMod
210210
case vtr::LogicValue::DONT_CARE:
211211
init_val = 2;
212212
break;
213-
case vtr::LogicValue::UNKOWN:
213+
case vtr::LogicValue::UNKNOWN:
214214
init_val = 3;
215215
break;
216216
default:

vpr/src/base/logic_vec.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ std::ostream& operator<<(std::ostream& os, vtr::LogicValue val) {
99
os << "1";
1010
else if (val == vtr::LogicValue::DONT_CARE)
1111
os << "-";
12-
else if (val == vtr::LogicValue::UNKOWN)
12+
else if (val == vtr::LogicValue::UNKNOWN)
1313
os << "x";
1414
else
1515
VTR_ASSERT(false);

vpr/src/base/netlist_writer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ class LatchInst : public Instance {
594594
os << "1'b0";
595595
else if (initial_value_ == vtr::LogicValue::DONT_CARE)
596596
os << "1'bx";
597-
else if (initial_value_ == vtr::LogicValue::UNKOWN)
597+
else if (initial_value_ == vtr::LogicValue::UNKNOWN)
598598
os << "1'bx";
599599
else
600600
VTR_ASSERT(false);
@@ -2395,7 +2395,7 @@ class NetlistWriterVisitor : public NetlistVisitor {
23952395
size_t i = 0;
23962396
//Walk through each input in the input cube for this row
23972397
while (names_row[i] != ' ') {
2398-
vtr::LogicValue input_val = vtr::LogicValue::UNKOWN;
2398+
vtr::LogicValue input_val = vtr::LogicValue::UNKNOWN;
23992399
if (names_row[i] == '1') {
24002400
input_val = vtr::LogicValue::TRUE;
24012401
} else if (names_row[i] == '0') {

0 commit comments

Comments
 (0)