3.29 Exercise 3.29
Using De Morgan’s law, we know that a logical or can be computed by taking the negation of the logical and of two negated inputs.
(define (or-compound A B output) (let ((nA (make-wire)) (nB (make-wire)) (nO (make-wire))) (inverter A nA) (inverter B nB) (and-gate nA nB nO) (inverter nO output)))
The delay of this component is equal to the delay of the one inverter that each of the inputs travel through plus the delay of the and-gate and plus the delay of the final inverter, or 2 * inverter-delay + and-gate-delay.