Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
xtofalex committed Nov 7, 2023
1 parent 915a554 commit e86b667
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,10 @@ MODEL /* ins(); */
void addInstance(const std::string& instanceName)
```
will be called 3 times with **instanceName=ins1, ins2, ins3**
will be called 3 times with **instanceName=ins1, ins2, ins3** for following declaration:
```verilog
/* MODEL */ ins(), ins2(), ins3();
MODEL ins(), ins2(), ins3();
```

```c++
Expand All @@ -195,20 +195,38 @@ void endInstantiation();

is called at the end of an instance declaration and can be used for cleaning purposes.

***

```c++
void addInstanceConnection(const std::string& portName, const Expression& expression);
```
is called for
```verilog
Model ins(.p1(n1), .p2(n2), .p3(n3));
```

***

```c++
void addOrderedInstanceConnection(size_t portIndex, const Expression& expression);
```
```verilog
Model ins(n1, n2, n3);
```

***

```c++
void addParameterAssignment(const std::string& parameterName, const Expression& expression);
```
```verilog
Model #param instance();
```

<div align="right">[ <a href="#naja-verilog">↑ Back to top ↑</a> ]</div>

***
Expand Down

0 comments on commit e86b667

Please sign in to comment.