Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
intro_example:loops [2025/05/18 14:51] – [Array, loops and selection] rajitintro_example:loops [2025/08/24 16:48] (current) – [Array, loops and selection] rajit
Line 17: Line 17:
   ( i : 8 : fa[i](a[i], b[i], c[i], s[i], c[i+1]);)     ( i : 8 : fa[i](a[i], b[i], c[i], s[i], c[i+1]);)  
 } }
 +</code>
 +
 +In this example we assume that ''adder.act'' has a full adder definition with a prototype that looks like this:
 +<code act>
 +defproc fulladder (bool? a, b, ci; bool! s, co)
 +{ ... }
 </code> </code>