From ad502bf64b9d4100da131eb76814351b4aa11bce Mon Sep 17 00:00:00 2001 From: gatecat Date: Tue, 19 Jul 2022 09:58:00 +0100 Subject: nexus: Fix CSDECODE parsing Signed-off-by: gatecat --- nexus/pack.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3