Add the code I contributed to RIBS project

C to VHDL.  It is about 1000 lines of code