当前位置:网站首页>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)

Flink_CDC搭建及简单使用

Golang go-redis cluster模式下不断创建新连接,效率下降问题解决

使用 Postman 工具高效管理和测试 SAP ABAP OData 服务的试读版

【pytorch】pytorch 自动求导、 Tensor 与 Autograd

Bika LIMS 开源LIMS集—— SENAITE的使用(检测流程)

自动化测试—web自动化—selenium初识

【NLP】什么是模型的记忆力!

.NET 20th Anniversary Interview - Zhang Shanyou: How .NET technology empowers and changes the world
![[pytorch] pytorch automatic derivation, Tensor and Autograd](/img/99/c9632a7d3f70a13e1e26b9aa67b8b9.png)
[pytorch] pytorch automatic derivation, Tensor and Autograd
随机推荐
Golang go-redis cluster模式下不断创建新连接,效率下降问题解决
jeecg master-slave database read-write separation configuration "recommended collection"
【TypeScript】深入学习TypeScript类型操作
研发过程中的文档管理与工具
【网络通信三】研华网关Modbus服务设置
【7.29】代码源 - 【排列】【石子游戏 II】【Cow and Snacks】【最小生成数】【数列】
The arm button controls the flashing of the led light (embedded button experiment report)
LeetCode_733_图像渲染
智能垃圾桶(九)——震动传感器(树莓派pico实现)
How to install CV2 smoothly in Anaconda
The article you worked so hard to write may not be your original
Handling write conflicts under multi-master replication (3) - Convergence to a consistent state and custom conflict resolution logic
Automated testing - web automation - first acquaintance with selenium
牛客网刷题(一)
Baidu cloud web speed playback (is there any website available)
LeetCode_733_Image rendering
使用 Postman 工具高效管理和测试 SAP ABAP OData 服务的试读版
【7.29】Code Source - 【Arrangement】【Stone Game II】【Cow and Snacks】【Minimum Number of Spawns】【Sequence】
你辛辛苦苦写的文章可能不是你的原创
牛客 HJ20 密码验证合格程序