Download OpenTimer_OpenTimer/example/fcpc26/fcpc26.cpp from SAIFIINDUSTRIES/verilog_data-2: direct link, hf CLI and curl.
- Browser
- Download file 962 Bytes
-
https://huggingface.co/datasets/SAIFIINDUSTRIES/verilog_data-2/resolve/main/OpenTimer_OpenTimer/example/fcpc26/fcpc26.cpp
- Command line
-
hf download hf://datasets/SAIFIINDUSTRIES/verilog_data-2/OpenTimer_OpenTimer/example/fcpc26/fcpc26.cpp
-
curl -L -o fcpc26.cpp https://huggingface.co/datasets/SAIFIINDUSTRIES/verilog_data-2/resolve/main/OpenTimer_OpenTimer/example/fcpc26/fcpc26.cpp
962 Bytes
| // This program demonstrates the basica usage of OpenTimer C++ API | |
| // to get the critical path information of a simple sequential design. | |
| // | |
| // Design : simple.v | |
| // SDC : simple.sdc | |
| // Library: osu018_stdcells.lib | |
| int main(int argc, char *argv[]) { | |
| // create a timer object | |
| ot::Timer timer; | |
| // Read design | |
| timer.read_celllib("osu018_stdcells.lib", ot::MIN) | |
| .read_celllib("osu018_stdcells.lib", ot::MAX) | |
| .read_verilog("simple.v") | |
| .read_sdc("simple.sdc"); | |
| // get the top-5 worst critical paths | |
| auto paths = timer.report_timing(5); | |
| for(size_t i=0; i<paths.size(); ++i) { | |
| std::cout << "----- Critical Path " << i << " -----\n"; | |
| std::cout << paths[i] << '\n'; | |
| } | |
| // dump the timing graph to dot format for debugging | |
| //timer.dump_graph(std::cout); | |
| timer.dump_at(std::cout); | |
| timer.dump_power(std::cout); | |
| timer.dump_fcpc26(std::cout, 10); | |
| return 0; | |
| } | |