Support PULLUP/DOWN and BUFZ in BLIF backend

This commit is contained in:
Yury Gribov 2016-06-11 07:17:25 +03:00 committed by Stephen Williams
parent 8234f1845d
commit 2d5a48c579
1 changed files with 14 additions and 0 deletions

View File

@ -96,6 +96,20 @@ static int do_print_logic_gate(FILE*fd, ivl_net_logic_t net, unsigned bit)
fprintf(fd, "0 1\n"); fprintf(fd, "0 1\n");
break; break;
case IVL_LO_PULLDOWN:
assert(ivl_logic_pins(net)==1);
fprintf(fd, "0\n");
break;
case IVL_LO_PULLUP:
assert(ivl_logic_pins(net)==1);
fprintf(fd, "1\n");
break;
case IVL_LO_BUFZ:
assert(ivl_logic_pins(net)==2);
fprintf(fd, "1 1\n");
break;
default: default:
fprintf(fd, "# ERROR: Logic type %d not handled\n", ivl_logic_type(net)); fprintf(fd, "# ERROR: Logic type %d not handled\n", ivl_logic_type(net));
rc += 1; rc += 1;