当前位置:网站首页>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
边栏推荐
- 创建一个 Dapp,为什么要选择波卡?
- 【温度预警程序de开发】事件驱动模型实例运用
- leetcode: 529. Minesweeper Game
- Handwriting Currying - toString Comprehension
- Meteorological data processing example - matlab string cutting matching and R language date matching (data splicing)
- 2022华数杯数学建模A题环形振荡器的优化设计思路思路代码分享
- Imitation SBUS fixed with serial data conversion
- Open Source Summer | How OpenHarmony Query Device Type (eTS)
- PHP operation mangoDb
- mysql索引
猜你喜欢

leetcode: 529. 扫雷游戏

Jenkins manual (2) - software configuration

Oracle临时表空间作用

The JVM collection that Alibaba's top architects have summarized for many years, where can't I check it!

2022 Huashu Cup Mathematical Modeling Question A Optimization Design Ideas for Ring Oscillators Code Sharing

What is CRM Decision Analysis Management?
![[Strong Net Cup 2022] WP-UM](/img/3d/caeab05ddca278af274dbf6e2f8ba1.png)
[Strong Net Cup 2022] WP-UM

Voice-based social software development - making the most of its value

微服务 技术栈

哪位大佬有20年4月或者1月的11G GI和ojvm补丁呀,帮忙发下?
随机推荐
NowCoderTOP35-40——持续更新ing
What is the function of the regular expression replaceAll() method?
What is CRM Decision Analysis Management?
[Android]如何使用RecycleView in Kotlin project
IO流篇 -- 基于io流实现文件夹拷贝(拷贝子文件夹及子文件夹内文件)满满的干货
Qiu Jun, CEO of Eggplant Technology: Focus on users and make products that users really need
项目成本控制如何帮助项目成功?
matcher中find,matches,lookingAt匹配字符串的不同之处说明
The founder of the DFINITY Foundation talks about the ups and downs of the bear market, and where should DeFi projects go?
Pytorch Deep Learning Quick Start Tutorial -- Mound Tutorial Notes (3)
Egg framework usage (1)
PHP 操作mangoDb
Oracle temporary table space role
2022华数杯数学建模思路分析交流
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
电竞、便捷、高效、安全,盘点OriginOS功能的关键词
SD NAND Flash简介!
第五章:activiti流程分流判断,判断走不同的任务节点
dotnet OpenXML parsing PPT charts Getting started with area charts
static linking and dynamic linking