当前位置:网站首页>(4)UART应用设计及仿真验证2 —— RX模块设计(无状态机)
(4)UART应用设计及仿真验证2 —— RX模块设计(无状态机)
2022-07-05 22:54:00 【少卿不在大理寺】
去除了状态机的RX模块要怎么设计呢?先梳理一下要完成哪些模块
1)判断什么时候收到数据?即检测帧数据中的start位,通过检测出现下降沿从而判定开始接收数据。—— negedge_detect
2)判断接收单帧数据的时间段?从检测到start位开始,到最后的停止位传完。总共跨越11个bit位,然后再第12个bit位的中途就可以关闭。——start_recieve_flag
3)每bit计数clk,进入数据接收区域了再开始算,脱离这个区域就清零。——baud_cnt
4)计算bit数,1bit起始位+8bit有效数据位+1bit校验位+2bit停止位。—— bit_cnt
5)数据传输,有效数据位的数据接收,bit_cnt>=1,bit_cnt<=8——rx_data
6)数据校验,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
边栏推荐
- 媒体查询:引入资源
- Leetcode weekly The 280 game of the week is still difficult for the special game of the week's beauty team ~ simple simulation + hash parity count + sorting simulation traversal
- 一文搞定class的微观结构和指令
- 3:第一章:认识JVM规范2:JVM规范,简介;
- VOT toolkit environment configuration and use
- Selenium+pytest automated test framework practice
- d3dx9_ What if 29.dll is missing? System missing d3dx9_ Solution of 29.dll file
- Hcip day 12 (BGP black hole, anti ring, configuration)
- Leetcode buys and sells stocks
- Nacos installation and service registration
猜你喜欢
基于脉冲神经网络的物体检测
Ultrasonic sensor flash | LEGO eV3 Teaching
2022 R2 mobile pressure vessel filling review simulation examination and R2 mobile pressure vessel filling examination questions
[secretly kill little buddy pytorch20 days] - [Day2] - [example of picture data modeling process]
SPSS analysis of employment problems of college graduates
Paddy serving v0.9.0 heavy release multi machine multi card distributed reasoning framework
Debian 10 installation configuration
The difference between MVVM and MVC
Matlab smooth curve connection scatter diagram
Element positioning of Web Automation
随机推荐
513. Find the value in the lower left corner of the tree
Boring boring
透彻理解JVM类加载子系统
SPSS analysis of employment problems of college graduates
Nacos installation and service registration
Registration of Electrical Engineering (elementary) examination in 2022 and the latest analysis of Electrical Engineering (elementary)
npm ELECTRON_ Mirror is set as domestic source (npmmirror China mirror)
Thoroughly understand JVM class loading subsystem
MoCo: Momentum Contrast for Unsupervised Visual Representation Learning
Media query: importing resources
CJ mccullem autograph: to dear Portland
Week 17 homework
关于MySQL的30条优化技巧,超实用
Vcomp110.dll download -vcomp110 What if DLL is lost
Global and Chinese markets for welding products 2022-2028: Research Report on technology, participants, trends, market size and share
Arduino 测量交流电流
Nail error code Encyclopedia
一文搞定JVM常见工具和优化策略
Use of metadata in golang grpc
Getting started stm32--gpio (running lantern) (nanny level)