小明永久免费大陆在线观看-小明永久免费视频-小明永久视频免费播放-小嫩妇好紧好爽再快视频-小嫩嫩12欧美-小日本xxx

首頁 新聞 > 科技 > 正文

用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.zhigu.net.cn All rights reserved
聯系我們:33 92 [email protected]
豫ICP備2020035879號-12

 

无码中文字幕色专区 | 三级4级全黄60分钟 婷婷丁香五月激情综合 | 热re99久久精品国产99热 | 女女互揉吃奶揉到高潮视频 | 业余 自由 性别 成熟偷窥 | 精品欧美一区二区在线看片 | 成年网站免费入口在线观看 | 熟妇高潮精品一区二区三区 | 午夜熟女插插xx免费视频 | 精品国产一区二区三区久久影院 | 亚洲色精品三区二区一区 | 国产内射爽爽大片 | 狠狠躁天天躁中文字幕 | 91国内精品久久久久免费影院 | 国产漂亮白嫩美女在线观看 | 精品无码一区二区三区亚洲桃色 | 久久草草亚洲蜜桃臀 | 人妻无码aⅴ不卡中文字幕 久久久久久国产精品免费免费男同 | 精品国产av色一区二区深夜久久 | 人妻丰满熟妇av无码区hd | 欧美黑人疯狂性受xxxxx喷水 | 国产小视频在线免费 | 精品国产美女福利到在线不卡 | 97丨九色丨国产人妻熟女 | 99久久人妻精品免费一区 | 色一情一乱一伦一区二区三欧美 | 日韩精品久久无码中文字幕 | 色综合久久无码五十路人妻 | 国产在线一区二区三区欧美 | 无码精品人妻一区二区三区av | 国产精品99久久久久久宅男 | 国产精品丝袜久久久久久不卡 | 欧美日韩精品乱国产 | 四虎国产精品永久在线无码 | 国产乱码精品一区二区三区四川人 | 岳毛多又紧做起爽 | 精品久久欧美熟妇www | 国产精品无码aⅴ嫩草 | 97色伦图片97综合影院 | 亚洲 日韩 欧美 成人 在线观看 | 亚洲啪av永久无码精品放毛片 |