aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/main.cc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-06-20 19:37:16 +0200
committerClifford Wolf <clifford@clifford.at>2018-06-20 19:37:16 +0200
commitf2ae9a713ba02f8160e64e199ea4203793f6ed90 (patch)
treea1cda8ed7be2dab7b85087a02a6fe2f9dec8040e /ice40/main.cc
parent9475997a2df199d6dc27375978b56a08908d096e (diff)
parentc515e5da2df1003addc02ffa606f5bda1cf1f475 (diff)
downloadnextpnr-f2ae9a713ba02f8160e64e199ea4203793f6ed90.tar.gz
nextpnr-f2ae9a713ba02f8160e64e199ea4203793f6ed90.tar.bz2
nextpnr-f2ae9a713ba02f8160e64e199ea4203793f6ed90.zip
Merge branch 'master' of gitlab.com:SymbioticEDA/nextpnr
Diffstat (limited to 'ice40/main.cc')
-rw-r--r--ice40/main.cc14
1 files changed, 11 insertions, 3 deletions
diff --git a/ice40/main.cc b/ice40/main.cc
index 626b39c0..8143a902 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) {
@@ -278,7 +286,7 @@ int main(int argc, char *argv[])
if (!pack_design(&ctx) && !ctx.force)
log_error("Packing design failed.\n");
- assign_budget(&ctx);
+ assign_budget(&ctx, 50e6);
print_utilisation(&ctx);
if (!vm.count("pack-only")) {