2018-06-07 21:49:21 +08:00
|
|
|
/*
|
|
|
|
* nextpnr -- Next Generation Place and Route
|
|
|
|
*
|
2021-06-09 20:09:08 +08:00
|
|
|
* Copyright (C) 2018 Claire Xenia Wolf <claire@yosyshq.com>
|
2018-06-07 21:49:21 +08:00
|
|
|
*
|
|
|
|
* Permission to use, copy, modify, and/or distribute this software for any
|
|
|
|
* purpose with or without fee is hereby granted, provided that the above
|
|
|
|
* copyright notice and this permission notice appear in all copies.
|
|
|
|
*
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
|
|
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
|
|
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
|
|
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
|
|
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
|
|
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
|
|
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
|
|
*
|
|
|
|
*/
|
2018-06-08 03:38:24 +08:00
|
|
|
#ifndef PLACE_H
|
|
|
|
#define PLACE_H
|
2018-06-07 21:49:21 +08:00
|
|
|
|
2019-06-15 19:09:49 +08:00
|
|
|
#include "log.h"
|
2019-06-26 00:19:25 +08:00
|
|
|
#include "nextpnr.h"
|
2018-06-07 21:49:21 +08:00
|
|
|
|
2018-06-12 20:24:59 +08:00
|
|
|
NEXTPNR_NAMESPACE_BEGIN
|
|
|
|
|
2019-06-15 19:09:49 +08:00
|
|
|
struct Placer1Cfg
|
2018-08-04 00:31:54 +08:00
|
|
|
{
|
2018-08-10 00:39:10 +08:00
|
|
|
Placer1Cfg(Context *ctx);
|
2020-02-03 00:01:40 +08:00
|
|
|
float constraintWeight, netShareWeight;
|
2018-11-18 02:19:32 +08:00
|
|
|
int minBelsForGridPick;
|
2018-12-11 02:53:21 +08:00
|
|
|
float startTemp;
|
2018-12-30 17:53:13 +08:00
|
|
|
int timingFanoutThresh;
|
2019-06-28 19:43:55 +08:00
|
|
|
bool timing_driven;
|
|
|
|
int slack_redist_iter;
|
2020-02-02 23:25:20 +08:00
|
|
|
int hpwl_scale_x, hpwl_scale_y;
|
2018-08-04 00:31:54 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
extern bool placer1(Context *ctx, Placer1Cfg cfg);
|
2019-01-24 00:36:53 +08:00
|
|
|
extern bool placer1_refine(Context *ctx, Placer1Cfg cfg);
|
2018-06-13 23:07:42 +08:00
|
|
|
|
2018-06-12 20:24:59 +08:00
|
|
|
NEXTPNR_NAMESPACE_END
|
|
|
|
|
2018-06-08 03:38:24 +08:00
|
|
|
#endif // PLACE_H
|