projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45af4a4
)
Fixed BLIF parser for empty port assignments
author
Clifford Wolf
<clifford@clifford.at>
Wed, 24 Feb 2016 08:16:43 +0000
(09:16 +0100)
committer
Clifford Wolf
<clifford@clifford.at>
Wed, 24 Feb 2016 08:16:43 +0000
(09:16 +0100)
frontends/blif/blifparse.cc
patch
|
blob
|
history
diff --git
a/frontends/blif/blifparse.cc
b/frontends/blif/blifparse.cc
index 2029584960d14311be6a9c754079a6b03bcfca06..ee0e771e917a2cbfbd70a3a990758acef6e7459b 100644
(file)
--- a/
frontends/blif/blifparse.cc
+++ b/
frontends/blif/blifparse.cc
@@
-267,10
+267,10
@@
void parse_blif(RTLIL::Design *design, std::istream &f, std::string dff_name, bo
while ((p = strtok(NULL, " \t\r\n")) != NULL) {
char *q = strchr(p, '=');
- if (q == NULL || !q[0]
|| !q[1]
)
+ if (q == NULL || !q[0])
goto error;
*(q++) = 0;
- cell->setPort(RTLIL::escape_id(p),
blif_wire(q
));
+ cell->setPort(RTLIL::escape_id(p),
*q ? blif_wire(q) : SigSpec(
));
}
obj_attributes = &cell->attributes;