Altera设置Virtual Pin

1,GUI方式

大家都知道的,assignment editor –> category –> logic options –> to –> virtual pin –> on;

2,tcl脚本方式

基本架构参考以下链接:https://www.intel.com/content/www/us/en/programmable/support/support-resources/design-examples/design-software/tcl/all_virtual_pins.html?wapkw=virtual+pin

直接运行该tcl脚本是不够的,以下是可运行的参考范例:

package require ::quartus::flow
load_package flow
   
proc make_all_pins_virtual {} {

    execute_module -tool map
   
    set name_ids [get_names -filter * -node_type pin]
   
    foreach_in_collection name_id $name_ids {
        set pin_name [get_name_info -info full_path $name_id]
        post_message "Making VIRTUAL_PIN assignment to $pin_name"
        set_instance_assignment -to $pin_name -name VIRTUAL_PIN ON
    }
   
    # Commit assignments
    export_assignments
}

make_all_pins_virtual
execute_flow –compile

增加了2点内容:

(1) 执行进程;

(2) 在脚本最后开始编译;

Qii中跑脚本的方法是,在tcl console中输入: source xxx.tcl

posted on 2019-06-03 18:43  freshair_cn  阅读(224)  评论(0编辑  收藏  举报

导航