当前位置:网站首页>(4) UART application design and simulation verification 2 - RX module design (stateless machine)
(4) UART application design and simulation verification 2 - RX module design (stateless machine)
2022-07-05 23:17:00 【Shaoqing is not in Dali Temple】
Removed state machine RX How to design the module ? First sort out which modules to complete
1) Determine when data is received ? That is to detect start position , By detecting the falling edge, it is determined to start receiving data .—— negedge_detect
2) Determine the time period for receiving single frame data ? Detected from start Bit start , Until the last stop bit is passed . A total of 11 individual bit position , Then again 12 individual bit It can be closed halfway through the bit .——start_recieve_flag
3) Every time bit Count clk, Enter the data receiving area and then start counting , Clear when you leave this area .——baud_cnt
4) Calculation bit Count ,1bit Start bit +8bit Valid data bits +1bit Check bit +2bit Stop bit .—— bit_cnt
5) The data transfer , Data reception of valid data bits ,bit_cnt>=1,bit_cnt<=8——rx_data
6) data verification ,check_mode_bit,^{rx_data,check_mode_bit} == CHECKMODE
//2022.6.30
//edgar.yao
//uart rx blaock
module uart_rx(
input clk,
input rst_n,
input rx,
output[7:0] rx_data,
output rx_data_valid
);
parameter CHECKMODE = 1;
parameter BAUD_NUM = 50_000_000/115200;
//(1)define all
边栏推荐
- ORB_ SLAM2/3
- 11gR2 Database Services for &quot;Policy&quot; and &quot;Administrator&quot; Managed Databases (文件 I
- poj 2762 Going from u to v or from v to u? (推断它是否是一个薄弱环节图)
- Calculating the number of daffodils in C language
- It is proved that POJ 1014 module is optimized and pruned, and some recursion is wrong
- SPSS analysis of employment problems of college graduates
- Commonly used probability distributions: Bernoulli distribution, binomial distribution, polynomial distribution, Gaussian distribution, exponential distribution, Laplace distribution and Dirac delta d
- Element operation and element waiting in Web Automation
- Summary of binary tree recursive routines
- Selenium+Pytest自动化测试框架实战
猜你喜欢
Mathematical formula screenshot recognition artifact mathpix unlimited use tutorial
如何快速理解复杂业务,系统思考问题?
Use of grpc interceptor
The method and principle of viewing the last modification time of the web page
LeetCode102. Sequence traversal of binary tree (output by layer and unified output)
[screen recording] how to record in the OBS area
数学公式截图识别神器Mathpix无限使用教程
2022 G3 boiler water treatment simulation examination and G3 boiler water treatment simulation examination question bank
Alibaba Tianchi SQL training camp task4 learning notes
一文搞定class的微观结构和指令
随机推荐
媒体查询:引入资源
Fix the memory structure of JVM in one article
Krypton Factor-紫书第七章暴力求解
Mathematical formula screenshot recognition artifact mathpix unlimited use tutorial
Week 17 homework
基于脉冲神经网络的物体检测
Starting from 1.5, build a micro Service Framework -- log tracking traceid
判斷二叉樹是否為完全二叉樹
派对的最大快乐值
查看网页最后修改时间方法以及原理简介
fibonacci search
Nacos installation and service registration
golang代码检查工具
AsyncSocket长连接棒包装问题解决
[speech processing] speech signal denoising and denoising based on Matlab GUI low-pass filter [including Matlab source code 1708]
Getting started stm32--gpio (running lantern) (nanny level)
[speech processing] speech signal denoising and denoising based on MATLAB low-pass filter [including Matlab source code 1709]
Multi sensor fusion of imu/ electronic compass / wheel encoder (Kalman filter)
Commonly used probability distributions: Bernoulli distribution, binomial distribution, polynomial distribution, Gaussian distribution, exponential distribution, Laplace distribution and Dirac delta d
[digital signal denoising] improved wavelet modulus maxima digital signal denoising based on MATLAB [including Matlab source code 1710]