我是靠谱客的博主 无聊白羊,这篇文章主要介绍VHDL中attribute string of signal: signal is "NO";How do I keep Xilinx XST from merging nets from my design?,现在分享给大家,希望可以做个参考。

How do I keep Xilinx XST from merging nets from my design?

I'm asking and answering this question so that I can find it again in the future...

How do I keep XST from merging two logically equivalent nets into one (which normally is a good idea to save resources, but may not be a good idea from a timing view)?

I have a design with 2 counters that are driven by the same clk. XST merged the lowest bit of the counters into one counter, but this is a problem, because the counters need to be separated in the design due to IOB placement constraints. I need the counters (specifically the lowest bit of the counter) to be distinct.

 

Answer:

you need to set 2 constraints on the net in your RTL. Check the synthesis report for your net to make sure that XST did what you wanted.

In Verilog

复制代码
1
2
3
4
(* equivalent_register_removal="no" *) (* keep="true" *) reg signal_name ;

In VHDL

复制代码
1
2
3
4
5
attribute equivalent_register_removal: string; attribute equivalent_register_removal of signal_name : signal is "no"; attribute keep:string; attribute keep of signal_name :signal is "true"; Your signal_name : std_logic;

The link: http://stackoverflow.com/questions/11125142/how-do-i-keep-xilinx-xst-from-merging-nets-from-my-design


Made by Tim.

转载于:https://www.cnblogs.com/sundance/archive/2012/11/02/2751018.html

最后

以上就是无聊白羊最近收集整理的关于VHDL中attribute string of signal: signal is "NO";How do I keep Xilinx XST from merging nets from my design?的全部内容,更多相关VHDL中attribute内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(57)

评论列表共有 0 条评论

立即
投稿
返回
顶部