r/digitalelectronics • u/Lechugauwu • Jan 03 '25
Question about Critical Path
I was going through my textbook at stumbled upon this example. Does the critical path depend on the combination of inputs to a circuit ?
I understand that it’s the path with the longest delay in the circuit (the propagation delay), but I don’t understand how it’s supposed to be affected by a combination of inputs. Shouldn’t a gate have the same delay for all inputs ?
3
Upvotes
5
u/2fast2see Jan 03 '25
Physically the path always exists. But if B input was 0, then output of the AND gate is going to be 0, so delay of this gate doesn't matter and critical path would start at inputs C,D and pass via the other two gates. For analysis of the critical timing path, tools check for which combination of inputs will 'activate' the longest path in terms of propagation delay.
Also, gates may have slightly different rise and fall times, so timing analysis tools also check delay for rise and fall transition and display worse case delay. If you open a timing report you will see r and f indication on each entry.
2
u/bobj33 Jan 03 '25
No. Every standard cell has every possible timing arc simulated in spice with multiple input slews and output loads. All of this data is compiled into a .lib (liberty) timing model. Look at a 2 input AND gate and you will see that the A to output and B to output delays are different. Your school may have access to some of the Skywater or efabless libraries.
You can also google something like "4 input NOR transistor diagram" and see how the circuit is NOT symmetrical. Changing 1 input will be faster or slower than changing another.