2018-06-07 15:49:21 +02:00
|
|
|
/*
|
|
|
|
|
* nextpnr -- Next Generation Place and Route
|
|
|
|
|
*
|
2018-06-22 16:19:17 +02:00
|
|
|
* Copyright (C) 2018 Clifford Wolf <clifford@symbioticeda.com>
|
2018-06-07 15:49:21 +02: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-07 21:38:24 +02:00
|
|
|
#ifndef PLACE_H
|
|
|
|
|
#define PLACE_H
|
2018-06-07 15:49:21 +02:00
|
|
|
|
2019-06-15 13:09:49 +02:00
|
|
|
#include "log.h"
|
2019-06-25 18:19:25 +02:00
|
|
|
#include "nextpnr.h"
|
2018-06-07 15:49:21 +02:00
|
|
|
|
2018-06-12 14:24:59 +02:00
|
|
|
NEXTPNR_NAMESPACE_BEGIN
|
|
|
|
|
|
2019-06-15 13:09:49 +02:00
|
|
|
struct Placer1Cfg
|
2018-08-03 18:31:54 +02:00
|
|
|
{
|
2018-08-09 18:39:10 +02:00
|
|
|
Placer1Cfg(Context *ctx);
|
|
|
|
|
float constraintWeight;
|
2018-11-17 19:19:32 +01:00
|
|
|
int minBelsForGridPick;
|
2018-12-08 14:59:10 +01:00
|
|
|
bool budgetBased;
|
2018-12-10 19:53:21 +01:00
|
|
|
float startTemp;
|
2018-12-30 10:53:13 +01:00
|
|
|
int timingFanoutThresh;
|
2019-06-28 13:43:55 +02:00
|
|
|
bool timing_driven;
|
|
|
|
|
int slack_redist_iter;
|
2018-08-03 18:31:54 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
extern bool placer1(Context *ctx, Placer1Cfg cfg);
|
2019-01-23 17:36:53 +01:00
|
|
|
extern bool placer1_refine(Context *ctx, Placer1Cfg cfg);
|
2018-06-13 17:07:42 +02:00
|
|
|
|
2018-06-12 14:24:59 +02:00
|
|
|
NEXTPNR_NAMESPACE_END
|
|
|
|
|
|
2018-06-07 21:38:24 +02:00
|
|
|
#endif // PLACE_H
|