Skip to content

Commit

Permalink
cellmatch: Rename the special design to $cellmatch
Browse files Browse the repository at this point in the history
  • Loading branch information
povik committed Apr 13, 2024
1 parent 642778c commit 40d141d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions passes/techmap/cellmatch.cc
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ struct CellmatchPass : Pass {
log("selected modules and a module from the secondary design <design>. For every such\n");
log("correspondence found, a techmap rule is generated for mapping instances of the\n");
log("former to instances of the latter. This techmap rule is saved in yet another\n");
log("design called '$cellmatch_map', which is created if non-existent.\n");
log("design called '$cellmatch', which is created if non-existent.\n");
log("\n");
log("This pass restricts itself to combinational modules. Modules are functionally\n");
log("equivalent as long as their truth tables are identical upto a permutation of\n");
Expand Down Expand Up @@ -192,7 +192,7 @@ struct CellmatchPass : Pass {
targets[p_classes].push_back(Target{m, luts});
}

auto r = saved_designs.emplace("$cellmatch_map", nullptr);
auto r = saved_designs.emplace("$cellmatch", nullptr);
if (r.second)
r.first->second = new Design;
Design *map_design = r.first->second;
Expand Down
2 changes: 1 addition & 1 deletion tests/techmap/cellmatch.ys
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ prep
cellmatch -lib gatelib FA A:gate

design -save gold
techmap -map %$cellmatch_map
techmap -map %$cellmatch
design -save gate

select -assert-none ripple_carry/t:FA
Expand Down

0 comments on commit 40d141d

Please sign in to comment.