Added .barbuf support to abc BLIF parser

This commit is contained in:
Clifford Wolf 2015-05-13 06:45:12 +02:00
parent dae00e1d83
commit c2f30e0de4
1 changed files with 20 additions and 0 deletions

View File

@ -144,6 +144,26 @@ RTLIL::Design *abc_parse_blif(FILE *f, std::string dff_name)
continue;
}
if (!strcmp(cmd, ".barbuf"))
{
char *p = strtok(NULL, " \t\r\n");
if (p == NULL)
goto error;
char *q = strtok(NULL, " \t\r\n");
if (q == NULL)
goto error;
if (module->wires_.count(RTLIL::escape_id(p)) == 0)
module->addWire(RTLIL::escape_id(p));
if (module->wires_.count(RTLIL::escape_id(q)) == 0)
module->addWire(RTLIL::escape_id(q));
module->connect(module->wires_.at(RTLIL::escape_id(q)), module->wires_.at(RTLIL::escape_id(p)));
continue;
}
if (!strcmp(cmd, ".names"))
{
char *p;