VLSI 设计的 FPGA 验证(10)

山间雾野 分享 2021-04-05 下载文档

VLSI 设计的 FPGA 验证

--content definition of component "debounce" library ieee;

use ieee.std_logic_1164.all; use ieee.std_logic_arith.all; use ieee.std_logic_unsigned.all; --io signal declaraction entity debounce is

port(clk: in std_logic; --basic clock input

clr:in std_logic;

touch: in std_logic; --push button signal

push_out: out std_logic); --cleared push botton signal

end debounce;

architecture arch of debounce is

signal sample: std_logic;

--declaraction of self_built sampling pulse from clock begin

sampling_signal: block --input clk --output sample

signal delay:std_logic; --one_step delay

signal q: std_logic_vector(4 downto 0); --osc/2^5=32hz(31.25ms)

begin

process(clk) begin

if clr='1' then q<="00000"; delay<='0';

elsif rising_edge(clk) then

delay<=q(4); q<=q+1;


VLSI 设计的 FPGA 验证(10).doc 将本文的Word文档下载到电脑

下一篇:广东省干部培训网络学院挂机考试专用浏览器使用说明

相关推荐
相关阅读
本类排行
× 游客快捷下载通道(下载后可以自由复制和排版)

下载本文档需要支付 7

支付方式:

开通VIP包月会员 特价:29元/月

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