当前位置:网站首页>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
边栏推荐
- Hcip day 12 (BGP black hole, anti ring, configuration)
- Global and Chinese markets for welding products 2022-2028: Research Report on technology, participants, trends, market size and share
- Roman numeral to integer
- Nail error code Encyclopedia
- Three.js-01 入门
- TypeError: this. getOptions is not a function
- Function default parameters, function placeholder parameters, function overloading and precautions
- Summary of binary tree recursive routines
- Leetcode buys and sells stocks
- Data type, variable declaration, global variable and i/o mapping of PLC programming basis (CoDeSys)
猜你喜欢
Overview of Fourier analysis
Use of metadata in golang grpc
CJ mccullem autograph: to dear Portland
Three. Js-01 getting started
Tensor attribute statistics
[screen recording] how to record in the OBS area
Finally understand what dynamic planning is
实现反向代理客户端IP透传
Southeast Asia e-commerce guide, how do sellers layout the Southeast Asia market?
Detailed explanation of pointer and array written test of C language
随机推荐
二叉树递归套路总结
Composition of interface
openresty ngx_lua正则表达式
媒体查询:引入资源
Hainan Nuanshen tea recruits warmhearted people: recruitment of the product experience recommender of Nuanshen multi bubble honey orchid single cluster
2022 R2 mobile pressure vessel filling review simulation examination and R2 mobile pressure vessel filling examination questions
Go语言实现原理——锁实现原理
一文搞定垃圾回收器
First, redis summarizes the installation types
Openresty ngx Lua regular expression
Southeast Asia e-commerce guide, how do sellers layout the Southeast Asia market?
npm ELECTRON_ Mirror is set as domestic source (npmmirror China mirror)
Global and Chinese market of networked refrigerators 2022-2028: Research Report on technology, participants, trends, market size and share
CorelDRAW plug-in -- GMS plug-in development -- new project -- macro recording -- VBA editing -- debugging skills -- CDR plug-in (2)
3:第一章:认识JVM规范2:JVM规范,简介;
一文搞定class的微观结构和指令
Shell: operator
Leetcode buys and sells stocks
Judge whether the binary tree is a complete binary tree
Déterminer si un arbre binaire est un arbre binaire complet