diff options
author | Eddie Hung <eddie@fpgeh.com> | 2019-05-28 09:35:45 -0700 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2019-05-28 09:35:45 -0700 |
commit | 914074a07c14709523cc72084e1673bd3c2eaf30 (patch) | |
tree | 2e2d19b812f870f8d10cf94f52f97a4f2887ddfb /kernel | |
parent | 6931a3a47da5119ac44449ef117f3985e2fda417 (diff) | |
download | yosys-914074a07c14709523cc72084e1673bd3c2eaf30.tar.gz yosys-914074a07c14709523cc72084e1673bd3c2eaf30.tar.bz2 yosys-914074a07c14709523cc72084e1673bd3c2eaf30.zip |
Update from master
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/cellaigs.cc | 2 | ||||
-rw-r--r-- | kernel/celltypes.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/kernel/cellaigs.cc b/kernel/cellaigs.cc index 5fd76afe5..26c625f89 100644 --- a/kernel/cellaigs.cc +++ b/kernel/cellaigs.cc @@ -453,7 +453,7 @@ Aig::Aig(Cell *cell) int B = mk.inport("\\B"); int C = mk.inport("\\C"); int D = mk.inport("\\D"); - int Y = mk.nand_gate(mk.nor_gate(A, B), mk.nor_gate(C, D)); + int Y = mk.nand_gate(mk.or_gate(A, B), mk.or_gate(C, D)); mk.outport(Y, "\\Y"); goto optimize; } diff --git a/kernel/celltypes.h b/kernel/celltypes.h index 89df36222..4e91eddda 100644 --- a/kernel/celltypes.h +++ b/kernel/celltypes.h @@ -469,7 +469,7 @@ struct CellTypes if (cell->type == "$_AOI4_") return eval_not(const_or(const_and(arg1, arg2, false, false, 1), const_and(arg3, arg4, false, false, 1), false, false, 1)); if (cell->type == "$_OAI4_") - return eval_not(const_and(const_or(arg1, arg2, false, false, 1), const_and(arg3, arg4, false, false, 1), false, false, 1)); + return eval_not(const_and(const_or(arg1, arg2, false, false, 1), const_or(arg3, arg4, false, false, 1), false, false, 1)); log_assert(arg4.bits.size() == 0); return eval(cell, arg1, arg2, arg3, errp); |