当前位置:网站首页>(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边栏推荐
- 傅里叶分析概述
- Spectrum analysis of ADC sampling sequence based on stm32
- 2:第一章:认识JVM规范1:JVM简介;
- Paddle Serving v0.9.0 重磅发布多机多卡分布式推理框架
- d3dx9_ What if 29.dll is missing? System missing d3dx9_ Solution of 29.dll file
- 一文搞定JVM常见工具和优化策略
- 一文搞定class的微觀結構和指令
- Non rigid / flexible point cloud ICP registration
- Alibaba Tianchi SQL training camp task4 learning notes
- C Primer Plus Chapter 9 question 10 binary conversion
猜你喜欢

Thoroughly understand JVM class loading subsystem

MoCo: Momentum Contrast for Unsupervised Visual Representation Learning

Tensor attribute statistics

Alibaba Tianchi SQL training camp task4 learning notes

TypeError: this. getOptions is not a function

一文搞定垃圾回收器

VOT toolkit environment configuration and use

Negative sampling

一文搞定JVM常见工具和优化策略

Using LNMP to build WordPress sites
随机推荐
Expectation, variance and covariance
d3dx9_ What if 29.dll is missing? System missing d3dx9_ Solution of 29.dll file
First, redis summarizes the installation types
openresty ngx_lua正則錶達式
实现反向代理客户端IP透传
Leetcode buys and sells stocks
秒杀系统的设计与实现思路
Codeforces Global Round 19
PLC编程基础之数据类型、变量声明、全局变量和I/O映射(CODESYS篇 )
What is the process of building a website
关于MySQL的30条优化技巧,超实用
Go语言实现原理——锁实现原理
透彻理解JVM类加载子系统
Openresty ngx Lua regular expression
东南亚电商指南,卖家如何布局东南亚市场?
2.13 summary
Krypton Factor-紫书第七章暴力求解
[speech processing] speech signal denoising and denoising based on MATLAB low-pass filter [including Matlab source code 1709]
Function default parameters, function placeholder parameters, function overloading and precautions
Common model making instructions