看板Electronics
標 題Re: 請問一下數位問題(FPGA)
發信站清華資訊(楓橋驛站) (Thu Apr 6 18:12:46 2006)
轉信站ptt!ctu-reader!ctu-gate!news.nctu!news.ntu!news.ee.ttu!news.cis.nctu!n
※ 引述《[email protected] (窩耶)》之銘言:
> process(clk)
> begin
> if clk'event and clk='1' then
> D1<=D0;D0<=ext;
> output<=((D0 and D1) or output) and (D0 or D1);
> end if;
> end process;
> process(clk)
> begin
> if clk'event and clk='1' then
> D1<=D0;D0<=ext;
> pre_output<=output;
> end if;
> end process;
> output<=((D0 and D1) or pre_output) and (D0 or D1);
建議你先了解什麼叫做 blocking 及 non-blocking
懂了以後你就知道這兩者之間有什麼差別了
> process(clk)
> begin
> if clk'event and clk='1' then
> output<=A*B;
> end if;
> end process;
> 感覺乘法會花不少時間說 一個clock算的完嗎?????
A 和 B 各幾位元? clk 多快? 又, 你用哪個 FPGA?
除了這個 logic 以外, 其餘電路 fitting 出來 utilization 多少?
--
引言過多, BBS 系統真無聊. -.-
--
※ Origin: 楓橋驛站<bbs.cs.nthu.edu.tw> ◆ From: micro.ee.nthu.edu.tw