diff options
author | Clifford Wolf <clifford@clifford.at> | 2016-02-24 09:16:43 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2016-02-24 09:16:43 +0100 |
commit | 22c549ab37233eedf783f130a3dbd91749d98222 (patch) | |
tree | 5e1ab8353ca1719520bec1e3bbb25e708f31d805 /frontends/blif | |
parent | 45af4a4acf6d3bc1f83b65f1cd103c0226f30b8b (diff) | |
download | yosys-22c549ab37233eedf783f130a3dbd91749d98222.tar.gz yosys-22c549ab37233eedf783f130a3dbd91749d98222.tar.bz2 yosys-22c549ab37233eedf783f130a3dbd91749d98222.zip |
Fixed BLIF parser for empty port assignments
Diffstat (limited to 'frontends/blif')
-rw-r--r-- | frontends/blif/blifparse.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/blif/blifparse.cc b/frontends/blif/blifparse.cc index 202958496..ee0e771e9 100644 --- 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; |