Complete the code to specify a delay of 5 time units for the AND gate.
and #[1] (out, in1, in2);
The syntax and #5 (out, in1, in2); specifies a delay of 5 time units for the AND gate.
Complete the code to specify a delay of 2 time units for the OR gate.
or #[1] (out, in1, in2);
The delay #2 sets the OR gate to have a 2 time unit delay.
Fix the error in the delay annotation for the NOT gate to have a delay of 3 time units.
not [1] (out, in);
The correct syntax for delay annotation is #3 before the port list.
Fill both blanks to specify a delay of 4 time units for the NAND gate and connect inputs a and b.
nand #[1] (out, [2], b);
The delay #4 sets the NAND gate delay, and a is the first input connected to the gate.
Fill all three blanks to specify a delay of 7 time units for the XOR gate and connect inputs x and y.
xor #[1] ([2], [3], y);
The delay #7 sets the XOR gate delay, out is the output, and x is the first input.
