当前位置:网站首页>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
边栏推荐
- 机器学习-基础知识 - Precision, Recall, Sensitivity, Specificity, Accuracy, FNR, FPR, TPR, TNR, F1 Score, Bal
- 第三章 : redis数据结构种类
- three.js debugging tool dat.gui use
- Data Middle Office Construction (10): Data Security Management
- 第五章:activiti流程分流判断,判断走不同的任务节点
- Oracle 19.3 restart 环境
- 使用工具类把对象中的null值转换为空字符串(集合也可以使用)
- ffmpeg drawtext add text watermark
- Introduction to SD NAND Flash!
- LeetCode 216. Combined Sum III (2022.08.04)
猜你喜欢
首次去中心化抢劫?近2亿美元损失:跨链桥Nomad 被攻击事件分析
2022 Huashu Cup Mathematical Modeling Question A Optimization Design Ideas for Ring Oscillators Code Sharing
MySQL advanced (twenty-seven) database index principle
Data Middle Office Construction (10): Data Security Management
Qiu Jun, CEO of Eggplant Technology: Focus on users and make products that users really need
Oracle temporary table space role
Pytorch Deep Learning Quick Start Tutorial -- Mound Tutorial Notes (3)
STM32+ULN2003驱动28BYJ4步进电机(根据圈数正转、反转)
告白数字化转型时代:麦聪软件以最简单的方式让企业把数据用起来
egg框架使用(二)
随机推荐
项目成本控制如何帮助项目成功?
[Unity] [UGUI] [Display text on the screen]
Development common manual link sharing
MySQL advanced (twenty-seven) database index principle
公众号如何运维?公众号运维专业团队
多线程(进阶) - 2.5w字总结
IO流篇 -- 基于io流实现文件夹拷贝(拷贝子文件夹及子文件夹内文件)满满的干货
Handwriting Currying - toString Comprehension
PHP 操作mangoDb
蚁剑webshell动态加密连接分析与实践
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
PHP operation mangoDb
攻防世界-PWN-new_easypwn
three.js debugging tool dat.gui use
2022华数杯数学建模思路分析交流
微服务 技术栈
【MindSpore Easy-Diantong Robot-01】You may have seen many knowledge quiz robots, but this one is a bit different
开发常用手册链接分享
2022 Huashu Cup Mathematical Modeling Question A Optimization Design Ideas for Ring Oscillators Code Sharing
High-quality DeFi application building guide to help developers enjoy DeFi Summer