第一范文网 - 专业文章范例文档资料分享平台

基于FPGA数字秒表设计(完整资料).doc

来源:用户分享 时间:2025/11/17 6:30:29 本文由loading 分享 下载这篇文档手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:xxxxxxx或QQ:xxxxxx 处理(尽可能给您提供完整文档),感谢您的支持与谅解。

---------------------------------------------------------为三八译码器置入使能信号 ncs <= '0';

---------------------------------------------------------分频电路 process(clk) begin

if rising_edge(clk) then if count = 47999 then

count <=(others=>'0'); else

count <= count+1; end if; end if; end process;

clk_1k <= count(15);

---------------------------------------------------------同步计数电路 process(clk_1k,sreg(2)) begin

if rising_edge(clk_1k) then if sreg(2) = '1' then

7

z0<=(others=>'0'); z1<=(others=>'0'); z2<=(others=>'0'); z3<=(others=>'0'); z4<=(others=>'0'); z5<=(others=>'0'); z6<=(others=>'0'); elsif sreg(1) = '1' then z0 <= z0+1; if z0 = 9 then

z0 <=(others=>'0'); z1 <= z1+1; if z1 = 9 then

z1 <=(others=>'0'); z2 <= z2+1; if z2 = 9 then

z2 <=(others=>'0'); z3 <= z3+1; if z3 = 9 then

z3 <= (others=>'0'); z4 <= z4+1; if z4 = 5 then

z4 <= (others=>'0'); z5 <= z5+1; if z5 = 9 then

z5 <= (others=>'0'); z6 <= z6+1; if z6 = 5 then

z6 <= (others=>'0'); end if; end if;

8

end if; end if; end if; end if; end if; end if; end if; end process;

---------------------------------------------------------扫描计数器 process(clk_1k) begin

if rising_edge(clk_1k) then count_2 <= count_2+1; end if; end process; s <= count_2;

---------------------------------------------------------锁存器 process(sreg(0),z1,z2,z3,z4,z5,z6) begin

if sreg(0) = '1' then q1 <= z1; q2 <= z2; q3 <= z3; q4 <= z4; q5 <= z5; q6 <= z6; end if; end process;

9

--------------------------------------------------------- process(count_2,q1,q2,q3,q4,q5,q6) begin

case count_2 is

when \ when \ when \ when \ when \ when \

when others => in_7 <= \ end case; end process;

---------------------------------------------------------八段译码器 process(in_7) begin

case in_7 is

when \ when \ when \ when \ when \ when \ when \ when \ when \ when \ when others => seg <=\ end case; end process;

10

搜索更多关于: 基于FPGA数字秒表设计(完整资料).doc 的文档
基于FPGA数字秒表设计(完整资料).doc.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.diyifanwen.net/c0c8d91bdwe3xy6q955p40ne2d1fp330145l_3.html(转载请注明文章来源)
热门推荐
Copyright © 2012-2023 第一范文网 版权所有 免责声明 | 联系我们
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:xxxxxx 邮箱:xxxxxx@qq.com
渝ICP备2023013149号
Top