当前位置:网站首页>异步时钟亚稳态 的解决方案——多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
边栏推荐
- 数据库如何填充IM表达式(IM 5.4)
- Chapter 4 specifies the attribute of the inmemory column on the no inmemory table for im enabled filling objects: examples (Part IV of im-4.4)
- 第四章 为IM 启用填充对象之启用和禁用表空间的IM列存储(IM 4.5)
- 用户接口和IM表达式(IM 5.6)
- 1.Electron开发环境搭建
- Next.js 静态数据生成以及服务端渲染的方式
- Analyzing the role of social robots in basic science
- Idea code quality specification plug-in sonarlint
- Windows11 安装MySQL服务 提示:Install/Remove of the Service Denied
- Nacos Foundation (9): Nacos configuration management from single architecture to microservices
猜你喜欢
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
IDEA 中 .properties文件的中文显示乱码问题的解决办法
Yunna | how to manage the company's fixed assets and how to manage fixed assets
Nacos Foundation (6): Nacos configuration management model
Laravel adds custom helper functions
Running error: unable to find or load the main class com xxx. Application
1.Electron开发环境搭建
Cognition and R & D technology of micro robot
Next. JS static data generation and server-side rendering
《通用数据保护条例》(GDPR)系列解读三:欧洲子公司如何向国内母公司回传数据?
随机推荐
Nacos Basics (5): getting started with Nacos configuration
golang之笔试题&面试题01
第四章 为IM 启用填充对象之启用和禁用列(IM-4.3 第三部分)
Siri gave the most embarrassing social death moment of the year
论文解读(CGC)《CGC: Contrastive Graph Clustering for Community Detection and Tracking》
抓包整理————tcp 协议[八]
Castle.DynamicProxy实现事务单元控制
Resolution due to AMD not found_ ags_ x64. DLL, unable to continue code execution. Reinstallation of the program may solve this problem, Forza horizon 5
Database Navigator 使用默认MySQL连接提示:The server time zone value ‘Öйú±ê׼ʱ¼ä’ is unrecognized or repres
On lambda powertools typescript
Fabric 1.0 source code analysis (33) implementation of peer channel command and subcommand
Next. JS static data generation and server-side rendering
Im architecture: CPU architecture: SIMD vector processing (im-2.3)
Idea database navigator plug-in
第四章 为物化视图启用和禁用IM列存储(IM 4.6)
第五章 使用In-Memory表达式优化查询(IM 5.1)
软件测试基础DAY2-用例执行
面了一圈,整理了这套面试题。。
PSCP 基本使用
ES6学习笔记二