当前位置:网站首页>异步时钟亚稳态 的解决方案——多bit信号
异步时钟亚稳态 的解决方案——多bit信号
2022-04-23 11:59:00 【Starry丶】
1. 多bit标志 采样中间态——Gray码
这个是多bit信号特有的新问题,最早在异步FIFO中读写指针的跨时钟域时被发现。
由于是多bit二进制变化,所以很可能由于时钟偏斜,时钟沿不同时到达各触发器,导致那几个bit位的变化不是同时的
所以异步时钟很可能采样到跳变过程的中间态
例如俩触发器从01跳变10,由于时钟偏斜第一位posedge clk先到、第二位posedge clk后到,所以第一个触发器D端变成1早、第二个触发器D端变成0晚,故出现中间态11可能被异步时钟采样到。
所以如果该信号位数比较多,那么中间态也会有很多
注意该问题的本质是每个时钟周期都涉及多个触发器的电平变化,那么能不能减少每个时钟沿处 电平变化的触发器个数?
用数值变化过程中不会出现第三值的Gray码即可
例如Gray码信号从01变成11,就不会出现中间值。要么采样到旧值01,要么就是新值11
2. 多bit数据信号
这个异步FIFO就行啊,一端写、一端读,读写时钟不一样。
但是异步FIFO实际上并未解决数据信号跨时钟域问题,而是把问题转化成多bit读写指针的跨时钟域问题了。
所以对于读写指针而言,需要电平同步 + Grey码的方式进行处理,同时读写逻辑也并不关注读写指针的变化过程,因此快采慢的多采样问题和慢采快的漏数问题都不会产生影响。
因此,full和empty标志并不能实时反应当前时刻FIFO的真实状态,但这种错误并不会造成满写和空读的问题。
详情见异步FIFO设计
版权声明
本文为[Starry丶]所创,转载请带上原文链接,感谢
https://blog.csdn.net/Starry__/article/details/124353881
边栏推荐
- Understanding of MQ
- The listing of saiweidian Technology Innovation Board broke: a decrease of 26% and the market value of the company was 4.4 billion
- PSCP basic usage
- 亿级流量架构,服务器如何扩容?写得太好了!
- Blog post navigation (real-time update)
- MQ is easy to use in laravel
- Redis learning 5 - high concurrency distributed lock practice
- 2022 love analysis · panoramic report of industrial Internet manufacturers
- 云呐|固定资产盘点中,支持多种盘点方式(资产清查盘点)
- Database Navigator 使用默认MySQL连接提示:The server time zone value ‘Öйú±ê׼ʱ¼ä’ is unrecognized or repres
猜你喜欢
A detailed explanation of head pose estimation [collection of good articles]
Force buckle - 70 climb stairs
Interpreting the art created by robots
Relu function of activation function
Win10 splash screen after startup
On the integration of steam education in early childhood education
5-minute NLP: text to text transfer transformer (T5) unified text to text task model
Tan Xiang, CEO of Kechuang · Pera software: the essence of zero trust is digital security. To B should also deeply study the user's mind
1.Electron开发环境搭建
云呐|固定资产盘点中,支持多种盘点方式(资产清查盘点)
随机推荐
IM表达式如何工作(5.3)
Castle.DynamicProxy实现事务单元控制
论文解读(CGC)《CGC: Contrastive Graph Clustering for Community Detection and Tracking》
IDEA 代码格式化插件Save Actions
Cognition and R & D technology of micro robot
激活函数之relu函数
Yunna | fixed assets inventory supports multiple inventory methods (asset inventory)
软件测试对于减少程序BUG有多大帮助?
亿级流量架构,服务器如何扩容?写得太好了!
云呐|如何管理好公司的固定资产,固定资产管理怎么做
Nativeformysql connects to MySQL 8 prompt: 1251 - client does not support authentication protocol
Yunna | how to manage the company's fixed assets and how to manage fixed assets
Tclerror: no display name and no $display environment variable
远程访问家里的树莓派(上)
简易投票系统数据库设计
Fabric 1.0源代码分析(33) Peer #peer channel命令及子命令实现
第二十五课 类的静态成员变量
Nacos Foundation (8): login management
golang之笔试题&面试题01
Master slave replication configuration of MySQL