看板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