当前位置:网站首页>(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
边栏推荐
- Multi sensor fusion of imu/ optical mouse / wheel encoder (nonlinear Kalman filter)
- UVA – 11637 Garbage Remembering Exam (组合+可能性)
- 数据库基础知识(面试)
- Leetcode buys and sells stocks
- Hcip day 11 (BGP agreement)
- Selenium+pytest automated test framework practice
- 第十七周作业
- 证明 poj 1014 模优化修剪,部分递归 有错误
- 【经典控制理论】自控实验总结
- How to quickly understand complex businesses and systematically think about problems?
猜你喜欢
Selenium+Pytest自动化测试框架实战
Matlab smooth curve connection scatter diagram
视频标准二三事
3:第一章:认识JVM规范2:JVM规范,简介;
Use of grpc interceptor
[speech processing] speech signal denoising based on Matlab GUI Hanning window fir notch filter [including Matlab source code 1711]
2022 R2 mobile pressure vessel filling review simulation examination and R2 mobile pressure vessel filling examination questions
Go language implementation principle -- map implementation principle
Expectation, variance and covariance
February 13, 2022-4-symmetric binary tree
随机推荐
golang代码检查工具
Mathematical formula screenshot recognition artifact mathpix unlimited use tutorial
CorelDRAW plug-in -- GMS plug-in development -- new project -- macro recording -- VBA editing -- debugging skills -- CDR plug-in (2)
TypeError: this. getOptions is not a function
一文搞定垃圾回收器
openresty ngx_ Lua request response
Getting started stm32--gpio (running lantern) (nanny level)
Douban scoring applet Part-2
Initial experience | purchase and activate typora software
February 13, 2022-4-symmetric binary tree
Leetcode daily question 1189 The maximum number of "balloons" simple simulation questions~
There are 14 God note taking methods. Just choose one move to improve your learning and work efficiency by 100 times!
What is the process of building a website
判断二叉树是否为完全二叉树
Element positioning of Web Automation
Multi view 3D reconstruction
The PNG image is normal when LabVIEW is opened, and the full black image is obtained when Photoshop is opened
Yiwen gets rid of the garbage collector
两数之和、三数之和(排序+双指针)
It is proved that POJ 1014 module is optimized and pruned, and some recursion is wrong