登录
首页 » Verilog » verilog_按键检测例程

verilog_按键检测例程

于 2022-04-09 发布 文件大小:1.10 kB
0 193
下载积分: 2 下载次数: 1

代码说明:

在电子产品中我们会经常用到按键,比如电脑的键盘,手机的按键等等,按键就是人机交互的一种工具。在 AX309 开发板上有四个用户按键供用户使用和体验,用户可以使用 FPGA程序来检测与按键对应的 I/O 口的电平高低来判断按键是否按下或松开。  本实验内容将介绍按键的检测及按键的防抖的程序设计,通过点亮/点灭开发板上相应的LED 灯来指示按键的动作。  按键1按一下-------------LED1 反转; 按键 2 按一下-------------LED2 反转; 按键 3 按一下-------------LED3 反转; 按键 4 按一下-------------LED4 反转;

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • SRAM_verilog
    SRAM的Verilog程序,初学者的最好的学习软件,初学者必备。。。。。。。。
    2023-01-05 08:30:03下载
    积分:1
  • quartus-ii-automatically-assign-pins
    quartus ii 中自动分配管脚的三种方法(quartus ii automatically assign pins are three ways)
    2012-03-31 17:12:54下载
    积分:1
  • Verilog编写的出租车计价程序
    设计一个出租车计价器,共有三个输入,分别是启动开关、计时脉冲(25MHz)、行程脉冲(每 100 米 1 个脉冲)。 输出显示为付费金额。工作原理如下: 当启动开关闭合后,显示起车费 5 元。当行程小于 5 公里时,按照 5 元显示付费。 当超过 5 公里后, 开始按照行程增加应付车费,每公里按照 1 元计费,要求每 500 米增加 0.5 元进行加法累计,并显示应付车费总额。当出现停车等待时,按照每 2 分钟折合 1 公里计费, 要求每分钟增加 0.5 元进行加法累计,并显示应付车费总额。
    2022-09-15 13:05:04下载
    积分:1
  • Cadence-Allegro-PCB-SI
    利用Cadence Allegro PCB SI进行SI仿真分析(Performed using the Cadence Allegro PCB SI SI simulation analysis)
    2013-08-06 22:17:46下载
    积分:1
  • random_num_gen
    通过随机数产生原理进行verilog编程,从而实现FPGA的随机数产生(Through random number generation principle for Verilog programming, so as to achieve the FPGA random number generation)
    2017-07-08 11:55:41下载
    积分:1
  • xilinx pcie verilog code
    用于学习和研究pcie硬件 有完整的仿真testbench及xilinx pcie softcore
    2023-06-23 01:35:06下载
    积分:1
  • 基于同步FIFO的异步串口通信发送机的设计与实现
    资源描述该程序是在同步FIFO的基础上实现了异步串口通信发送机的功能,首先通过数据产生模块产生数据缓存到FIFO中,然后UATR的tx模块通过检测FIFO中的数据,并将数据发送出去。
    2023-07-24 03:00:03下载
    积分:1
  • DS1302
    说明:  本代码是控制DS1302的VHDL代码,浅显易懂,方便修改,注意看data sheet,保证时钟和各个延迟满足要求即可(This code is to control the DS1302' s VHDL code, easy to understand, easy changes, note the data sheet, ensure the clock and can meet the requirements of the various delays)
    2020-10-22 14:57:23下载
    积分:1
  • RS(204-188)decoder_verilog
    采用verilog实现的有限域GF(28)弱对偶基乘法器,本原多项式: p(x) = x^8 + x^4 + x^3 + x^2 + 1 ,多项式基: {1, a^1, a^2, a^3, a^4, a^5, a^6, a^7},弱对偶基: {1+a^2, a^1, 1, a^7, a^6, a^5, a^4, a^3+a^7}(Verilog achieved using the finite field GF (28) weak dual basis multiplier)
    2016-06-12 16:31:51下载
    积分:1
  • fffffff
    如上图所示, Rst是低电平有效的系统复位信号,Clk是时钟信号。AB[5:0]是地址信号,DB[7:0]是数据信号,wr是低电平有效的写信号。start是启动信号。 模块中有一个64x8的双端口的存储器。系统复位结束后,可以通过AB、DB和wr信号向同步存储器写入数据。当写入64个数据后,给出一个Clk周期宽度的脉冲信号start,则系统从存储器0地址处开始读出数据,读出的8位数据从低位开始以3位为一组,每个时钟周期输出一组,即第一个时钟周期输出[2:0]位,第二个时钟周期输出[5:3]位,第三个周期输出1地址的[0]位和0地址的[7:6]位,直至将存储器中64x8数据全部输出。若最后一组不足三位,则高位补0。 (As shown above, Rst is an active-low system reset signal, Clk is a clock signal. AB [5: 0] is the address signal, DB [7: 0] is the data signal, wr write signal is active low. start is the start signal. Module in a dual port memory of 64x8. After the reset, you can write data to the synchronous memory by AB, DB and wr signals. When data is written to 64, given the width of a pulse signal Clk cycle start, the system begins to read the memory address 0, 8 data read out a low starting with three as a group, each clock outputs a set period, which is the first clock cycle of the output [2: 0] bits, the second clock cycle output [5: 3] position, the third cycle of the output of an address [0] and 0 address [7 : 6] bit, until all the data in memory 64x8 output. If the last group of less than three, the high 0s.)
    2020-11-04 20:39:51下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载