aboutsummaryrefslogtreecommitdiffstats
path: root/nexus/pack.cc
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2020-10-03 15:13:53 +0100
committerDavid Shah <dave@ds0.me>2020-11-30 08:45:27 +0000
commit682351df7fc22db2918d1b9ca9cd7ce0ba890360 (patch)
tree05caa0221d40e759907740bc0cbd373f7f3427ac /nexus/pack.cc
parente54aa836a4b56462497e354b3a94472c49312c68 (diff)
downloadnextpnr-682351df7fc22db2918d1b9ca9cd7ce0ba890360.tar.gz
nextpnr-682351df7fc22db2918d1b9ca9cd7ce0ba890360.tar.bz2
nextpnr-682351df7fc22db2918d1b9ca9cd7ce0ba890360.zip
nexus: Updates and fixes
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'nexus/pack.cc')
-rw-r--r--nexus/pack.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/nexus/pack.cc b/nexus/pack.cc
index 46295597..bd237117 100644
--- a/nexus/pack.cc
+++ b/nexus/pack.cc
@@ -56,9 +56,9 @@ Property Arch::parse_lattice_param(const CellInfo *ci, IdString prop, int width,
if (c >= '0' && c <= '9')
nibble = (c - '0');
else if (c >= 'a' && c <= 'f')
- nibble = (c - 'a');
+ nibble = (c - 'a') + 10;
else if (c >= 'A' && c <= 'F')
- nibble = (c - 'A');
+ nibble = (c - 'A') + 10;
else
log_error("Invalid hex digit '%c' in property %s.%s\n", c, nameOf(ci), nameOf(prop));
for (int j = 0; j < 4; j++)