diff options
author | gatecat <gatecat@ds0.me> | 2022-07-19 09:58:00 +0100 |
---|---|---|
committer | gatecat <gatecat@ds0.me> | 2022-07-19 09:58:00 +0100 |
commit | ad502bf64b9d4100da131eb76814351b4aa11bce (patch) | |
tree | d71e20efb0a35959b3fc0b03e040b423bced01b7 /nexus | |
parent | 5667113f8a8f23cf0385a3e0ae88cd844e622443 (diff) | |
download | nextpnr-ad502bf64b9d4100da131eb76814351b4aa11bce.tar.gz nextpnr-ad502bf64b9d4100da131eb76814351b4aa11bce.tar.bz2 nextpnr-ad502bf64b9d4100da131eb76814351b4aa11bce.zip |
nexus: Fix CSDECODE parsing
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'nexus')
-rw-r--r-- | nexus/pack.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nexus/pack.cc b/nexus/pack.cc index 0870bf40..15752171 100644 --- a/nexus/pack.cc +++ b/nexus/pack.cc @@ -43,7 +43,7 @@ Property Arch::parse_lattice_param_from_cell(const CellInfo *ci, IdString prop, // Parse a possibly-Lattice-style (C literal in Verilog string) style parameter Property Arch::parse_lattice_param(const Property &val, IdString prop, int width, const char *ci) const { - if (val.is_string) { + if (val.is_string && !prop.in(id_CSDECODE_A, id_CSDECODE_B, id_CSDECODE_R, id_CSDECODE_W)) { const std::string &s = val.str; Property temp; |