微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 嵌入式设计讨论 > FPGA,CPLD和ASIC > arria10 transceiver calibration clock用脚本更改source.

arria10 transceiver calibration clock用脚本更改source.

时间:10-02 整理:3721RD 点击:
RT。arria10 的transceiver 做calibration时,默认必须使用pin usrclk 来进行。
而我们做板子时候没有考虑这个问题,usrclk pin用作了一个DDR3 的DQ pin。
从altera support处得知,可以通过运行tcl脚本作用于sof文件,来使calibration采用FPGA internal clock。
可是提供的脚本中,有load_devices, open_sof和write_sof,查找得知quartus 原本是不包含这三个函数的。
那么,谁碰到过这个情况?有没有这几个函数?
Thanks.

原始脚本我这里提供一下。
proc main_run {} {
        global argv
        set projName [ lindex  $argv 1 ]
        load_package asm2
        load_devices
        set sofName "output_files/$projName.sof";
        #set sofName "$projName.sof";
        set handle -1
        set handle [ open_sof $sofName ]
       
        if { $handle >= 0 } {
set_attribute $handle hssi_aux_0_1 xaux/pma_aux_clock_select PMA_AUX_CLOCK_SELECT_INTOSC
set_attribute $handle hssi_aux_1_1 xaux/pma_aux_clock_select PMA_AUX_CLOCK_SELECT_INTOSC
set_attribute $handle hssi_aux_0_0 xaux/pma_aux_clock_select PMA_AUX_CLOCK_SELECT_INTOSC
set_attribute $handle hssi_aux_1_0 xaux/pma_aux_clock_select PMA_AUX_CLOCK_SELECT_INTOSC
set_attribute $handle hssi_aux_0_0 xmcu/pm_uc_no_nios/pm_uc_config_wrapper/pm_uc_clksel_osc CB_INTOSC
set_attribute $handle hssi_aux_0_0 xmcu/pm_uc_no_nios/pm_uc_config_wrapper/pm_uc_clkdiv_sel div4
set_attribute $handle hssi_aux_1_0 xmcu/pm_uc_no_nios/pm_uc_config_wrapper/pm_uc_clksel_osc CB_INTOSC
set_attribute $handle hssi_aux_1_0 xmcu/pm_uc_no_nios/pm_uc_config_wrapper/pm_uc_clkdiv_sel div4


                write_sof $handle $sofName
        } else {
                puts stderr "Failed to open sof file $sofName"
        }
}
main_run

没有人了解吗。

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top