1. Synchronous state Machine

Source: Internet
Author: User
1, the pre-level (such as another chip, PCB cabling, drive interface components) The output of the delay is random, or there may be changes, how to complete the synchronization of the data at the back level?

A: Add RAM or FIFO cache in the Read method after the front level. The key to this approach is the need to have a stack full and empty indicator to manage the reading and reading of the data to prevent data loss.

2, the data has a fixed frame format, how to determine the starting position of the data?

A: 1) add a signal line indicating the starting position of the data, 2) to the asynchronous system, it is often inserted in the data a special code type of synchronization code (synchronization head), the receiving side through the correlation operation detected the synchronization head.

3. The basic clock of cascaded two modules is asynchronous clock domain, how to transmit the data of the pre-stage output accurately to the next level module?

A: 1) at the same frequency: the input data register can be sampled directly with the master clock of the chip, and the synchronization of input data is completed;

2) Asynchronous clock: In particular, when the frequency of two clocks is not generated by the same quartz crystal divider, at least the input is two times the sampling register, but this will read the error data. To avoid errors in asynchronous clocks, we often use the two-port RAM (DPRAM), FIFO cache method to complete the data transfer between asynchronous clock domains.

4. Summary

The circuit that produces a plurality of enable control signals to produce this reliable synchronized clock is the synchronous state machine to be explained below. External asynchronous signals to highly reliable introduction of chip circuits, must meet certain requirements, and must be carefully synchronized processing. No person is prone to circuit hidden trouble, audit workers must be strictly designed, cautious.

Made by Qidaiymm, your comment is appreciated.

Email:[email protected]

1. Synchronous state Machine

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.