NanDigits中国

位置:文档/GOF API列表

new_port

ECO command. Create a new port for the current top level module

Usage:

new_port($name, @options); $name: Port name @options: -input: New an input port -output: New an output port -inout: New an inout port

Note:

The port name has to be pure words or with bus bit, like, abc[0], abc[1]

Examples:

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]'
更多文档:文档目录


微信公众号

LinkedIn

Nandigits.com 美国官网 | Nandigits.cn 中国官网
© 2021 Nandigits Design Automation. 版权所有。