Some Details » History » Version 2
Alexander Kamkin, 08/01/2014 11:51 AM
1 | 1 | Alexander Kamkin | h1. Some Details |
---|---|---|---|
2 | |||
3 | h2. Variable Declarations |
||
4 | |||
5 | Each declaration has a set of namesakes (declarations with the same name). Take a look to an example below. |
||
6 | |||
7 | <pre><code class="c"> |
||
8 | // A variable can be an output and a register (or a wire) at the same time. |
||
9 | output var; |
||
10 | reg var; |
||
11 | </code></pre> |
||
12 | |||
13 | In this case, two declarations will be created: |
||
14 | |||
15 | # ⟨ _ID_ ~1~, _name_ = "var", _type_ = "output", _namesakes_ = { _ID_ ~2~ } ⟩ |
||
16 | 2 | Alexander Kamkin | # ⟨ _ID_ ~2~, _name_ = "var", _type_ = "output", _namesakes_ = { _ID_ ~1~ } ⟩ |