mirror of https://github.com/YosysHQ/nextpnr.git
dcu: Fix bitstream param handling
Signed-off-by: David Shah <dave@ds0.me>
This commit is contained in:
parent
4f8dfd8e1b
commit
c9d83ec08b
|
|
@ -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++) {
|
for (int i = 0; i < int(str.length()) - 2; i++) {
|
||||||
char c = str.at((str.size() - 1) - i);
|
char c = str.at((str.size() - 1) - i);
|
||||||
NPNR_ASSERT(c == '0' || c == '1');
|
NPNR_ASSERT(c == '0' || c == '1');
|
||||||
|
word.at(i) = (c == '1');
|
||||||
}
|
}
|
||||||
} else if (base == "0x") {
|
} else if (base == "0x") {
|
||||||
for (int i = 0; i < int(str.length()) - 2; i++) {
|
for (int i = 0; i < int(str.length()) - 2; i++) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue