当前位置:网站首页>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
边栏推荐
- Imitation SBUS fixed with serial data conversion
- 开源一夏|OpenHarmony如何查询设备类型(eTS)
- IO stream articles -- based on io stream to realize folder copy (copy subfolders and files in subfolders) full of dry goods
- 华为轻量级神经网络架构GhostNet再升级,GPU上大显身手的G-GhostNet(IJCV22)
- three.js调试工具dat.gui使用
- uniapp 连接ibeacon
- Bias lock/light lock/heavy lock lock is healthier. How is locking and unlocking accomplished?
- 开发常用手册链接分享
- Advanced usage of C language
- [Android]如何使用RecycleView in Kotlin project
猜你喜欢
mysql索引
STM32+ULN2003 drives 28BYJ4 stepper motor (forward and reverse according to the number of turns)
The century-old Nordic luxury home appliance brand ASKO smart wine cabinet in the three-temperature area presents the Chinese Valentine’s Day, and tastes the love of the delicacy
Egg framework usage (2)
JS逆向入门学习之回收商网,手机号码简易加密解析
5.部署web项目到云服务器
Data Middle Office Construction (10): Data Security Management
The JVM collection that Alibaba's top architects have summarized for many years, where can't I check it!
Huawei's lightweight neural network architecture GhostNet has been upgraded again, and G-GhostNet (IJCV22) has shown its talents on the GPU
Analysis and practice of antjian webshell dynamic encrypted connection
随机推荐
How can project cost control help project success?
JS introduction to reverse the recycling business network of learning, simple encryption mobile phone number
SD NAND Flash简介!
自定义过滤器和拦截器实现ThreadLocal线程封闭
静态链接和动态链接
EU | Horizon 2020 ENSEMBLE: D2.13 SOTIF Safety Concept (Part 2)
PHP 操作mangoDb
2022杭电多校 第6场 1008.Shinobu Loves Segment Tree 规律题
为什么sys_class 里显示的很多表的 RELTABLESPACE 值为 0 ?
STM32+ULN2003 drives 28BYJ4 stepper motor (forward and reverse according to the number of turns)
2022华数杯数学建模A题环形振荡器的优化设计思路思路代码分享
偏向锁/轻量锁/重级锁锁锁更健康,上锁解锁到底是怎么完成实现的
【 temperature warning program DE development 】 event driven model instance
What is SPL?
leetcode: 529. Minesweeper Game
PHP operation mangoDb
egg框架使用(一)
Tanabata romantic date without overtime, RPA robot helps you get the job done
Pytorch深度学习快速入门教程 -- 土堆教程笔记(三)
[Android]如何使用RecycleView in Kotlin project