2018-12-01 19:54:26 +08:00
|
|
|
/*
|
|
|
|
* nextpnr -- Next Generation Place and Route
|
|
|
|
*
|
|
|
|
* Copyright (C) 2018 David Shah <david@symbioticeda.com>
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "nextpnr.h"
|
2018-12-02 00:50:47 +08:00
|
|
|
#include "settings.h"
|
2018-12-01 19:54:26 +08:00
|
|
|
|
|
|
|
NEXTPNR_NAMESPACE_BEGIN
|
|
|
|
|
|
|
|
struct TimingOptCfg : public Settings
|
|
|
|
{
|
2018-12-02 20:01:43 +08:00
|
|
|
TimingOptCfg(Context *ctx) : Settings(ctx) {}
|
|
|
|
|
2018-12-01 21:22:57 +08:00
|
|
|
// The timing optimiser will *only* optimise cells of these types
|
|
|
|
// Normally these would only be logic cells (or tiles if applicable), the algorithm makes little sense
|
|
|
|
// for other cell types
|
2018-12-02 00:50:47 +08:00
|
|
|
std::unordered_set<IdString> cellTypes;
|
2018-12-01 19:54:26 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
extern bool timing_opt(Context *ctx, TimingOptCfg cfg);
|
|
|
|
|
|
|
|
NEXTPNR_NAMESPACE_END
|