当前位置:网站首页>(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
边栏推荐
- Leecode learning notes
- Leetcode sword finger offer brush questions - day 21
- 一文搞定垃圾回收器
- Creative mode 1 - single case mode
- 2022 registration examination for safety management personnel of hazardous chemical business units and simulated reexamination examination for safety management personnel of hazardous chemical busines
- poj 2762 Going from u to v or from v to u? (推断它是否是一个薄弱环节图)
- MySQL (1) -- related concepts, SQL classification, and simple operations
- 数据库基础知识(面试)
- AsyncSocket长连接棒包装问题解决
- Negative sampling
猜你喜欢
[untitled]
Initial experience | purchase and activate typora software
Registration and skills of hoisting machinery command examination in 2022
Use of metadata in golang grpc
基于脉冲神经网络的物体检测
Creative mode 1 - single case mode
Realize reverse proxy client IP transparent transmission
SPSS analysis of employment problems of college graduates
Go语言实现原理——Map实现原理
实现反向代理客户端IP透传
随机推荐
[untitled]
2: Chapter 1: understanding JVM specification 1: introduction to JVM;
Multi view 3D reconstruction
MoCo: Momentum Contrast for Unsupervised Visual Representation Learning
Element positioning of Web Automation
判斷二叉樹是否為完全二叉樹
Basic knowledge of database (interview)
(4)UART应用设计及仿真验证2 —— TX模块设计(无状态机)
一文搞定JVM的内存结构
audiopolicy
Commonly used probability distributions: Bernoulli distribution, binomial distribution, polynomial distribution, Gaussian distribution, exponential distribution, Laplace distribution and Dirac delta d
VS2010编写动态链接库DLL和单元测试,转让DLL测试的正确性
Expectation, variance and covariance
(4)UART应用设计及仿真验证2 —— RX模块设计(无状态机)
Krypton Factor-紫书第七章暴力求解
Marginal probability and conditional probability
Shell: operator
yate.conf
LeetCode——Add Binary
Non rigid / flexible point cloud ICP registration