File tree 2 files changed +14
-2
lines changed
2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -235,7 +235,7 @@ void SimpleDelayModel::read(const std::string& file) {
235
235
// ToNdMatrix is a generic function for converting a Matrix capnproto
236
236
// to a vtr::NdMatrix.
237
237
//
238
- // The use must supply the matrix dimension (2 in this case), the source
238
+ // The user must supply the matrix dimension (5 in this case), the source
239
239
// capnproto type (VprFloatEntry),
240
240
// target C++ type (flat), and a function to convert from the source capnproto
241
241
// type to the target C++ type (ToFloat).
@@ -246,7 +246,7 @@ void SimpleDelayModel::read(const std::string& file) {
246
246
}
247
247
248
248
void SimpleDelayModel::write (const std::string& file) const {
249
- // MallocMessageBuilder object is the generate capnproto message builder,
249
+ // MallocMessageBuilder object generates capnproto message builder,
250
250
// using malloc for buffer allocation.
251
251
::capnp::MallocMessageBuilder builder;
252
252
Original file line number Diff line number Diff line change @@ -235,6 +235,15 @@ class SimpleDelayModel : public PlaceDelayModel {
235
235
public:
236
236
SimpleDelayModel () {}
237
237
238
+ /* *
239
+ * @brief Initializes the `delays_` data structure. This involves retrieving the corresponding delays for each entry from
240
+ * the router lookahead and storing the minimum among them.
241
+ *
242
+ * @param router The router used to retrieve information from the router lookahead.
243
+ * @param placer_opts Placment parameters.
244
+ * @param router_opts Routing parameters.
245
+ * @param longest_length The length of the longest routing track.
246
+ */
238
247
void compute (
239
248
RouterDelayProfiler& router,
240
249
const t_placer_opts& placer_opts,
@@ -245,6 +254,9 @@ class SimpleDelayModel : public PlaceDelayModel {
245
254
246
255
void read (const std::string& /* file*/ ) override ;
247
256
void write (const std::string& /* file*/ ) const override ;
257
+ /* *
258
+ @brief Returns a reference to the array containing the placement delay matrix.
259
+ */
248
260
const vtr::NdMatrix<float , 5 >& delays () const {
249
261
return delays_;
250
262
}
You can’t perform that action at this time.
0 commit comments