Skip to content

Commit

Permalink
Move numDiffs out
Browse files Browse the repository at this point in the history
Signed-off-by: Eddie Hung <[email protected]>
  • Loading branch information
eddieh-xlnx committed Jan 4, 2024
1 parent 13f4470 commit eaccc26
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/com/xilinx/fpga24_routing_contest/CheckPhysNetlist.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,19 +57,20 @@ public static void main(String[] args) throws IOException, InterruptedException

// Read the routed and unrouted Physical Netlists
Design routedDesign = PhysNetlistReader.readPhysNetlist(args[1]);
int numDiffs = 0;
if (System.getenv("CHECK_PHYS_NETLIST_DIFF_MOCK_RESULT").equals("true")) {
System.out.println("::warning file=" + args[1] + "::CheckPhysNetlist's DesignComparator not run because CHECK_PHYS_NETLIST_DIFF_MOCK_RESULT is set");
} else {
Design unroutedDesign = PhysNetlistReader.readPhysNetlist(args[2]);

DesignComparator dc = new DesignComparator();
dc.setComparePIPs(false);
int numDiffs = dc.compareDesigns(unroutedDesign, routedDesign);
if (numDiffs == 0) {
System.out.println("INFO: No non-PIP differences found between routed and unrouted netlists");
} else {
System.err.println("ERROR: Detected " + numDiffs + " non-PIP differences between " + args[1] + " and " + args[2]);
}
numDiffs = dc.compareDesigns(unroutedDesign, routedDesign);
}
if (numDiffs == 0) {
System.out.println("INFO: No non-PIP differences found between routed and unrouted netlists");
} else {
System.err.println("ERROR: Detected " + numDiffs + " non-PIP differences between " + args[1] + " and " + args[2]);
}

// Read the Logical Netlist
Expand Down

0 comments on commit eaccc26

Please sign in to comment.