May 5, 2007 #1 C choonlle Full Member level 2 Joined Jul 18, 2006 Messages 126 Helped 20 Reputation 40 Reaction score 1 Trophy points 1,298 Location AFRICA Activity points 2,025 Case A: always @(ctrl or dataIn0 or dataIn1) dataOut <= (ctrl) ? dataIn1 : dataIn0; Case B: always @(ctrl or dataIn0 or dataIn1) dataOut = (ctrl) ? dataIn1 : dataIn0; Which case is correct? WHY?
Case A: always @(ctrl or dataIn0 or dataIn1) dataOut <= (ctrl) ? dataIn1 : dataIn0; Case B: always @(ctrl or dataIn0 or dataIn1) dataOut = (ctrl) ? dataIn1 : dataIn0; Which case is correct? WHY?
May 5, 2007 #2 L ls000rhb Full Member level 3 Joined Jun 17, 2005 Messages 185 Helped 7 Reputation 14 Reaction score 1 Trophy points 1,298 Activity points 2,425 Case A: is correct!
May 11, 2007 #3 S sheik_vb Member level 3 Joined Jul 21, 2006 Messages 58 Helped 3 Reputation 6 Reaction score 0 Trophy points 1,286 Activity points 1,510 No Case B is correct. Because combinational logic.
May 11, 2007 #4 S sachingorkhe Member level 2 Joined Dec 20, 2006 Messages 50 Helped 8 Reputation 14 Reaction score 4 Trophy points 1,288 Location Delhi, India Activity points 1,564 case B is correct as it is combinational assignment. bcoz for combinational circuit use blocking assignments. h/w in both the cases will be the same.. it only affects simulation Sachin
case B is correct as it is combinational assignment. bcoz for combinational circuit use blocking assignments. h/w in both the cases will be the same.. it only affects simulation Sachin
May 12, 2007 #5 C choonlle Full Member level 2 Joined Jul 18, 2006 Messages 126 Helped 20 Reputation 40 Reaction score 1 Trophy points 1,298 Location AFRICA Activity points 2,025 I make final conclusion : A is correct ! Finally, i get this answer from Verilog Coding & Synthesis Book.
I make final conclusion : A is correct ! Finally, i get this answer from Verilog Coding & Synthesis Book.
May 12, 2007 #6 S sheik_vb Member level 3 Joined Jul 21, 2006 Messages 58 Helped 3 Reputation 6 Reaction score 0 Trophy points 1,286 Activity points 1,510 Can you please upload that book