防止信號被編譯器優化

http://www.openhw.org/module/forum/thread-644643-1-1.html

         Place the Verilog constraint immediately before the module or instantiation .

          Specify the Verilog constraint as follows:

          (* KEEP = “{TRUE|FALSE |SOFT}” *)

 

假如我們要觀察的一個信號cnt:reg   [10:0]  cnt;,那麼就按照文檔中的介紹,要保持此信號不被綜合,則:

    (* KEEP =  “TRUE” *)  reg  [10:0]  cnt ,或者     (* keep=  “true” *)  reg  [10:0]  cnt   

這樣就可以實現ChipScope的觀察而不被優化掉了。類似的VHDL:

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章