This is a simple design example that writes data to sectors on an IDE hard disk and then reads it back to verify it.
This file contains some definitions and functions used in the rest of the VHDL code.
This is the VHDL file that describes an ATAPI interface to an IDE hard disk. You can get a more detailed description of the interface at http://xess.com/appnotes/an-041404-atacntl.pdf .
These VHDL files describe a memory tester module that writes a stream of data from a random-number generator (RNG) to a storage device and then reads the data back and compares it to the RNG output to verify it was stored correctly.
This VHDL file describes a simple switch debouncer.
This is the VHDL file that combines the IDE interface and memory tester module to create a design that tests writes and reads of hard disk sectors.
These are the constraints which assign the I/O signals of IDE interface to the appropriate pins of the FPGA on the XSA-3S1000 + XST-3.0 combination.
This is a compiled bitstream for the design that can be downloaded into the XSA-3S1000 + XST-3.0 combination.
This is an alternate set of pin assignments to be used if the design is recompiled for an XSA-200 + XST-3.0 combination.
Open this project file with WebPACK if you need to recompile the design.
Attach an ATX power supply to the XST-3.0 Board and an IDE hard disk.
Attach an IDE cable from header IDE1 on the XST-3.0 Board to the IDE hard disk.
Set jumper J9 on the XSA-3S1000 Board to XS.
Download the default parallel port interface into the XSA-3S1000 (\XSTOOLS\XSA\3S1000\dwnldpar.svf) if it is not already present. (Running GXSTEST will do this automatically.)
Download the ide.bit file to the XSA Board.
After a 20-second delay, the application will write and read sectors on the hard disk and report the success or failure of the operation by displaying an ``O'' or an ``E'' on LED2, respectively. Press switch SW2 on the XSA Board to re-run the test.
This example design was developed using the following version of software:
Xilinx WebPACK : 6.3.03i
You can download the source files for this example design from the XESS website at http://www.xess.com/projects/xst3_IDE.zip .
Dave Vanden Bout, X Engineering Software Systems Corp.
Send bug reports to bugs@xess.com.
Copyright 2006 by X Engineering Software Systems Corporation.
This application can be freely distributed and modified as long as you do not remove the attributions to the author or his employer.
05/30/2006 - Release 1.0.1:
Added multisector R/W.
Added PIO Mode 2 timing parameters.
Added enhanced ATA status outputs.
Added outputs to inactivate the XSA Flash and IDE disk DMA acknowledge.
Added a switch input that re-runs the sector R/W test.
01/30/2006 - Initial release.