projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df3e6e1
)
Add consteval support for $_ANDNOT_ and $_ORNOT_
author
Clifford Wolf
<clifford@clifford.at>
Tue, 22 Aug 2017 11:04:05 +0000
(13:04 +0200)
committer
Clifford Wolf
<clifford@clifford.at>
Tue, 22 Aug 2017 11:04:05 +0000
(13:04 +0200)
kernel/celltypes.h
patch
|
blob
|
history
diff --git
a/kernel/celltypes.h
b/kernel/celltypes.h
index b8a4cc74c5778425fc8c7ff4db8c2368f9cd955e..9f775cde76ddf80f544a790c0601d08886b74dbb 100644
(file)
--- 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();
}