diff options
author | David Shah <davey1576@gmail.com> | 2018-06-20 17:08:57 +0200 |
---|---|---|
committer | David Shah <davey1576@gmail.com> | 2018-06-20 17:08:57 +0200 |
commit | 4fc962504028f581cc1db9ada5770900d8dacae2 (patch) | |
tree | 3959a054a677dbf24ff8e573b3b5d6475e1fd217 /ice40/main.cc | |
parent | 15c5c9c42549f61679a6a145d41f0d84208d457d (diff) | |
download | nextpnr-4fc962504028f581cc1db9ada5770900d8dacae2.tar.gz nextpnr-4fc962504028f581cc1db9ada5770900d8dacae2.tar.bz2 nextpnr-4fc962504028f581cc1db9ada5770900d8dacae2.zip |
WIP: adding timing budget to placer
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'ice40/main.cc')
-rw-r--r-- | ice40/main.cc | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/ice40/main.cc b/ice40/main.cc index 13d8ac0b..d83018ef 100644 --- a/ice40/main.cc +++ b/ice40/main.cc @@ -224,8 +224,16 @@ int main(int argc, char *argv[]) if (vm.count("tmfuzz")) { std::vector<WireId> src_wires, dst_wires; - for (auto w : ctx.getWires()) - src_wires.push_back(w); + /*for (auto w : ctx.getWires()) + src_wires.push_back(w);*/ + for (auto b : ctx.getBels()) { + if (ctx.getBelType(b) == TYPE_ICESTORM_LC) { + src_wires.push_back(ctx.getWireBelPin(b, PIN_O)); + } + if (ctx.getBelType(b) == TYPE_SB_IO) { + src_wires.push_back(ctx.getWireBelPin(b, PIN_D_IN_0)); + } + } for (auto b : ctx.getBels()) { if (ctx.getBelType(b) == TYPE_ICESTORM_LC) { |