Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
intro_example:namespace [2020/12/02 06:00] – external edit 127.0.0.1 | intro_example:namespace [2022/05/13 13:20] (current) – rajit | ||
---|---|---|---|
Line 7: | Line 7: | ||
(a) For simple projects, design files containing building blocks can be imported using keyword '' | (a) For simple projects, design files containing building blocks can be imported using keyword '' | ||
- | < | + | < |
defproc nand2 (bool? a,b; bool! y) | defproc nand2 (bool? a,b; bool! y) | ||
{ | { | ||
Line 36: | Line 36: | ||
This file can be imported in a new ACT file '' | This file can be imported in a new ACT file '' | ||
- | < | + | < |
import " | import " | ||
Line 54: | Line 54: | ||
The following example creates a namespace gates in file '' | The following example creates a namespace gates in file '' | ||
- | < | + | < |
namespace gates | namespace gates | ||
{ | { | ||
Line 89: | Line 89: | ||
As shown below, this library is imported in a new ACT file '' | As shown below, this library is imported in a new ACT file '' | ||
- | < | + | < |
import " | import " | ||
Line 108: | Line 108: | ||
Finally, ACT supports another import format that is similar to those provided by object-oriented languages like Python and Java. Since '' | Finally, ACT supports another import format that is similar to those provided by object-oriented languages like Python and Java. Since '' | ||
- | < | + | < |
import gates; | import gates; | ||
Line 129: | Line 129: | ||
Finally, if you are going to be using the '' | Finally, if you are going to be using the '' | ||
- | < | + | < |
import gates; | import gates; | ||
open gates; | open gates; |