Feb 7, 2013 #1 B babaduredi Member level 1 Joined Apr 28, 2011 Messages 39 Helped 9 Reputation 18 Reaction score 9 Trophy points 1,288 Location Bangalore Activity points 1,543 Hi, We have two scenarios: module dff_blocking(d, clk, q) input d,clk; output q; reg q,q1; always@(posedge clk) begin q=d; q1=q; end endmodule and another one with non-blocking module dff_nonblocking(d, clk, q) input d,clk; output q; reg q,q1; always@(posedge clk) begin q<=d; q1<=q; end endmodule How will the hardware look like in both cases post synthesis? second one looks simple but i don't have idea for first one.
Hi, We have two scenarios: module dff_blocking(d, clk, q) input d,clk; output q; reg q,q1; always@(posedge clk) begin q=d; q1=q; end endmodule and another one with non-blocking module dff_nonblocking(d, clk, q) input d,clk; output q; reg q,q1; always@(posedge clk) begin q<=d; q1<=q; end endmodule How will the hardware look like in both cases post synthesis? second one looks simple but i don't have idea for first one.
Feb 7, 2013 #2 FvM Super Moderator Staff member Joined Jan 22, 2008 Messages 52,961 Helped 14,780 Reputation 29,845 Reaction score 14,249 Trophy points 1,393 Location Bochum, Germany Activity points 300,439 I guess, the question is answered in nearly any Verilog tutorial discussing blocking versus nonblocking, e.g. the classical Cummings paper http://www.sunburst-design.com/papers/CummingsSNUG2000SJ_NBA.pdf Refer to "8.0 Pipeline modeling"
I guess, the question is answered in nearly any Verilog tutorial discussing blocking versus nonblocking, e.g. the classical Cummings paper http://www.sunburst-design.com/papers/CummingsSNUG2000SJ_NBA.pdf Refer to "8.0 Pipeline modeling"
Feb 7, 2013 #3 M mail4idle2 Full Member level 4 Joined Oct 20, 2012 Messages 200 Helped 20 Reputation 40 Reaction score 19 Trophy points 1,298 Activity points 2,173 Please find it attached.
Feb 7, 2013 #4 B babaduredi Member level 1 Joined Apr 28, 2011 Messages 39 Helped 9 Reputation 18 Reaction score 9 Trophy points 1,288 Location Bangalore Activity points 1,543 mail4idle2 said: Please find it attached. Click to expand... I don't see any attachments.