Giter Site home page Giter Site logo

nysa-sata's Introduction

nysa-sata-stack

Sata stack written in Verilog

Staus: TLDR Version: Demonstrated reading and writing to a hard drive on a Spartan 6 LX45T board

For a reference implementation here is a wishbone slave core used to verify the functionality of the SATA Stack:

https://github.com/CospanDesign/nysa-verilog/tree/master/verilog/wishbone/slave/wb_sata

More documentation can be found on the wiki

Most of the license is MIT but some of the licenses are GPL

Here is a link to a Spartan 6 LX45T Project

http://www.cospandesign.com/Projects/SATA/sata_build.zip

TODO: Fix Link layer... there is a small FIFO in there that is used to handle all starting and stopping of the read, it's a work around and needs to be fixed TODO: Fix Link layer so that it only instantiates one instance of the scrambler, not two

Code Organization:

rtl/
  sata_stack.v (Top File that applications interface with)
  sata_defines.v (Set defines for the stack in here)

generic/ (small modules used throughout the design)
  blk_mem.v (wraps around an infered block memory generator)
  cross_clock_enable.v (simple module that allows users to
                        send enables across a clock domain)
  debounce.v (debounce)
  ppfifo.v (ping pong FIFO, similar to a ping pong buffer
            except the user doesn't need to track the
            addresses)

command/
  sata_command_layer.v (Sata Command Layer)

transport/
  sata_transport_layer.v (Sata Transport Layer)

link/
  sata_link_layer.v (Sata Link Layer)
  sata_link_layer_read.v (Sata link layer read side)
  sata_link_layer_write.v (Sata link layer write side)
  scrambler.v (scrambles/descrambles primitives)
  crc.v (Cyclical Redundancy Check/ creator)
  cont_controller.v (controls the scrambling of primitives)

phy/
  sata_phy_layer.v (Sata phy layer)
  oob_controller.v (out of band controller)

platform/
  sata_platform.v (This is a template file you can use to interface with the gigabit transceivers)

Soapbox:

Although I believe this code should be distributed for free and people should redistribute their software I leave the ethics up to the user and have licensesed most of the code as MIT but I did use some GPL cores and if the user desires to use this in their closed source project be warned about the GPL'ed modules in this stack.

nysa-sata's People

Contributors

cospan avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.