2110 views|1 replies

165

Posts

0

Resources
The OP
 

Are there any restrictions on the setting of the total sending time and the total receiving time during serial port reception? [Copy link]

Is the question about the simulation time? Generally speaking, the simulation time is set according to the conclusions that need to be obtained. Especially when the simulation time is relatively long, it is sufficient to observe the necessary signal relationships. However, modern verification methodology advocates ABV (Assert-Based Verification), which uses machines to verify according to a certain coverage rate. This is very important for more complex circuit verification. Because in the case of simple circuits, manual observation methods may be ok, but if the circuit system has thousands of signals and many changes, manual observation methods are impossible. We will discuss ABV in subsequent courses. For UART transceivers, it is not complicated and can still be observed manually. In our example, four words are sent and received in a closed loop, so the simulation time must be observed to see whether they are finally received correctly.
The approximate calculation is:
1. One baud rate cycle (1/9600=104us) 2. Each frame consists of 1 start bit, 8 information bits, 2 stop bits, and 1 idle bit, a total of 12 bits. 3. In this way, each UART frame requires 12*104us=1248us 4. Four frames are sent in our example, so a total of 4*1248=4992us is required 5. In this way, from the start of sending (end of write request) to the completion of four frame transmission, we set 6000us, which is acceptable 6. After that, a read request is issued, which is very fast (four beats of the 200M clock) 7. After the read request, the simulation can be stopped.
This content was originally created by EEWORLD forum user 大辉哥0614. If you want to reprint or use it for commercial purposes, you must obtain the author's consent and indicate the source

This post is from FPGA/CPLD

Latest reply

Good summary, keep it up, you are very careful and serious.  Details Published on 2018-2-27 15:49
Personal signature想学FGPA,至芯科技 昭哥带你学,联系方式:15201114008
 

1903

Posts

0

Resources
2
 
Good summary, keep it up, you are very careful and serious.
This post is from FPGA/CPLD
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list