vvt 发表于 2010-7-29 03:03:15

请问这段verilog代码为多少分频啊

signal fs: STD_LOGIC_vector(3 downto 0);
process(clk_int(1))
begin
if clk_int(1)'event and clk_int(1)='1' then
    if fs=24 then
   fs<="0000";
    else
   fs<=fs+1;
    end if;
    end if;
end process;
fclk<=fs(2);

TCL 发表于 2010-7-29 03:05:14

请问这段verilog代码为多少分频啊
这应该是8分频

TCL 发表于 2010-7-29 03:05:33

fs(0)是两分频~然后依次你画隔波形

gllby 发表于 2010-7-29 22:34:27

这里产生的频率是:原频率/((24+1)*2)

zhouliang 发表于 2010-8-15 14:25:34

fs: STD_LOGIC_vector(3 downto 0)
怎么可能是24——令人费解!
页: [1]
查看完整版本: 请问这段verilog代码为多少分频啊