aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/celltypes.h
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2017-08-22 13:04:05 +0200
committerClifford Wolf <clifford@clifford.at>2017-08-22 13:04:05 +0200
commitbce0bb6e43dbf36d451759f279b6968aada5bec8 (patch)
tree9b30e775f215ff2c9e31391518837317e66cafc4 /kernel/celltypes.h
parentdf3e6e1ec99a409c7e3d4e381b55cee7031c009a (diff)
downloadyosys-bce0bb6e43dbf36d451759f279b6968aada5bec8.tar.gz
yosys-bce0bb6e43dbf36d451759f279b6968aada5bec8.tar.bz2
yosys-bce0bb6e43dbf36d451759f279b6968aada5bec8.zip
Add consteval support for $_ANDNOT_ and $_ORNOT_
Diffstat (limited to 'kernel/celltypes.h')
-rw-r--r--kernel/celltypes.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/celltypes.h b/kernel/celltypes.h
index b8a4cc74c..9f775cde7 100644
--- a/kernel/celltypes.h
+++ b/kernel/celltypes.h
@@ -322,6 +322,10 @@ struct CellTypes
return const_xor(arg1, arg2, false, false, 1);
if (type == "$_XNOR_")
return const_xnor(arg1, arg2, false, false, 1);
+ if (type == "$_ANDNOT_")
+ return const_and(arg1, eval_not(arg2), false, false, 1);
+ if (type == "$_ORNOT_")
+ return const_or(arg1, eval_not(arg2), false, false, 1);
log_abort();
}