Please note: The file swap.vhd will not compile properly in MAX+plusII, as discussed on Page 396 in Fundamentals of Digital Logic with VHDL Design.