可以使用下面语句对所要观察的寄存器约束,避免被其优化掉。 方法1: reg[15:0] data; /*synthesis noprune*/ 方法2: (*noprune*)reg[15:0] data;