mirror of https://github.com/YosysHQ/yosys.git
Fix typo
This commit is contained in:
parent
f81dbf2433
commit
c33f7b92f7
|
@ -23,14 +23,14 @@
|
||||||
USING_YOSYS_NAMESPACE
|
USING_YOSYS_NAMESPACE
|
||||||
PRIVATE_NAMESPACE_BEGIN
|
PRIVATE_NAMESPACE_BEGIN
|
||||||
|
|
||||||
struct ThresholdHiearchyKeeping {
|
struct ThresholdHierarchyKeeping {
|
||||||
Design *design;
|
Design *design;
|
||||||
CellCosts costs;
|
CellCosts costs;
|
||||||
dict<Module *, int> done;
|
dict<Module *, int> done;
|
||||||
pool<Module *> in_progress;
|
pool<Module *> in_progress;
|
||||||
uint64_t threshold;
|
uint64_t threshold;
|
||||||
|
|
||||||
ThresholdHiearchyKeeping(Design *design, uint64_t threshold)
|
ThresholdHierarchyKeeping(Design *design, uint64_t threshold)
|
||||||
: design(design), costs(design), threshold(threshold) {}
|
: design(design), costs(design), threshold(threshold) {}
|
||||||
|
|
||||||
uint64_t visit(RTLIL::Module *module) {
|
uint64_t visit(RTLIL::Module *module) {
|
||||||
|
@ -116,7 +116,7 @@ struct KeepHierarchyPass : public Pass {
|
||||||
if (!top)
|
if (!top)
|
||||||
log_cmd_error("'-min_cost' mode requires a single top module in the design\n");
|
log_cmd_error("'-min_cost' mode requires a single top module in the design\n");
|
||||||
|
|
||||||
ThresholdHiearchyKeeping worker(design, min_cost);
|
ThresholdHierarchyKeeping worker(design, min_cost);
|
||||||
worker.visit(top);
|
worker.visit(top);
|
||||||
} else {
|
} else {
|
||||||
for (auto module : design->selected_modules()) {
|
for (auto module : design->selected_modules()) {
|
||||||
|
|
Loading…
Reference in New Issue