aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5/arch_place.cc
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2019-08-05 16:31:35 +0100
committerDavid Shah <dave@ds0.me>2019-08-05 17:22:37 +0100
commitec48f8f464a63dece47e9af903098387088c68c5 (patch)
tree9573b37b3bb55d2e503817e427269d12102293d4 /ecp5/arch_place.cc
parent1839a3a770a71c928b92bf876e04728d2649e425 (diff)
downloadnextpnr-ec48f8f464a63dece47e9af903098387088c68c5.tar.gz
nextpnr-ec48f8f464a63dece47e9af903098387088c68c5.tar.bz2
nextpnr-ec48f8f464a63dece47e9af903098387088c68c5.zip
ecp5: New Property interface
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'ecp5/arch_place.cc')
-rw-r--r--ecp5/arch_place.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ecp5/arch_place.cc b/ecp5/arch_place.cc
index e5c9b31f..b5c11851 100644
--- a/ecp5/arch_place.cc
+++ b/ecp5/arch_place.cc
@@ -162,7 +162,7 @@ void Arch::permute_luts()
connect_port(getCtx(), orig_nets.at(inputs.at(i).second), ci, p);
ci->params[id(p.str(this) + "MUX")] = p.str(this);
} else {
- ci->params[id(p.str(this) + "MUX")] = "1";
+ ci->params[id(p.str(this) + "MUX")] = std::string("1");
}
}
// Rewrite function
@@ -177,7 +177,7 @@ void Arch::permute_luts()
if (old_init & (1 << old_index))
new_init |= (1 << i);
}
- ci->params[id("LUT" + std::to_string(lut) + "_INITVAL")] = std::to_string(new_init);
+ ci->params[id("LUT" + std::to_string(lut) + "_INITVAL")] = Property(new_init, 16);
};
for (auto cell : sorted(cells)) {