The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Mar 28th, 2024, 11:25pm
Pages: 1
Send Topic Print
Decimation Filter in Verilog - can I use Blocking assignment (Read 2574 times)
jdp
Community Member
***
Offline



Posts: 42

Decimation Filter in Verilog - can I use Blocking assignment
Mar 31st, 2015, 8:19am
 
Hi,

I am trying to realize a CIC decimation filter (for delta-sigma ADC) in Verilog.

I want to know whether to use NON-BLOCKING ASSIGNMENT <= or BLOCKING ASSIGNMENT = in Verilog implementation of the constituent integrators and differentiators.

E.g., for the integrator section (image attached), commonly cited code is like:

always @ (posedge clk_in)
begin /*perform accumulation process*/
acc1 <= acc1 + ip_data;
acc2 <= acc2 + acc1;
acc3 <= acc3 + acc2;
end


I want to know if I can use Blocking assignment = instead of <= above - shouldn't that be better?
Back to top
 

acc.PNG

-- jdp
View Profile   IP Logged
jdp
Community Member
***
Offline



Posts: 42

Re: Decimation Filter in Verilog - can I use Blocking assignment
Reply #1 - Apr 5th, 2015, 1:41am
 
Back to top
 
 

-- jdp
View Profile   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.