aboutsummaryrefslogtreecommitdiffstats
path: root/nexus/fasm.cc
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2020-10-22 19:25:17 +0100
committerDavid Shah <dave@ds0.me>2020-11-30 08:45:28 +0000
commite6c28877735444c3bf7927a771cafd9f35bdac72 (patch)
treec9f7fcf99d78ead31707413eed10d54e822d71de /nexus/fasm.cc
parentc89d830e1689116955c9257dd2933ff49eceeaba (diff)
downloadnextpnr-e6c28877735444c3bf7927a771cafd9f35bdac72.tar.gz
nextpnr-e6c28877735444c3bf7927a771cafd9f35bdac72.tar.bz2
nextpnr-e6c28877735444c3bf7927a771cafd9f35bdac72.zip
nexus: Basic support for carries
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'nexus/fasm.cc')
-rw-r--r--nexus/fasm.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/nexus/fasm.cc b/nexus/fasm.cc
index bd710ae4..72efa5da 100644
--- a/nexus/fasm.cc
+++ b/nexus/fasm.cc
@@ -22,6 +22,8 @@
#include "nextpnr.h"
#include "util.h"
+#include <queue>
+
NEXTPNR_NAMESPACE_BEGIN
namespace {
struct NexusFasmWriter
@@ -291,12 +293,10 @@ struct NexusFasmWriter
push(stringf("SLICE%c", slice));
if (cell->params.count(id_INIT))
write_int_vector(stringf("K%d.INIT[15:0]", k), int_or_default(cell->params, id_INIT, 0), 16);
-#if 0
if (cell->lutInfo.is_carry) {
write_bit("MODE.CCU2");
- write_enum(cell, "INJECT", "NO");
+ write_enum(cell, "CCU2.INJECT", "NO");
}
-#endif
pop(2);
}
// Write config for an OXIDE_FF cell