Skip to content

Commit e93d898

Browse files
add file comments for placer.h and place_log_util.h
1 parent 39ad04e commit e93d898

File tree

3 files changed

+35
-4
lines changed

3 files changed

+35
-4
lines changed

vpr/src/place/place.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef VPR_PLACE_H
2-
#define VPR_PLACE_H
1+
2+
#pragma once
33

44
#include "vpr_types.h"
55

@@ -13,5 +13,3 @@ void try_place(const Netlist<>& net_list,
1313
std::vector<t_segment_inf>& segment_inf,
1414
const std::vector<t_direct_inf>& directs,
1515
bool is_flat);
16-
17-
#endif

vpr/src/place/place_log_util.h

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
/**
2+
* @file placement_log_printer.h
3+
* @brief Declares the PlacementLogPrinter class and associated utilities for logging
4+
* and reporting placement-related statistics and timing analysis results.
5+
*
6+
* This file provides tools to monitor and report the progress and results of the placement stage.
7+
*
8+
* ### Key Components:
9+
* - **PlacementLogPrinter**:
10+
* - A utility class for logging placement status, resource utilization, and swap statistics.
11+
* - Prints detailed statistics during the placement process, including initial and post-placement states.
12+
* - Supports a "quiet mode" to suppress output.
13+
*
14+
* ### Integration:
15+
* The tools in this file integrate with the Placer class to provide information about
16+
* the placement process for debugging, optimization, and analysis purposes.
17+
*/
118

219
#pragma once
320

vpr/src/place/placer.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/**
2+
* @file placer.h
3+
* @brief Declares the Placer class, which encapsulates the functionality, data structures,
4+
* and algorithms required for the placement stage.
5+
*
6+
* The Placer class initializes necessary objects, performs an initial placement,
7+
* and runs simulated annealing optimization. This optimization minimizes
8+
* wirelength (bounding box) and timing costs to achieve an efficient placement solution.
9+
*
10+
* Key features of the Placer class:
11+
* - Encapsulates all placement-related variables, cost functions, and data structures.
12+
* - Supports optional NoC (Network-on-Chip) cost optimizations if enabled.
13+
* - Interfaces with timing analysis, placement delay calculation.
14+
* - Provides a mechanism for checkpointing the placement state.
15+
* - Includes debugging and validation utilities to verify the correctness of placement.
16+
*/
117

218
#pragma once
319

0 commit comments

Comments
 (0)