通过TCL添加IO分配

描述

如果要分配的IO比较多,也可以通过TCL来添加 IO分配。在interface界面通过Export Design和import Design来导出导入isf约束。

IO

通过导出isf可以查看相关的语法,以下是导出的T20部分IO约束的语法。

 

 Efinity Interface Configuration# Version: 2023.2.307.3.17# Date: 2024-04-23 12:11## Copyright (C) 2013 - 2023 Efinix Inc. All rights reserved.## Device: T20F256# Package: 256-ball FBGA (final)# Project: C12_logic_convert# Configuration mode: active (x1)# Timing Model: I4 (final)
# Device settingdesign.set_device_property("1A","VOLTAGE","3.3","IOBANK")design.set_device_property("1B_1C","VOLTAGE","3.3","IOBANK")design.set_device_property("1D_1E","VOLTAGE","3.3","IOBANK")design.set_device_property("3A_3B_3C","VOLTAGE","3.3","IOBANK")design.set_device_property("3D_3E","VOLTAGE","3.3","IOBANK")design.set_device_property("4A","VOLTAGE","3.3","IOBANK")design.set_device_property("4B","VOLTAGE","3.3","IOBANK")design.set_device_property("BR","VOLTAGE","1.2","IOBANK")design.set_device_property("TL","VOLTAGE","1.2","IOBANK")design.set_device_property("TR","VOLTAGE","1.2","IOBANK")design.set_device_property("cfg","RECONFIG_EN","0","RU")

# Create instancedesign.create_input_gpio("adc_data_in",13,0)design.create_input_gpio("ram_addr",15,0)design.create_output_gpio("ram_data_out",15,0)design.create_output_gpio("acc_done")design.create_input_gpio("acc_en")design.create_input_clock_gpio("adc_clk_in")design.create_input_gpio("adc_ora")design.create_pll_input_clock_gpio("clk")design.create_input_gpio("drive_switch_in")design.create_output_gpio("drive_switch_out")design.create_input_gpio("fifo_rst_in")design.create_input_gpio("laser_fire_in")design.create_output_gpio("laser_fire_out")desin.create_output_gpio("laser_trig")design.create_output_gpio("led0")design.create_output_gpio("led2")design.create_input_gpio("ram_cs")design.create_input_gpio("ram_rd")

 

我们可以通过这种方式快速添加IO位置约束。

审核编辑 黄宇
 

打开APP阅读更多精彩内容
声明:本文内容及配图由入驻作者撰写或者入驻合作网站授权转载。文章观点仅代表作者本人,不代表电子发烧友网立场。文章及其配图仅供工程师学习之用,如有内容侵权或者其他违规问题,请联系本站处理。 举报投诉

全部0条评论

快来发表一下你的评论吧 !

×
20
完善资料,
赚取积分