|
<h3 id='___new_port'>new_port</h3> |
|
<pre>ECO command. Create a new port for the current top level module |
|
<b>Usage:</b> new_port($name, @options); |
|
$name: Port name |
|
@options: |
|
-input: New an input port |
|
-output: New an output port |
|
-inout: New an inout port |
|
|
|
<b>Note:</b> The port name has to be pure words or with bus bit, like, abc[0], abc[1] |
|
|
|
<b>Examples:</b> |
|
|
|
new_port('prop_control_en', '-input'); # create an input port naming 'prop_control_en' |
|
new_port('prop_state[2]', '-output'); # create an output port with bus bit 'prop_state[2]' |
|
new_port('prop_state[3]', '-output'); # create an output port with bus bit 'prop_state[3]' |
|
|
|
</pre> |