Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

ATA controller design in FPGA

Status
Not open for further replies.

yongqin2005

Junior Member level 3
Junior Member level 3
Joined
Feb 22, 2006
Messages
28
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,283
Activity points
1,500
fpga ata

when design ATA host , i met with the problem:after hardware reset, power on or software reset, the host designed by me , has red the value from the registers such as status register, LBA low register , LBA High register LBA mid register, or Device register in ATA hard disk(MAXTOR 250G). To my surprise, the values are the same: 0xFF7F. Why????????? help me , thank u again !!!!
 

juripero

Member level 4
Member level 4
Joined
Jul 30, 2002
Messages
79
Helped
4
Reputation
8
Reaction score
1
Trophy points
1,288
Activity points
477
hdd fpga

Could be your cable is broken
 

yongqin2005

Junior Member level 3
Junior Member level 3
Joined
Feb 22, 2006
Messages
28
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,283
Activity points
1,500
fpga hard disk

the cable is ok, no problem.
The time sequence is designed according to ATA/ATAPI-6. However, the host cannot read the register block.After hardware reset, DD[15:0] == FF7Fh.
But all the values read by the host are FF7Fh. Why? :cry:
 

ue

Junior Member level 3
Junior Member level 3
Joined
Jan 22, 2004
Messages
31
Helped
4
Reputation
8
Reaction score
2
Trophy points
1,288
Activity points
358
sata controller vhdl

just recheck for proper power up sequence. and PoR values of those registers.
 

kib

Advanced Member level 4
Full Member level 1
Joined
Mar 27, 2003
Messages
111
Helped
10
Reputation
22
Reaction score
2
Trophy points
1,298
Location
Bangalore, India
Activity points
611
ata host controller in fpga

check the hard disk configuration.
i think u have configured(using those jumpers) the harddisk as slave.
reconfigure it as master.
 

yongqin2005

Junior Member level 3
Junior Member level 3
Joined
Feb 22, 2006
Messages
28
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,283
Activity points
1,500
fpga hard disk controller

Whatever the ATA harddisk(MAXTOR 250GB PATA 133 HDD) is configured(using the jumper) as master or slave mode, the results are the same: REGISTER BLOCK
can't be written or read.

Only J50 is usually OK.
master mode:
o o — o o
|
o o o o o
J50 J48 J46 J44 J42


I don't know why.......
Help me, thank u from my heart!!!
 

kib

Advanced Member level 4
Full Member level 1
Joined
Mar 27, 2003
Messages
111
Helped
10
Reputation
22
Reaction score
2
Trophy points
1,298
Location
Bangalore, India
Activity points
611
ata atapi fpga

which pio mode are u using to read the hard disk registers?
 

yongqin2005

Junior Member level 3
Junior Member level 3
Joined
Feb 22, 2006
Messages
28
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,283
Activity points
1,500
hard disk controller design

Who have made ATA HDD host controller to read and write data from/to ata hard disk ?
mode :pIO, Ultra DMA133 or Ultra DMA100 .
I have seen IDE core on opencores, it is almost only time sequence coordination.
but how to design a host controller with FPGA like CPU to transfer to/from ATA devices? I have written FSM in Verilog HDL, but when i test it, found that the registers block can't be operated:the values can't be read or written from registers in HDD.

the master operates at register/PIO mode0,the values red by host are 0xFF7F.
Why??????
 

yongqin2005

Junior Member level 3
Junior Member level 3
Joined
Feb 22, 2006
Messages
28
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,283
Activity points
1,500
problems with read or write register fpga

Who have done the ATA HDD(hard disk)controller ? Please help me, 3x
 

yongqin2005

Junior Member level 3
Junior Member level 3
Joined
Feb 22, 2006
Messages
28
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,283
Activity points
1,500
pio hard disk sector count register

0 ,i know that Pin DD7 is connected with pull-down ristance.So it is always "0".
But how to read/write register block correctly?
 

yongqin2005

Junior Member level 3
Junior Member level 3
Joined
Feb 22, 2006
Messages
28
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,283
Activity points
1,500
ata fpga

3x, now i will do UDMA MODE TRANSFER.
help me, 3k u !!!!
 

bjzhangwn

Member level 1
Member level 1
Joined
Aug 9, 2004
Messages
37
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
306
ataverilog

cheak that you have made the hard disk driver the main or slave,and everytime you write the read command cheak if you have indicated the hard disk driver properly!

Added after 5 minutes:

Also you can do the work below:First,you can cheak if the address you write are correctly,second,you can cheak if you have reset the hard disk driver properly and initiate it with right parameters!
 

yongqin2005

Junior Member level 3
Junior Member level 3
Joined
Feb 22, 2006
Messages
28
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,283
Activity points
1,500
fpga ata disk

Now I have a fact that is HDD operates on default PIO mode after HDD reset. The host can write/read data:512B to/from a sector in HDD.
TO set device PIO mode 4, the host writes 8'h03 into the feature register, 8'h0C into the sector count register, and commond code:8'hEF into the command register.
However, read/ write time cycle don't reduce.
Why? Help me, please
 

yongqin2005

Junior Member level 3
Junior Member level 3
Joined
Feb 22, 2006
Messages
28
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,283
Activity points
1,500
hdd fpga read write

Now I am testing my program that supports PIO mode 0...4,but when continully
read/write data from/to the cache of Maxtor HDD,it goes wrong more with the more sectors operarted successively.
Why??????
 

yakroo

Banned
Member level 1
Joined
Nov 7, 2005
Messages
40
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
0
hdd fpga

please send me too...
thx

mhoo(at)yahoo.com
 

yongqin2005

Junior Member level 3
Junior Member level 3
Joined
Feb 22, 2006
Messages
28
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,283
Activity points
1,500
fpga harddisk

When I design HDD host controller with Ultra DMA Mode 5(ie. UDMA100),
after 256 words writtten, the value is 51h in the status register.
I infer that CRC data is error,so how to solve the problem?
help me,please.
3x u
 

kib

Advanced Member level 4
Full Member level 1
Joined
Mar 27, 2003
Messages
111
Helped
10
Reputation
22
Reaction score
2
Trophy points
1,298
Location
Bangalore, India
Activity points
611
ata fpga

make sure u r using 80 conductor cable
 

haytham

Full Member level 4
Full Member level 4
Joined
Jun 6, 2004
Messages
228
Helped
16
Reputation
32
Reaction score
3
Trophy points
1,298
Activity points
1,365
sata disk controller fpga

Hi
Do you have any timing problem with the FPGA ?
Also are u sure that the device is well working or u don't have info about it.

Thanks
Haytham
 

yongqin2005

Junior Member level 3
Junior Member level 3
Joined
Feb 22, 2006
Messages
28
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,283
Activity points
1,500
ata 7 fpga

I am sure that i using 80 conductor cable , 256 words written, and INTRQ asserted
then the value is 51h of the status register,ICRC asserted(1) in the Error register.
Why????????????
In addition, CRC rules come from ATA/ATAPI 6.
Help me,please
3k u
 

kib

Advanced Member level 4
Full Member level 1
Joined
Mar 27, 2003
Messages
111
Helped
10
Reputation
22
Reaction score
2
Trophy points
1,298
Location
Bangalore, India
Activity points
611
ata controller in fpga

do u get the crc error in lower speed udma mode also?
if crc error are seen only in mode5 then there could be some signal integrity issues in the board. make sure the signals are properly terminated.
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top