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

猜你喜欢

转载自www.cnblogs.com/freshair_cnblog/p/10969378.html