aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5/bitstream.cc
diff options
context:
space:
mode:
authorMaya <96890070+VioletEternity@users.noreply.github.com>2022-03-11 23:34:45 +0000
committerMaya <96890070+VioletEternity@users.noreply.github.com>2022-03-11 23:34:45 +0000
commit9f53bd42788460d6bebd4f2f50af32a710667c93 (patch)
tree2a26fec7751e36df800a0d829672adeb63a14e33 /ecp5/bitstream.cc
parent2a3d0c1d29f99c96004564a74c0dc04f7713d870 (diff)
downloadnextpnr-9f53bd42788460d6bebd4f2f50af32a710667c93.tar.gz
nextpnr-9f53bd42788460d6bebd4f2f50af32a710667c93.tar.bz2
nextpnr-9f53bd42788460d6bebd4f2f50af32a710667c93.zip
ecp5: accept lowercase characters in hex strings.
Diffstat (limited to 'ecp5/bitstream.cc')
-rw-r--r--ecp5/bitstream.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ecp5/bitstream.cc b/ecp5/bitstream.cc
index b1c60ccb..40d843b9 100644
--- a/ecp5/bitstream.cc
+++ b/ecp5/bitstream.cc
@@ -131,7 +131,7 @@ static void tie_cib_signal(Context *ctx, ChipConfig &cc, WireId wire, bool value
inline int chtohex(char c)
{
static const std::string hex = "0123456789ABCDEF";
- return hex.find(c);
+ return hex.find(std::toupper(c));
}
std::vector<bool> parse_init_str(const Property &p, int length, const char *cellname)