added a VHDL testbench and implemented HIRAM hack