Differences

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

Link to this comparison view

Next revision
Previous revision
Next revision Both sides next revision
language:interface [2021/11/21 12:41]
rajit created
language:interface [2022/05/13 08:41]
rajit
Line 1: Line 1:
 ===== Constructors for Types ===== ===== Constructors for Types =====
  
-**XXX: this section not yet implemented**+There are cases when it is useful to be able to build more complex types 
 +from existing types. 
 + 
 +**XXX: this section needs to be updated with the new language feature that provides this support**
  
 The special ''ptype'' meta-parameter type is used to pass in types The special ''ptype'' meta-parameter type is used to pass in types
Line 8: Line 11:
 ''ptype'' is the following: ''ptype'' is the following:
  
-<code>+<code act>
 ptype(foo) x; ptype(foo) x;
 </code> </code>
Line 20: Line 23:
 following example: following example:
  
-<code>+<code act>
 // A constructor for a datapath with W-bit ripple connections, and // A constructor for a datapath with W-bit ripple connections, and
 // where each component has M inputs and one output // where each component has M inputs and one output
Line 59: Line 62:
 } }
 </code> </code>
- 
-