diff options
author | David Shah <dave@ds0.me> | 2020-10-22 19:25:17 +0100 |
---|---|---|
committer | David Shah <dave@ds0.me> | 2020-11-30 08:45:28 +0000 |
commit | e6c28877735444c3bf7927a771cafd9f35bdac72 (patch) | |
tree | c9f7fcf99d78ead31707413eed10d54e822d71de /nexus/fasm.cc | |
parent | c89d830e1689116955c9257dd2933ff49eceeaba (diff) | |
download | nextpnr-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.cc | 6 |
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 |