diff options
author | gatecat <gatecat@ds0.me> | 2021-03-26 13:06:03 +0000 |
---|---|---|
committer | gatecat <gatecat@ds0.me> | 2021-03-26 13:06:03 +0000 |
commit | 0f425aff5a0bbb7c37d126007e6e1ae7f8f8862c (patch) | |
tree | 1fb2b3d3999f478910ef196b35a953a72c7df56a /nexus/fasm.cc | |
parent | 7b1df27c1a75c64e14e50d5f435287ca184425ab (diff) | |
download | nextpnr-0f425aff5a0bbb7c37d126007e6e1ae7f8f8862c.tar.gz nextpnr-0f425aff5a0bbb7c37d126007e6e1ae7f8f8862c.tar.bz2 nextpnr-0f425aff5a0bbb7c37d126007e6e1ae7f8f8862c.zip |
nexus: Fix FASM gen for LIFCL-17
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'nexus/fasm.cc')
-rw-r--r-- | nexus/fasm.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nexus/fasm.cc b/nexus/fasm.cc index d802712d..6fcfbb5d 100644 --- a/nexus/fasm.cc +++ b/nexus/fasm.cc @@ -32,8 +32,9 @@ struct NexusFasmWriter const Context *ctx; std::ostream &out; std::vector<std::string> fasm_ctx; + bool is_lifcl_17; - NexusFasmWriter(const Context *ctx, std::ostream &out) : ctx(ctx), out(out) {} + NexusFasmWriter(const Context *ctx, std::ostream &out) : ctx(ctx), out(out), is_lifcl_17(ctx->args.device.find("LIFCL-17") != std::string::npos) {} // Add a 'dot' prefix to the FASM context stack void push(const std::string &x) { fasm_ctx.push_back(x); } @@ -736,6 +737,8 @@ struct NexusFasmWriter pop(); } else { + if (is_lifcl_17 && (i != 0) && (i != 1)) + continue; // 3.3V banks, this should eventually be set based on the bank config write_bit(stringf("GLOBAL.BANK%d.VCC.3V3", i)); } |