Skip to content

Commit 12a93d0

Browse files
author
shypark98
committed
fix write_artnet.ok
Signed-off-by: shypark98 <[email protected]>
1 parent b613790 commit 12a93d0

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

src/par/src/ArtNetSpec.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,12 +454,13 @@ void PartitionMgr::Partitioning(const std::shared_ptr<TritonPart>& triton_part,
454454
// Make the iteration order stable
455455
std::vector<odb::dbNet*> cluster_nets_sorted(cluster_nets.begin(),
456456
cluster_nets.end());
457-
// std::sort(cluster_nets_sorted.begin(), cluster_nets_sorted.end());
457+
std::sort(cluster_nets_sorted.begin(), cluster_nets_sorted.end());
458+
/*
458459
std::sort(
459460
cluster_nets_sorted.begin(),
460461
cluster_nets_sorted.end(),
461462
[](odb::dbNet* a, odb::dbNet* b) { return a->getName() < b->getName(); });
462-
463+
*/
463464
for (odb::dbNet* net : cluster_nets_sorted) {
464465
int driver_id = -1;
465466
std::set<int> loads_id;

src/par/test/write_artnet.ok

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,14 @@
33
getFromODB done
44
getFromSTA done
55
getFromPAR done
6+
#instances: 415
7+
#macros: 0
8+
#primary inputs: 36
9+
#primary outputs: 18
10+
Ratio of Region I: 0.5
11+
Rent's exponent: 0.5446304
12+
Average #pins per instances: 3.2
13+
Ratio of #sequential instances to the #instances: 0.08192771
14+
Maximum depth of any timing path: 17
15+
Maximum depth of macro path: 0
616
No differences found.

0 commit comments

Comments
 (0)