当前位置:网站首页>(4) UART application design and simulation verification 2 - TX module design (stateless machine)
(4) UART application design and simulation verification 2 - TX module design (stateless machine)
2022-07-05 23:10:00 【Shaoqing is not in Dali Temple】
Preface : Looking back on this small project again, it has been a few months , In the follow-up study , The new teacher is constantly emphasizing , Try to use less state machines in practical work , When sorting out the article, I forgot what he said at that time . So I try to rewrite it myself UART, Organize a version without a state machine .
Here are a few basic logical points to review again :
1) The complete one frame data format contains : Start bit , Valid data bits , Check bit , Stop bit ;
2) Calculation sheet bit Data transmission time : utilize baoud( Baud rate ) and clk( The system clock ), Baud rate unit bit per second, The clock Hz Company time per second , So the clock divided by the baud rate is time per bit, That is, every bit Corresponding to how many clock cycles ;
3) Reference signal : Transmission signal baoud_cnt_half, Every time bit Half way through the count , To transfer data ; Switch the counting signal baoud_cnt_end, Every time bit When the count is finished , Enter the next counting cycle ; Bit count bit_cnt, Calculate the number of bits transferred in a frame of data ; Transmission process flag signal start_flag, Throughout every data transmission .
Code up :
//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
边栏推荐
- Dynamic memory management (malloc/calloc/realloc)
- 数学公式截图识别神器Mathpix无限使用教程
- Global and Chinese markets for welding products 2022-2028: Research Report on technology, participants, trends, market size and share
- How to quickly understand complex businesses and systematically think about problems?
- H5c3 advanced - player
- fibonacci search
- 2022.02.13 - SX10-30. Home raiding II
- Using LNMP to build WordPress sites
- Registration of Electrical Engineering (elementary) examination in 2022 and the latest analysis of Electrical Engineering (elementary)
- 判断二叉树是否为完全二叉树
猜你喜欢
Douban scoring applet Part-2
Thoroughly understand JVM class loading subsystem
Southeast Asia e-commerce guide, how do sellers layout the Southeast Asia market?
Nangou Gili hard Kai font TTF Download with installation tutorial
基于STM32的ADC采样序列频谱分析
Using LNMP to build WordPress sites
2:第一章:认识JVM规范1:JVM简介;
LeetCode145. Post order traversal of binary tree (three methods of recursion and iteration)
VOT toolkit environment configuration and use
Expectation, variance and covariance
随机推荐
东南亚电商指南,卖家如何布局东南亚市场?
Selenium+Pytest自动化测试框架实战
Global and Chinese markets for welding products 2022-2028: Research Report on technology, participants, trends, market size and share
The maximum happiness of the party
Overview of Fourier analysis
The method and principle of viewing the last modification time of the web page
数据库基础知识(面试)
Tensor attribute statistics
Judge whether the binary tree is a complete binary tree
Summary of binary tree recursive routines
Krypton Factor-紫书第七章暴力求解
Global and Chinese market of diesel fire pump 2022-2028: Research Report on technology, participants, trends, market size and share
Use of grpc interceptor
Hainan Nuanshen tea recruits warmhearted people: recruitment of the product experience recommender of Nuanshen multi bubble honey orchid single cluster
How to quickly understand complex businesses and systematically think about problems?
LeetCode102. Sequence traversal of binary tree (output by layer and unified output)
Leetcode buys and sells stocks
Hcip day 11 (BGP agreement)
【Note17】PECI(Platform Environment Control Interface)
Southeast Asia e-commerce guide, how do sellers layout the Southeast Asia market?