The following is a VHDL listing and simulation of a 2-input NAND gate. The two inputs are "a" and "b". The output is "y". The entity is called TTL7400 since this is a VHDL implementation of one gate of the function of that device. Comments are identified by -- followed by text.