ThePyroElectro wrote: With logic personally I tend to separate the levels out vertically and attack it input to output. But you can surely use this method from either side to build up the combinatorial logic statement.
So the order doesn't matter : as in
y <= d NAND ((NOT c) or (a AND b));
y <= ((NOT c) or (a AND b)) NAND d;
Produces the same ?
I could try ,but i'd like a definitive ansver
I only briefly mentioned it in the video, but in this case the order of operations comes into play since we are using parenthesis, statements inside parenthesis will be given precedence and executed first.
So yes, the order won't matter. Both should work.
A quick link about VHDL operator precedence:http://www.csee.umbc.edu/portal/help/VHDL/operator.html
Highest precedence first, left to right within same precedence group, use parenthesis to control order.
So if you look at the precedence table you could actually write the combinatorial expression without any parenthesis. However personally I find the parenthesis useful when reading through my old code.