Sata-fpga is suppose to make working example of working sata.
Clone the repository and inside it run:
$ git submodule init $ git submodule update