Stratix® 10 Hard Processor System Technical Reference Manual

ID 683222
Date 8/15/2024
Public
Document Table of Contents

16.5.9.2.2. Register Settings for ATA Task File Transfer

Table 156.  cmdarg Register Settings for ATA Task File Transfer
Bit Value Comment

31

1 or 0

Set to 0 for read operation or set to 1 for write operation

30:24

0

Reserved (bits set to 0 by host processor)

23:18

0

Starting register address for read or write (DWORD aligned)

17:16

0

Register address (DWORD aligned)

15:8

0

Reserved (bits set to 0 by host processor)

7:2

16

Number of bytes to read or write (integral number of DWORD)

1:0

0

Byte count in integral number of DWORD

Table 157.  cmd Register Settings for ATA Task File Transfer
Bit Value Comment
start_cmd

1

 
ccs_expected

0

CCS is not expected

read_ceata_device

0 or 1

Set to 1 if RW_BLK or RW_REG read

update_clk_regs_only

0

No clock parameters update command

card_num

0

 
send_initialization

0

No initialization sequence

stop_abort_cmd

0

 
send_auto_stop

0

 
transfer_mode

0

Block transfer mode. Block size and byte count must match number of bytes to read or write

read_write

1 or 0

1 for write and 0 for read

data_expected

1

Data is expected

response_length

0

 
response_expect

1

 
cmd_index

Command index

Set this parameter to the command number. For example, set to 24 for SD/SDIO WRITE_BLOCK (CMD24) or 25 for WRITE_MULTIPLE_BLOCK (CMD25).

wait_prvdata_complete

1

  • 0 for send command immediately
  • 1 for send command after previous DTO interrupt
check_response_crc

1

  • 0 for not checking response CRC
  • 1 for checking response CRC
Table 158.  blksiz Register Settings for ATA Task File Transfer
Bit Value Comment

31:16

0

Reserved bits set to 0

15:0 (block_size)

16

For accessing entire task file (16, 8‑bit registers). Block size of 16 bytes

Table 159.  bytcnt Register Settings for ATA Task File Transfer
Bit Value Comment

31:0

16

For accessing entire task file (16, 8‑bit registers). Byte count value of 16 is used with the block size set to 16.