FPGA学习笔记之格雷码、边沿检测、门控时钟
一、格雷码
格雷码的优点主要是进位时只有一位跳变,误码率低。
1、二进制转格雷码
我们观察下表:
二进制码 | 格雷码 |
00 | 00 |
01 | 01 |
10 | 11 |
11 | 10 |
二进制码表示为B[],格雷码表示为G[],则有
G(i) = B(i),i为最高位
G(i-1) = B(i) xor B(i-1),i非最高位
用verilog可以这样写
reg [WIDTH-:] bin;
reg [WIDTH-:] gray;
parameter WIDTH = ;
always @(posedge clk or negedge rst_n) begin
if (!rst)
gray <= 'b0;
else
gray <= bin^(bin>>); //左移一位异或,从而最高位不变,次高与最高异或
end
2、格雷码转二进制
对照上表,一张图可以理解:
verilog代码可以这样写
reg [WIDTH-:] bin;
reg [WIDTH-:] gray;
parameter WIDTH = ;
always @(posedge clk or negedge rst_n) begin
if(!rst)
bin = 'b0;
else
bin = bin^(gray>>);
end
二、边沿检测
输入一个跳变信号,如按键输入、时钟输入,输出指示高电平、低电平或者跳变(双边沿),综合出的电路如下:
基本思想是利用同步时钟控制两个级联的D触发器,待检测信号输入到第一个D触发器的输入端,因为D触发器之间有一个时钟的时间延迟,因此取两个D触发器之间的信号(命名为dly1)和后一个D触发器的输出(命名为dly2),如果时钟是上升的,那么第一个D触发器输出(即dly1)为高电平,第二个为低电平,则(dly1)&(~dly2)为高,指示了上升沿,下降沿类似,双沿我们自然可以想到,任一个边沿信号为高,则输出指示为高,用一个异或门即可解决。实践中,两个D触发器还可能存在误触发,可以增加D触发器的个数,来降低错误。
三、门控时钟
我们知道,时序电路里总会有一个sys_clk,这个clk一般是从外部晶体振荡器引进来的,但是我们也知道世界上没有觉得理想的器件和路径,引入的时钟可能因为晶体各种噪声干扰或者突然“抽风”了一下,导致时钟抖动,这对时序电路来说是致命的。那么,怎么解决这种情况呢???
一种想法是输入时钟sys_clk的同时,给一个时钟使能信号clk_en,两者经过一个&门,这样输出可能会好点
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAoAAAACwCAIAAAAQSkjwAA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OroBAAAQgm4AAAB0dAMAACAE3QAAAOjoBgAAQAi6AQAA0NENAACAEHQDAACgoxsAAAAh6AYAAEBHNwAAAELQDQAAgI5uAAAAhKAbAAAAHd0AAAAIQTcAAAA6ugEAABCCbgAAAHR0AwAAIATdAAAA6OgGAABACLoBAADQ0Q0AAIAQdAMAAKCjGwAAACHoBgAAQEc3AAAAQtANAACAjm4AAACEoBsAAACd/wNeZOg7la+bbQAAAABJRU5ErkJggg==" alt="" />
该有的还是会有,我们可以看到时钟在clk高半周尾部使能的时候,可能产生极短的脉冲(毛刺),不言而喻,这个电路没有达到理想效果。我们改怎么做呢???如题,“门控时钟”就是解决这个的,电路如下
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAA68AAAEgCAIAAADUg9KaAAAf30lEQVR4nO3dzVnruhoG0NRFQamDEpgxODUwpQCKYEIJuwifgZPgH8mWHf9IaK2Hwb2Q2J+FUd6jLUuXBgAAanU5uwAAADiNNAwAQL2kYQAA6iUNAwBQL2kYAIB6ScMAANRLGgYAoF7SMAAA9ZKGAQColzQMAEC9pGEAAOolDQMAUC9pGACAeknDAADUSxoGAKBe0jAAAPWShgEAqJc0DABAvaRhAADqJQ0DAFAvaRgAgHpJwwAA1EsaBgCgXtIwAAD1koYBAKiXNAwAQL2kYQAA6iUNAwBQL2kYAIB6ScMAANRLGgYAoF7SMAAA9ZKGAQColzQMAEC9pGEAAOolDQMAUC9pGACAeknDAADUSxoGAKBe0jAAAPWShgEAqJc0DABAvaRhAADqJQ0DAFAvaRgAgHpJwwAA1EsaBgCgXtIwAAD1koYBAKiXNAwAQL2kYQAA6iUNAyt8f1xeXy/vXz9N0zTN58fr5fX15evfVof/+Xq/vH58bnW4HbSXfPu6t0PTNM2/r5fXzo8+vrvv+vl6//1R3hcIUA1pGFhh1zR8C5RZh8VgGu6H3UDqlYYB8iMNAytIw+NLvo8K/37zMU7cHyFumu9r9hcIUA1pGFhBGh5d8m20eBB8b9fy/tZrG2kYIB/SMBAy82/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dpPBBJKzpOx/Bs2tzr075Dv5IzeX03N4UzM4K9kAnG4Ho8k7ScCCSXpyVjccu7v+Sz6Us7rbaaLfgz0/raST61xGmbwUWKBCFyJx5P5nSiiyXo+xn7TZsxft3n/OzljmxSVHDWHkzGDT5EMROBKPJ7M70QRTd7zcesPsz3nt7Z8fv+8/4Phts+vsrXkuKE0p2IGnyEcaMs12IrkL0IIKfMpGd5k4LlePNyA4NYvBv/5uP3fA89VpLjkXHw5h5Mwg8+TD7TlGmxF8hchhJT9lIzfTW1g6msySzZe8Py3v5grOYN7r/nUGnGZwd8SEbTi6mur8/w7P/ywOjkrjz9T8/Z9k9fNp7auU3LUHKIzgy8hJWjF1ddW5/l3fvhhOSvAe2bwhQQFx3PdRdDtWej2wONzYoA3zODLyQqO57qLoNuz0O2Bx+fEAG+YwVcRFxzJFRdHh+eiw0M+EecGmGMGX0ticCRXXBwdnosOD/lEnBtgjhl8A6HBMVxr0XR1Rro62DNyeoBJZvBt5AbHcK1F09UZ6epgz8jpASaZwTcTHezNVRZTJ+elk8M8NWcIGGcGLyE92JurLKZOzksnh3lqzhAwzgxeSICwH9dXZOnPTvoDzMFJAkaYwcvJEPbj+oos/dlJf4A5OEnACDN4FWKEPbiy4kt8jhIfWjLOU0IfUKz1KE6i9WmEtFpf3LzReoDsq3W6LOI8AQAAqSg5AABAKkoOAACQipIDAACkouQAAACpKDkAAEAqSg4AAJCKkgMAAKSi5AAAAKkoOQAAQCpKDgAAkIqSAwAApKLkAAAAqSg5AABAKkoOAACQipIDAACkouQAAACpKDkAAEAqSg4AAJCKkgMAAKSi5AAAAKkoOQAAQCpKDgAAkIqSAwAApKLkAAAAqSg5AABAKkoOAACQipIDAACkouQAAACpKDkAAEAq/wG/Zi/0c73e4QAAAABJRU5ErkJggg==" alt="" width="975" height="229" />
即相当于clk_en等下一个时钟才作用,没有产生毛刺。
FPGA学习笔记之格雷码、边沿检测、门控时钟的更多相关文章
- JVM学习笔记:字节码执行引擎
JVM学习笔记:字节码执行引擎 移步大神贴:http://rednaxelafx.iteye.com/blog/492667
- Hadoop学习笔记(9) ——源码初窥
Hadoop学习笔记(9) ——源码初窥 之前我们把Hadoop算是入了门,下载的源码,写了HelloWorld,简要分析了其编程要点,然后也编了个较复杂的示例.接下来其实就有两条路可走了,一条是继续 ...
- [转]OpenTK学习笔记(1)-源码、官网地址
OpenTK源码下载地址:https://github.com/opentk/opentk OpenTK使用Nuget安装命令:OpenTK:Install-Package OpenTK -Versi ...
- Flutter学习笔记(38)--自定义控件之组合控件
如需转载,请注明出处:Flutter学习笔记(38)--自定义控件之组合控件 在开始之前想先写点其他的,emm...就是今天在学习到自定义控件的时候,由于自定义控件这块一直是我的短板,无论是Andro ...
- 机器学习框架ML.NET学习笔记【8】目标检测(采用YOLO2模型)
一.概述 本篇文章介绍通过YOLO模型进行目标识别的应用,原始代码来源于:https://github.com/dotnet/machinelearning-samples 实现的功能是输入一张图片, ...
- Nginx学习笔记4 源码分析
Nginx学习笔记(四) 源码分析 源码分析 在茫茫的源码中,看到了几个好像挺熟悉的名字(socket/UDP/shmem).那就来看看这个文件吧!从简单的开始~~~ src/os/unix/Ngx_ ...
- Linux简易APR内存池学习笔记(带源码和实例)
先给个内存池的实现代码,里面带有个应用小例子和画的流程图,方便了解运行原理,代码 GCC 编译可用.可以自己上网下APR源码,参考代码下载链接: http://pan.baidu.com/s/1hq6 ...
- FPGA编程技巧系列之按键边沿检测
抖动的产生: 通常的按键所用开关为机械弹性开关,当机械触点断开.闭合时,由于机械触点的弹性作用,一个按键开关在闭合时不会马上稳定地接通,在断开时也不会一下子断开.因而在闭合及断开的瞬间均伴随有一连串的 ...
- FPGA学习笔记(八)—— 状态机设计实例之独立按键消抖
###### [该随笔中部分内容转载自小梅哥] ######### 独立按键消抖自古以来在单片机和FPGA中都是个不可避免的问题,首先,解释一下什么叫做按键抖动,如图,按键在按下和松开的那个瞬间存在大 ...
随机推荐
- HDU5331 : Simple Problem
因为是二分图,所以最大独立集$=$总点数$-$最大匹配. 因为是树,所以具有贪心性质,设$f_i$表示$i$是否与其孩子匹配,$a_i$表示$i$的孩子里$f$为$0$的个数,则$f_i=[a_i&g ...
- webpack: require.ensure与require AMD的区别
http://blog.csdn.net/zhbhun/article/details/46826129
- STL 的运用 istringstream的运用
单词数 Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submiss ...
- POJ 1106 Transmitters(计算几何)
题目链接 切计算几何,感觉计算几何的算法还不熟.此题,枚举线段和圆点的直线,平分一个圆 #include <iostream> #include <cstring> #incl ...
- android实现两个页面跳转
1.实现两个界面之间转换 在安卓当中,最常见的就是按下按钮之后跳转到第二个界面. 关键代码很简单: 这是以bn2按钮为例,当前Activity为MainActivity,跳转到Registration ...
- 访问google,youtube
一.找到host文件 windows : C:\windows\system32\drivers\etc mac os: /private/etc linux : /etc 二.修改host文件 ht ...
- iOS定时器
主要使用的是NSTimer的scheduledTimerWithTimeInterval方法来每1秒执行一次timeFireMethod函数,timeFireMethod进行倒计时的一些操作,完成时把 ...
- 纪念逝去的岁月——C/C++快速排序
快速排序 代码 #include <stdio.h> void printList(int iList[], int iLen) { ; ; i < iLen; i++) { pri ...
- css设置移动端checkbox和radio样式
复选框Checkbox是Web应用常用控件,随处可见,原生的复选框控件一般就像下面这样: 这取决于操作系统和浏览器,有些时候,这种样子并不能满足设计要求,这时需要更为精致的复选框样式.以往只有少数浏览 ...
- [CareerCup] 18.4 Count Number of Two 统计数字2的个数
18.4 Write a method to count the number of 2s between 0 and n. 这道题给了我们一个整数n,让我们求[0,n]区间内所有2出现的个数,比如如 ...