This is VHDL code to implement a spectrum analyzer on a Xillinx Spartan 3E FPGA