Cross-clock domain design "One"--slow to fast clock domains

Source: Internet
Author: User

Cross-clock domain design is a common problem in FPGA design, especially trigger signal synchronization design, often need to synchronize the slow clock domain trigger signal to the fast clock domain, the following is my work in the slow clock domain to the fast clock domain of the Verilog HDL design.

Trigger Cross Domain Design, Slow to fast clock Domain
Module Trig_ Crossdomain _s2f (
Input ClkB,
Input Rst_n,
Input Trigin_clka,


Output TRIGOUT_CLKB
);


reg [2:0] trig_dealy;


Always @ (Posedge ClkB or Negedge rst_n)
if (!rst_n)
Trig_dealy <= 0;
Else
Begin
Trig_dealy[0] <= Trigin_clka;
TRIG_DEALY[1] <= trig_dealy[0];
TRIG_DEALY[2] <= trig_dealy[1];
End


Assign TRIGOUT_CLKB = trig_dealy[1] & (! TRIG_DEALY[2]);


Endmodule

Cross-clock domain design "One"--slow to fast clock domains

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.