当前位置:网站首页>Verilog实现占空比为5/18的9分频
Verilog实现占空比为5/18的9分频
2022-07-31 16:46:00 【FPGA硅农】
设计思路:
设置一个上升沿触发的计数器和下降沿触发的计数器,其占空比均为6/18,且为9分频,则这两个时钟在相位上相差半个周期,如果将它们相与,根据与的性质,得到的结果应该是一个占空比为6/18-1/18=5/18的9分频时钟。
或者
分别设置一个上升沿和下降沿触发的计数器,其占空比均为4/18,且为9分频,则若将这两个时钟相或,得到的结果应该是一个占空比为4/18+1/18=5/18的9分频时钟。
代码实现
设计部分
`timescale 1ns/1ns
module clk_divider //5/18分频器
( input clk_in,
input rst_n,
output clk_out
);
边栏推荐
- AcWing 1282. Search Keyword Problem Solution ((AC Automata) Trie+KMP)+bfs)
- Bika LIMS 开源LIMS集—— SENAITE的使用(检测流程)
- Handling Write Conflicts under Multi-Master Replication (1)-Synchronous and Asynchronous Conflict Detection and Conflict Avoidance
- Character pointer assignment [easy to understand]
- 牛客网刷题(三)
- GP 6 overall architecture study notes
- jeecg主从数据库读写分离配置「建议收藏」
- C language - function
- i.MX6ULL driver development | 33 - NXP original network device driver reading (LAN8720 PHY)
- UserAgent 解析
猜你喜欢
GP 6总体架构学习笔记
SringMVC中个常见的几个问题
Golang——从入门到放弃
利用PHP开发具有注册、登陆、文件上传、发布动态功能的网站
IP protocol from 0 to 1
Golang 小数操作之判断几位小数点与四舍五入
EF Core 2.2中将ORM框架生成的SQL语句输出到控制台
Design and Implementation of Compiler Based on C Language
C language - function
.NET 20th Anniversary Interview - Zhang Shanyou: How .NET technology empowers and changes the world
随机推荐
How C programs run 01 - the composition of ordinary executable files
牛客 HJ3 明明的随机数
【7.29】Code Source - 【Arrangement】【Stone Game II】【Cow and Snacks】【Minimum Number of Spawns】【Sequence】
研发过程中的文档管理与工具
【网络通信三】研华网关Modbus服务设置
牛客 HJ18 识别有效的IP地址和掩码并进行分类统计
[7.28] Code Source - [Fence Painting] [Appropriate Pairs (Data Enhanced Version)]
基于WPF重复造轮子,写一款数据库文档管理工具(一)
Flutter gets the height of the status bar statusbar
多主复制下处理写冲突(1)-同步与异步冲突检测及避免冲突
多主复制下处理写冲突(3)-收敛至一致的状态及自定义冲突解决逻辑
你辛辛苦苦写的文章可能不是你的原创
go mode tidy出现报错go warning “all“ matched no packages
【pytorch】pytorch 自动求导、 Tensor 与 Autograd
[pytorch] 1.7 pytorch and numpy, tensor and array conversion
Mariabackup implements incremental data backup for Mariadb 10.3
selenium的常见方法及使用
关于柱状图的经典画法总结
IP protocol from 0 to 1
杰理语音芯片ic玩具芯片ic的介绍_AD14NAD15N全系列开发