Skip to content

Commit

Permalink
backed up
Browse files Browse the repository at this point in the history
  • Loading branch information
Randy1005 committed Sep 23, 2023
1 parent 8a2256e commit 3c0c51a
Show file tree
Hide file tree
Showing 21 changed files with 842,683 additions and 2 deletions.
30 changes: 30 additions & 0 deletions examples/ac97_ctrl/ac97_ctrl.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#include <ot/timer/timer.hpp>

int main(int argc, char *argv[]) {

// create a timer object
ot::Timer timer;

// Read design
timer.read_celllib("ac97_ctrl_Early.lib", ot::MIN)
.read_celllib("ac97_ctrl_Late.lib", ot::MAX)
.read_verilog("ac97_ctrl.v")
.read_spef("ac97_ctrl.spef");

// get the top-5 worst critical paths
auto paths = timer.report_timing(10);

for(size_t i=0; i<paths.size(); ++i) {
std::cout << "----- Critical Path " << i << " -----\n";
std::cout << paths[i] << '\n';
}


std::ofstream ofs("ac97_ctrl.edges");
timer.dump_edge_insertions(ofs);

return 0;
}



25,803 changes: 25,803 additions & 0 deletions examples/ac97_ctrl/ac97_ctrl.edges

Large diffs are not rendered by default.

Loading

0 comments on commit 3c0c51a

Please sign in to comment.