当前位置:网站首页>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
);
边栏推荐
- 2022年Android 面经总结(附含面试题 | 源码 | 面试资料)
- 牛客 HJ17 坐标移动
- 【pytorch】1.7 pytorch与numpy,tensor与array的转换
- TestCafe之如何进行调试
- Anaconda如何顺利安装CV2
- Mariabackup implements incremental data backup for Mariadb 10.3
- Masterless replication system (2) - read and write quorum
- 【Yugong Series】July 2022 Go Teaching Course 022-Dictionary of Go Containers
- 【Yugong Series】July 2022 Go Teaching Course 021-Slicing Operation of Go Containers
- IP protocol from 0 to 1
猜你喜欢
Automated testing - web automation - first acquaintance with selenium
i.MX6ULL driver development | 33 - NXP original network device driver reading (LAN8720 PHY)
IP协议从0到1
基于C语言的编译器设计与实现
杰理语音芯片ic玩具芯片ic的介绍_AD14NAD15N全系列开发
阿里三面:MQ 消息丢失、重复、积压问题,如何解决?
【7.29】Code Source - 【Arrangement】【Stone Game II】【Cow and Snacks】【Minimum Number of Spawns】【Sequence】
智能垃圾桶(九)——震动传感器(树莓派pico实现)
[TypeScript]OOP
利用PHP开发具有注册、登陆、文件上传、发布动态功能的网站
随机推荐
useragent在线查找
6. 使用 Postman 工具高效管理和测试 SAP ABAP OData 服务
宁波大学NBU IT项目管理期末考试知识点整理
Golang——从入门到放弃
[pytorch] pytorch automatic derivation, Tensor and Autograd
【Yugong Series】July 2022 Go Teaching Course 020-Array of Go Containers
【愚公系列】2022年07月 Go教学课程 020-Go容器之数组
C language - function
你辛辛苦苦写的文章可能不是你的原创
flowable工作流所有业务概念
go基础部分学习笔记记录
server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none 失败
上传图片-微信小程序(那些年的坑记录2022.4)
牛客网刷题(二)
Flutter gets the height of the status bar statusbar
Golang 必知必会Go Mod命令
【Yugong Series】July 2022 Go Teaching Course 022-Dictionary of Go Containers
Summary of the implementation method of string inversion "recommended collection"
AcWing 1282. 搜索关键词 题解((AC自动机)Trie+KMP)+bfs)
Masterless replication system (2) - read and write quorum