久久人妻av一区二区软件 ,欧美日韩中文亚洲另类春色,国产欧美亚洲精品a,亚洲a∨无码男人的天堂,精品亚洲人伦一区二区三区,国产美女精品一区二区,欧美精品aaa久久久影院,成人精品天堂一区二区三区
首頁 新聞 > 科技 > 正文

用VHDL設計的任意頻率分頻器

Sometimes I need to generate a clock at a lower frequency than the main clock driving the FPGA. If the ratio of the frequencies is a power of 2, the logic is easy. If the ratio is an integer N, then a divide-by-N counter is only a little harder. But if the ratio isn"t an integer, a little (and I mean a little) math is required. Note that the new clock will have lots of jitter: there"s no escaping that. But it will have no drift, and for some applications that"s what counts. If you have a clock A at frequency a, and want to make a clock B at some lower frequency b (that is, b a), then something like: d = 0; forever { Wait for clock A. if (d 1) { d += (b/a); } else { d += (b/a) - 1; /* getting here means tick for clock B */ } } but comparison against zero is easier, so subtract 1 from d: d = 0; forever { Wait for clock A. if (d 0) { d += (b/a); } else { d += (b/a) - 1; /* getting here means tick for clock B */ } } want an integer representation, so multiply everything by a: d = 0; forever { Wait for clock A. if (d 0) { d += b; } else { d += b - a; /* getting here means tick for clock B */ } } For example. I just bought a bargain batch of 14.1523MHz oscillators from BG but I need to generate a 24Hz clock. So a=14152300 and b=24: d = 0; forever { Wait for clock A. if (d 0) { d += 24; } else { d += 24 - 14152300; /* getting here means tick for clock B */ } } For a hardware implementation I need to know how many bits are needed for d: here it"s 24 bits to hold the largest value (-14152300) plus one more bit for the sign. In VHDL this looks like: signal d, dInc, dN : std_logic_vector(24 downto 0); process (d) begin if (d(24) = "1") then dInc = 0000000000000000000011000; -- (24) else dInc = 1001010000000110110101100; -- (24 - 14152300) end if; end process; dN = d + dInc; process begin wait until A"event and A = "1"; d = dN; -- clock B tick whenever d(24) is zero end process;

關鍵詞: VHDL任意頻率分頻器

最近更新

關于本站 管理團隊 版權申明 網站地圖 聯系合作 招聘信息

Copyright © 2005-2018 創投網 - www.bbcnxku.cn All rights reserved
聯系我們:33 92 950@qq.com
豫ICP備2020035879號-12

 

主站蜘蛛池模板: 国产免费人成视频在线播放播| 最新综合精品亚洲网址| 国产男小鲜肉同志免费| 亚洲精品成人福利网站| 成人免费播放视频777777| 无套熟女av呻吟在线观看| 蜜臀精品无码av在线播放| 99久久久无码国产精品免费砚床| 国产亚洲精品综合一区| 亚洲乱码av中文一区二区软件| 免费精品国偷自产在线在线| 精品麻豆剧传媒av国产| 亚洲欧美一区久久牛牛| 亚洲国产天堂久久综合网| 国产精品一区二区av片| 精品国产一区二区三区不卡| 97欧美精品系列一区二区| 日韩在线一区二区不卡视频| 琪琪777午夜理论片在线观看播放| 国产免费又色又爽又黄软件| 色偷偷亚洲女人的天堂| 日韩国产综合精选| 亚洲人成手机电影网站| 无码专区视频中文字幕| 最新国模无码国产在线视频| 亚洲无线码高清在线观看| 国产精品99久久久久久宅男小说| 国产亚洲精品久久久美女| 国产精品自在在线午夜精华在线 | 精品无码一区二区三区不卡| 影音先锋在线亚洲网站| 国内精品视这里只有精品| 成视频年人黄网站免费视频| 国产av永久精品无码| 国产乱人伦偷精品视频aaa| 免费无码黄十八禁网站| 国产亚洲精aa在线观看see| 香蕉在线精品视频在线| 岛国精品一区免费视频在线观看| 国产免费久久精品99reswag| 黑人巨大无码中文字幕无码|