当前位置:网站首页>UART Application Design and Simulation Verification 2 - TX Module Design (Stateless machine)
UART Application Design and Simulation Verification 2 - TX Module Design (Stateless machine)
2022-07-05 23:10:00 【Shaoqing n'est pas au temple Dali.】
Préface:C'est quelques mois après avoir revu ce petit projet,Dans les études ultérieures,Le nouveau professeur n'arrête pas de souligner,Réduire au minimum l'utilisation de la machine d'état dans le travail réel,J'ai oublié ce qu'il a dit quand j'ai trié l'article.Alors j'ai essayé de le réécrire moi - mêmeUART,Organiser une version sans machine d'état.
Voici quelques points logiques de base à revoir:
1)Le format complet de données d'un cadre contient:Position initiale,Bits de données valides,Bit de contrôle,Stop bit;
2)Feuille de calculbitTemps de transmission des données:Utilisationbaoud(Taux de Baud)Etclk(Horloge système),Unités de taux de Baudbit per second,HorlogeHzUnitétime per second ,Donc l'horloge divisée par le taux de Baud donnetime per bit,C'est - à - direbitCombien de cycles d'horloge correspondent;
3)Signal de référence:Signal de transmissionbaoud_cnt_half,ChaquebitÀ mi - chemin,Transmission des données;Basculer le signal de comptagebaoud_cnt_end,ChaquebitQuand le comptage sera terminé,Passer au prochain cycle de comptage;Nombre de bitsbit_cnt,Calculer les chiffres passés dans un cadre de données;Signalisation du processus de transmissionstart_flag,Tout au long de chaque transmission de données.
Code supérieur:
//date:2022.6.30
//edgar.yao
//uart_tx block
module uart_tx(
input clk,
input rst_n,
input[7:0] cmd_data,
input data_valid,
output tx,
output tx_read
边栏推荐
- Multi camera stereo calibration
- Common model making instructions
- Registration of Electrical Engineering (elementary) examination in 2022 and the latest analysis of Electrical Engineering (elementary)
- Calculating the number of daffodils in C language
- 基于STM32的ADC采样序列频谱分析
- LabVIEW打开PNG 图像正常而 Photoshop打开得到全黑的图像
- 3D reconstruction of point cloud
- Use of metadata in golang grpc
- [speech processing] speech signal denoising based on Matlab GUI Hanning window fir notch filter [including Matlab source code 1711]
- leecode-学习笔记
猜你喜欢
Non rigid / flexible point cloud ICP registration
利用LNMP实现wordpress站点搭建
Selenium+Pytest自动化测试框架实战
TypeError: this. getOptions is not a function
Paddy serving v0.9.0 heavy release multi machine multi card distributed reasoning framework
Matlab smooth curve connection scatter diagram
Nangou Gili hard Kai font TTF Download with installation tutorial
基于STM32的ADC采样序列频谱分析
Southeast Asia e-commerce guide, how do sellers layout the Southeast Asia market?
audiopolicy
随机推荐
Nail error code Encyclopedia
Overview of Fourier analysis
Three. JS VR house viewing
Nacos installation and service registration
Vcomp110.dll download -vcomp110 What if DLL is lost
Global and Chinese markets for reciprocating seal compressors 2022-2028: Research Report on technology, participants, trends, market size and share
TypeError: this. getOptions is not a function
【Note17】PECI(Platform Environment Control Interface)
2.13 summary
audiopolicy
513. Find the value in the lower left corner of the tree
openresty ngx_lua请求响应
东南亚电商指南,卖家如何布局东南亚市场?
CorelDRAW plug-in -- GMS plug-in development -- new project -- macro recording -- VBA editing -- debugging skills -- CDR plug-in (2)
一文搞定class的微觀結構和指令
Shell: operator
Go语言实现原理——Map实现原理
openresty ngx_ Lua request response
Three.JS VR看房
The method and principle of viewing the last modification time of the web page