EDA课程设计拔河游戏机(5)

2021-04-05 06:12

eda课程设计,游戏机!vhdl语言,Quartus II 7.0

end process;

clk_100<=clk1; clk_4<=clk2; clk_1<=clk3; end division_body; b. 防抖模块 library IEEE;

use IEEE.std_logic_1164.all;

use IEEE.std_logic_unsigned.all;

entity fangdou_player1 is

port( clk_100:in std_logic; player1_b:in std_logic; player1:out std_logic );

图4 防抖1

end fangdou_player1;

architecture fangdou_player1_body of fangdou_player1 is signal mp1,mp2:std_logic; begin

process(clk_100) begin

if(clk_100'event and clk_100='0') then mp2<=mp1;

mp1<=player1_b; end if; end process;

player1<=clk_100 and mp1 and (not mp2); end fangdou_player1_body;

library IEEE;

use IEEE.std_logic_1164.all;

use IEEE.std_logic_unsigned.all;

entity fangdou_player2 is

port( clk_100:in std_logic; player2_b:in std_logic; player2:out std_logic );

end fangdou_player2;


EDA课程设计拔河游戏机(5).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:第7章 面向对象程序设计

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: