-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
104 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,63 @@ | ||
<?xml version="1.0"?> | ||
<block> | ||
<name>verilog_axi_ii</name> | ||
<key>verilog_verilog_axi_ii</key> | ||
<category>[verilog]</category> | ||
<name>Verilog AXI</name> | ||
<key>verilog_axi_ii</key> | ||
<category>[Verilog]</category> | ||
<import>import verilog</import> | ||
<make>verilog.verilog_axi_ii($*filename)</make> | ||
<!-- Make one 'param' node for every Parameter you want settable from the GUI. | ||
Sub-nodes: | ||
* name | ||
* key (makes the value accessible as $keyname, e.g. in the make node) | ||
* type --> | ||
<make>verilog.verilog_axi_$(type.fcn)($file, $overwrite, $IO_ratio, $verilator_options, $skip_output_items)</make> | ||
<param> | ||
<name>...</name> | ||
<key>...</key> | ||
<type>...</type> | ||
<name>Verilog File</name> | ||
<key>file</key> | ||
<value/> | ||
<type>file_open</type> | ||
</param> | ||
<param> | ||
<name>IO Type</name> | ||
<key>type</key> | ||
<type>enum</type> | ||
<option> | ||
<name>Int</name> | ||
<key>int</key> | ||
<opt>fcn:ii</opt> | ||
</option> | ||
</param> | ||
<param> | ||
<name>Overwrite</name> | ||
<key>overwrite</key> | ||
<value>False</value> | ||
<type>enum</type> | ||
<option> | ||
<name>Yes</name> | ||
<key>True</key> | ||
</option> | ||
<option> | ||
<name>No</name> | ||
<key>False</key> | ||
</option> | ||
</param> | ||
<param> | ||
<name>IO Ratio</name> | ||
<key>IO_ratio</key> | ||
<value>1.0</value> | ||
<type>float</type> | ||
</param> | ||
<param> | ||
<name>Verilator Options</name> | ||
<key>verilator_options</key> | ||
<value/> | ||
<type>string</type> | ||
</param> | ||
<param> | ||
<name>Skip Output</name> | ||
<key>skip_output_items</key> | ||
<value>0</value> | ||
<type>int</type> | ||
</param> | ||
|
||
<!-- Make one 'sink' node per input. Sub-nodes: | ||
* name (an identifier for the GUI) | ||
* type | ||
* vlen | ||
* optional (set to 1 for optional inputs) --> | ||
<sink> | ||
<name>in</name> | ||
<type><!-- e.g. int, float, complex, byte, short, xxx_vector, ...--></type> | ||
<type>$type</type> | ||
</sink> | ||
|
||
<!-- Make one 'source' node per output. Sub-nodes: | ||
* name (an identifier for the GUI) | ||
* type | ||
* vlen | ||
* optional (set to 1 for optional inputs) --> | ||
<source> | ||
<name>out</name> | ||
<type><!-- e.g. int, float, complex, byte, short, xxx_vector, ...--></type> | ||
<type>$type</type> | ||
</source> | ||
</block> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
id: verilog_verilog_axi_xx | ||
label: Verilog AXI | ||
flags: [ python, cpp ] | ||
|
||
parameters: | ||
- id: file | ||
label: Verilog File | ||
dtype: file_open | ||
- id: type | ||
label: IO Type | ||
dtype: enum | ||
options: [complex, float, int, short] | ||
option_attributes: | ||
fcn: [cc, ff, ii, ss] | ||
hide: part | ||
- id: overwrite | ||
label: Overwrite | ||
dtype: enum | ||
default: 'False' | ||
options: ['True', 'False'] | ||
option_labels: ['Yes', 'No'] | ||
- id: IO_ratio | ||
label: IO Ratio | ||
dtype: real | ||
default: '1.0' | ||
- id: verilator_options | ||
label: Verilator Options | ||
dtype: string | ||
default: '""' | ||
- id: skip_output_items | ||
label: Skip Output | ||
dtype: int | ||
default: '0' | ||
|
||
inputs: | ||
- domain: stream | ||
dtype: ${ type } | ||
|
||
outputs: | ||
- domain: stream | ||
dtype: ${ type } | ||
|
||
templates: | ||
imports: import verilog | ||
make: verilog.verilog_verilog_axi_${type.fcn}(${file}, ${overwrite}, ${IO_ratio}, ${verilator_options}, ${skip_output_items}) | ||
|
||
|
||
file_format: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters