ecp5: accept lowercase characters in hex strings.

This commit is contained in:
Maya 2022-03-11 23:34:45 +00:00
parent 2a3d0c1d29
commit 9f53bd4278

View File

@ -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)