Altera: set pin locations using tcl
1, compile the project;
2, store current tcl settings: Project –> Generate Tcl File from Project…
3, modify the generated tcl file.
Add pin assignment in section like “# Make assignments”:
The format is: set_location_assignment PIN_xx –to <signal>
4, Turn it to a compile script.
Until now, the tcl file is still a project setting. We will turn it into a compile script by adding a command in front of “# Close project” block:
The command is: execute_flow –compile.
This command tells Quartus to carry out the compile. However, to make this command recognizable to Quartus, we need to import a new package at the top of the script:
The command is: package require ::quartus::flow.
5, Run script.
Run script in Tcl window: source xxx.tcl
posted on 2018-11-27 10:35 freshair_cn 阅读(229) 评论(0) 编辑 收藏 举报