在线咨询
eetop公众号 创芯大讲堂 创芯人才网
切换到宽版

EETOP 创芯网论坛 (原名:电子顶级开发网)

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 1448|回复: 2

[求助] arria10 transceiver calibration clock用脚本更改source.

[复制链接]
发表于 2017-2-22 15:14:01 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
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.
 楼主| 发表于 2017-2-22 15:17:24 | 显示全部楼层
原始脚本我这里提供一下。
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
 楼主| 发表于 2017-2-24 14:04:05 | 显示全部楼层
没有人了解吗。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐 上一条 /1 下一条

×

小黑屋| 关于我们| 联系我们| 在线咨询| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2024-3-29 22:08 , Processed in 0.017318 second(s), 6 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
快速回复 返回顶部 返回列表