当前位置:网站首页>FPGA:基础入门LED灯闪烁
FPGA:基础入门LED灯闪烁
2022-08-05 10:10:00 【最早的早安...】
里插入代码片题目概述:
使LED灯闪烁。
编程:
`timescale 1ns / 1ps
module led_twinkle(
input sys_clk,
input sys_rst_n,
output [1:0] led
);
reg [25:0] cnt;
assign led=(cnt<26'd2500_0000)?2'b01:2'b10;
[email protected](posedge sys_clk or negedge sys_rst_n)
begin
if(!sys_rst_n)
cnt<=26'd0;
else if(cnt<5000_0000)
cnt<=cnt+1'b1;
else
cnt<=26'd0;
end
endmodule
上机实践:
QQ短视频20220804155930
边栏推荐
- IO stream articles -- based on io stream to realize folder copy (copy subfolders and files in subfolders) full of dry goods
- After Keil upgrades to AC6, what changes?
- The difference between find, matches, lookingAt matching strings in matcher
- IO流篇 -- 基于io流实现文件夹拷贝(拷贝子文件夹及子文件夹内文件)满满的干货
- uniapp connect ibeacon
- 第九章:activit内置用户组设计与组任务分配和IdentityService接口的使用
- 入门 Polkadot 平行链开发,看这一篇就够了
- 静态链接和动态链接
- SD NAND Flash简介!
- 第五章:多线程通信—wait和notify
猜你喜欢
教你本地编译运行一个IDEA插件,在IDEA里聊天、下棋、斗地主!
Which big guy has the 11G GI and ojvm patches in April or January 2020, please help?
Introduction to SD NAND Flash!
技术干货 | 基于 MindSpore 实现图像分割之豪斯多夫距离
[强网杯2022]WP-UM
STM32+ULN2003驱动28BYJ4步进电机(根据圈数正转、反转)
egg框架使用(二)
First Decentralized Heist?Loss of nearly 200 million US dollars: analysis of the attack on the cross-chain bridge Nomad
three objects are arranged in a spherical shape around the circumference
Complete image segmentation efficiently based on MindSpore and realize Dice!
随机推荐
MySQL事务
Pycharm 常用外部工具
IDEA执行Test操作导致数据插入时出现了重复数据
长达四年的减肥记录
Introduction to SD NAND Flash!
5.部署web项目到云服务器
气象数据数据处理实例——matlab字符串切割匹配与R语言日期匹配(数据拼接)
Keil升级到AC6后,到底有哪些变化?
Pytorch Deep Learning Quick Start Tutorial -- Mound Tutorial Notes (3)
Data Middle Office Construction (10): Data Security Management
一个栈的输入序列为1 2 3 4 5 的出站顺序的理解
MySQL之数据视图
egg框架使用(一)
第八章:activiti多用户任务分配
【 temperature warning program DE development 】 event driven model instance
MySQL使用聚合函数可以不搭配GROUP BY分组吗?
2022华数杯数学建模思路分析交流
Analysis and practice of antjian webshell dynamic encrypted connection
高质量 DeFi 应用构建指南,助力开发者玩转 DeFi Summer
【Unity】【UGUI】【在屏幕上显示文本】