請問高手
2個12bits的輸入訊號, 1個13bits的輸出
C <= A+B; 電路

在FPGA上要花多少gates
在ASIC上的gate數呢?

我有一個設計, 共用了6個加法器, (12bits+12bits = 13bits)
然後有三個 D-Flip Flop

一個簡單的 assign
然後一個output register

用ISE synthesis後, 竟花了 1.8K 的 equivalent gate count

天啊, 加法器要用這麼多gate count嗎? 真的IC裏要花多少呢?

想請問高手, 12bits的加法器在FPGA跟ASIC的gate count是多少 ?
想請問高手, 12bits的加法器在FPGA跟ASIC的gate count是多少 ?

FPGA : 不知道

ASIC : 72.8
我沒開過ASIC,所以答不出來。

不過,你的加法器如果是全加器,而且是Full Look Ahead,Gate Count會多是正常,但印象中好像沒到1.8K那麼多。

你可以考慮分段,例如4-bit為一段,做Look Ahead Full Adder,12-bit Adder共有三段。這三段再用Ripple Adder的方式做進位串接,應該可以減少Gate Count。
不知道要簽什麼的說‧‧‧
一個gate略估兩個micro cell或者gate con(好像是這樣con忘了)
剩下自己去算吧
下面有兩種Verilog code寫法,
用synplify synthesis 後, 再用translate, mapping後, 發現結果不同

A[12:0] B[12:0]

piout 為取餘數電路的輸出


1. (結果是 1k equivalent gate)
always@(..)
piout <= (((A+B)-K)>0)?(A+B-K):(A+B);


2. (結果是 1.8K)

assign tmp0 = A+B;
assign tmp1 = A+B-K;

always@(..)
..
piout <= (tmp1[13]==1)?(A+B):(A+B-K); // tmp1[13] = the sign bit of tmp1


文章分享
評分
評分
複製連結

今日熱門文章 網友點擊推薦!