Differences
This shows you the differences between two versions of the page.
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 | + | There are cases when it is useful to be able to build more complex types |
+ | from existing types. | ||
+ | |||
+ | **XXX: this section | ||
The special '' | The special '' | ||
Line 8: | Line 11: | ||
'' | '' | ||
- | < | + | < |
ptype(foo) x; | ptype(foo) x; | ||
</ | </ | ||
Line 20: | Line 23: | ||
following example: | following example: | ||
- | < | + | < |
// A constructor for a datapath with W-bit ripple connections, | // A constructor for a datapath with W-bit ripple connections, | ||
// where each component has M inputs and one output | // where each component has M inputs and one output | ||
Line 59: | Line 62: | ||
} | } | ||
</ | </ | ||
- | |||
- | |||