当前位置:网站首页>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边栏推荐
- leecode-学习笔记
- fibonacci search
- 透彻理解JVM类加载子系统
- Arduino measures AC current
- 【Note17】PECI(Platform Environment Control Interface)
- Shell: operator
- Dynamic memory management (malloc/calloc/realloc)
- The difference between MVVM and MVC
- Douban scoring applet Part-2
- Sum of two numbers, sum of three numbers (sort + double pointer)
猜你喜欢

First, redis summarizes the installation types

数据库基础知识(面试)

Arduino measures AC current

Thoroughly understand JVM class loading subsystem

Spectrum analysis of ADC sampling sequence based on stm32

Leetcode daily question 1189 The maximum number of "balloons" simple simulation questions~

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

Codeforces Global Round 19

2022 G3 boiler water treatment simulation examination and G3 boiler water treatment simulation examination question bank

Alibaba Tianchi SQL training camp task4 learning notes
随机推荐
February 13, 2022 -5- maximum depth of binary tree
Methods modified by static
Data type, variable declaration, global variable and i/o mapping of PLC programming basis (CoDeSys)
Commonly used probability distributions: Bernoulli distribution, binomial distribution, polynomial distribution, Gaussian distribution, exponential distribution, Laplace distribution and Dirac delta d
派对的最大快乐值
2022 G3 boiler water treatment simulation examination and G3 boiler water treatment simulation examination question bank
Global and Chinese markets for children's amusement facilities 2022-2028: Research Report on technology, participants, trends, market size and share
[screen recording] how to record in the OBS area
6-axis and 9-axis IMU attitude estimation
Using LNMP to build WordPress sites
终于搞懂什么是动态规划的
leecode-学习笔记
Error when LabVIEW opens Ni instance finder
Three.JS VR看房
Three. JS VR house viewing
Sum of two numbers, sum of three numbers (sort + double pointer)
Overview of Fourier analysis
二叉树递归套路总结
LeetCode145. Post order traversal of binary tree (three methods of recursion and iteration)
Leetcode sword finger offer brush questions - day 21