aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormyrtle <gatecat@ds0.me>2022-07-19 10:33:15 +0100
committerGitHub <noreply@github.com>2022-07-19 10:33:15 +0100
commitdfea954754966fccb65ca30592ce8c15dad45267 (patch)
treed71e20efb0a35959b3fc0b03e040b423bced01b7
parent5667113f8a8f23cf0385a3e0ae88cd844e622443 (diff)
parentad502bf64b9d4100da131eb76814351b4aa11bce (diff)
downloadnextpnr-dfea954754966fccb65ca30592ce8c15dad45267.tar.gz
nextpnr-dfea954754966fccb65ca30592ce8c15dad45267.tar.bz2
nextpnr-dfea954754966fccb65ca30592ce8c15dad45267.zip
Merge pull request #1005 from YosysHQ/gatecat/nexus-ram-fixes
nexus: Fix CSDECODE parsing
-rw-r--r--nexus/pack.cc2
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;