相关阅读
Design Compilerhttps://blog.csdn.net/weixin_45791458/category_12738116.html?spm=1001.2014.3001.5482
中断命令的执行
如果在使用命令时输入了错误的选项或输入了错误的命令,可以使用Ctrl+C手动中断命令的执行并返回到dc_shell中,此时终端会提示"Information: Interrupting current command. (INT-2)";如果在命令响应中断前再次使用Ctrl+C,终端会提示"Information: One more interrupt will exit process. (INT-3)";如果在命令响应中断前使用了三次Ctrl+C,dc_shell进程会被终止并提示"Information: Process terminated by interrupt. (INT-4)"。以上行为对于dc_shell也是成立的,即可以把dc_shell当作一个一直在执行的命令。
有些命令无法中止,比如update_timing命令,要中止它们必须从系统级别终止dc_shell。
中断脚本的执行
如果此时由于source命令或dc_shell -f命令正在执行脚本,可以使用Ctrl+C手动中断当前执行的命令,忽略脚本中的后续命令并返回到dc_shell中。
中断综合命令的执行
对于compile命令和compile_ultra命令的中断与其他命令情况有所不同,需要进行分类讨论。
映射阶段
如果设计此时处于映射阶段,使用Ctrl+C时终端会提示"Information: Ignoring interrupt signal since the design is being mapped. One more interrupt will abort optimization without transferring the design... (INT-7)"并忽略此中断信号;如果在该阶段再次使用Ctrl+C,终端会提示"Information: Aborting optimization without transferring the design... (INT-8)"并中断综合,设计的当前状态不会返回,因为尚未完全映射;如果在该阶段使用了三次Ctrl+C,dc_shell进程会被终止并提示"Information: Process terminated by interrupt. (INT-4)"。
优化阶段
如果设计此时处于优化阶段,使用Ctrl+C时终端会提示"Information: Preparing to interrupt optimization (INT-5)"并显示菜单(交互模式),综合必须完成当前的转换才能显示菜单,这可能需要几分钟;如果在该阶段再次使用Ctrl+C,终端会提示"Information: Aborting optimization... (INT-6)"并中断综合,设计的当前状态会返回;如果在该阶段使用了三次Ctrl+C,dc_shell进程会被终止并提示"Information: Process terminated by interrupt. (INT-4)"。
Information: Preparing to interrupt optimization (INT-5)
Please type in one of the following options:1 to write out the current state of the design2 to Abort optimization3 to Kill the process4 to Continue optimization
Please enter a number: