找回密碼
 立即注冊(cè)

QQ登錄

只需一步,快速開(kāi)始

帖子
查看: 3144|回復(fù): 0
收起左側(cè)

SignalTap II觀測(cè)wire型數(shù)據(jù)

[復(fù)制鏈接]
ID:105323 發(fā)表于 2016-2-23 03:21 | 顯示全部樓層 |閱讀模式
  
  
wire型數(shù)據(jù) readdata和writedata,綜合以后不能添加到SignalTap中觀測(cè)。   
      

在待觀察的wire信號(hào)旁邊加上/*synthesis keep*/;

  

wire [31:0] readdata /* synthesis keep = 1 */;


   
  
  

對(duì)于沒(méi)有output的reg信號(hào),Quartus在綜合時(shí)也采用了最佳方式,因此,在SIgnalTap II中不能觀察該信號(hào)。

  

解決方法:

  

對(duì)于reg信號(hào)則加/*synthesis noprune*/ 或者 /* synthesis preserve */

  

兩者的不同之處在于:

  

/*synthesis noprune*/避免Quartus II優(yōu)化掉沒(méi)output的reg。

  

/*synthesis preserve*/避免Quartus II將reg優(yōu)化為常數(shù),或者合并重復(fù)的reg。

  
  

若是想觀察整個(gè)模塊中的reg信號(hào),則在module之后添加/*synthesis noprune*/

  

module test(clk,rst,data)/*synthesis noprune*/ ;


回復(fù)

使用道具 舉報(bào)

本版積分規(guī)則

小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術(shù)交流QQ群281945664

Powered by 單片機(jī)教程網(wǎng)

快速回復(fù) 返回頂部 返回列表