usd 发表于 2010-6-28 21:20:17

楼主呵呵!能把别人的弄为自己也是好事情!现在大多这样了

UFO 发表于 2010-6-28 21:59:17

Count <= (OTHERS =>’0’);有什么用啊

encounter 发表于 2010-6-28 23:27:45

Count &lt;= (OTHERS =&gt;&rsquo;0&rsquo;);有什么用啊?<br>
对Count 每一位赋0。

longt 发表于 2010-6-29 01:22:31

还是支持一下!]<br>
同意10楼的<br>
那位高手发布一下!!

longtime 发表于 2010-6-29 03:00:28

谢谢,正想找相关资料那!!!!

longt 发表于 2010-6-29 03:59:55

我COPY的,原作者见谅!!!<br>
非整数分频实用例子 分频比=32/7, 拓展可以任意 2^(N)/M,分子比分母大, 理论上可以实现任意精度的小数分频<br>
library ieee;<br>
use ieee.std_logic_1164.all;<br>
use ieee.std_logic_unsigned.all;<br>
<br>
entity fsu2 is<br>
&nbsp;&nbsp;port(clk:in bit;<br>
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;f_out
        http://bbs.vibesic.com/images/smilies/default/shocked.gif
ut bit<br>
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;);<br>
end;<br>
<br>
architecture a of fsu2 is<br>
signal q: std_logic_vector(5 downto 0) :="000111";<br>
&nbsp;&nbsp;constant step: std_logic_vector(5 downto 0):="000111";<br>
begin<br>
p1: process(clk)<br>
variable temp: std_logic_vector(5 downto 0);<br>
<br>
begin<br>
if(clk'event and clk='1') then<br>
&nbsp;&nbsp;if q&gt;"011000" and q&lt;="011111" then<br>
&nbsp; &nbsp; temp:= q+step;<br>
&nbsp; &nbsp; q&lt;=temp-"100000";<br>
else<br>
&nbsp;&nbsp;q&lt;=q+step;<br>
&nbsp; &nbsp;end if;<br>
<br>
<br>
<br>
end if;<br>
&nbsp;&nbsp;if (q&gt;"011000" and q&lt;="011111"
        http://bbs.vibesic.com/images/smilies/default/wink.gif
then <br>
f_out&lt;='1';<br>
else <br>
f_out&lt;='0';<br>
end if;<br>
<br>
end process;<br>
<br>
<br>
end;

Sunlife 发表于 2015-7-8 11:12:43

                  支持一下

508482294 发表于 2022-1-1 17:28:19

分频器的VHDL描述
页: 1 2 [3]
查看完整版本: 分频器的VHDL描述