Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
std:gates [2026/03/18 11:20] rajitstd:gates [2026/03/18 11:22] (current) rajit
Line 12: Line 12:
 </code> </code>
 This is an N-input AND tree constructed using a mixture of two and three input gates. If the ''invert'' parameter is true, this creates a NAND operation instead of an AND operation. This is an N-input AND tree constructed using a mixture of two and three input gates. If the ''invert'' parameter is true, this creates a NAND operation instead of an AND operation.
 +
 +<code act>
 +export template<pint N; pbool invert> defproc ctree (bool? in[N]; bool out);
 +</code>
 +This is an N-input completion tree (C-element tree) constructed using a mixture of two and three input gates. If the ''invert'' parameter is true, this creates a completion tree whose output is inverted.