aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5
diff options
context:
space:
mode:
Diffstat (limited to 'ecp5')
-rw-r--r--ecp5/bitstream.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/ecp5/bitstream.cc b/ecp5/bitstream.cc
index 4fee6802..c5eca14f 100644
--- a/ecp5/bitstream.cc
+++ b/ecp5/bitstream.cc
@@ -493,6 +493,7 @@ static std::vector<bool> parse_config_str(std::string str, int length) {
for (int i = 0; i < int(str.length()) - 2; i++) {
char c = str.at((str.size() - 1) - i);
NPNR_ASSERT(c == '0' || c == '1');
+ word.at(i) = (c == '1');
}
} else if (base == "0x") {
for (int i = 0; i < int(str.length()) - 2; i++) {