Verilog Small Sense

Source: Internet
Author: User

Today, my classmates told me that the FIR filter timing is not up, he said that the multiplier delay is too large, left to move, but the simulation of the left shift or 2 cycle to move, the shift register code is as follows:

Always @ (Posedge CLK)

Begin

A <= {in[8:0],0};

Out <= A;

End

After seeing this code, I immediately realized that this was done through two cycles, in the first cycle, although a value was given to a, but the data obtained from the out is the data of the previous period, then in the final analysis, this is an issue of blocking assignment and non-blocking assignment.

From this problem, I have a deeper view of blocking and non-blocking. In fact, when the CLK rising edge is approaching, the current value of the data is all lanch to the left of the equals sign.

Verilog Small Sense

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.