A combinational circuit is to be designed to generate a parity bit for input digits in BCD code. The circuit also has an additional output that produces an error signal if a non-BCD digit is input to the circuit. The circuit is to be realized using NAND- NAND logic. Write the VHDL code for the circuit at the structural level.