(r4864/r225)
#include "xparameters.h"
#include "xbasic_types.h"
#include "xutil.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
Go to the source code of this file.
Define Documentation
#define ADDRESS_REG_ADDR 6 |
#define CHECK_IDLE_ADDR 1 |
#define COMMAND_REG_ADDR 7 |
#define DATA_WRITE_ADDR 5 |
#define FLASH_ACCESS_CMD_IDENT 'b' |
#define FLASH_ACCESS_CMD_PING 'p' |
#define FLASH_ACCESS_CMD_READ 'c' |
#define FLASH_ACCESS_CMD_READ_BURST 'g' |
#define FLASH_ACCESS_CMD_RESET 'a' |
#define FLASH_ACCESS_CMD_SET_DISABLE 'q' |
#define FLASH_ACCESS_CMD_TEST 'e' |
#define FLASH_ACCESS_CMD_WRITE 'd' |
#define FLASH_ACCESS_CMD_WRITE_ADDRESS 'h' |
#define FLASH_ACCESS_CMD_WRITE_BURST 'f' |
#define FLASH_WAIT_TIME 100000 |
#define IDENT "PC to Network to Virtex to Actel to Flash Interface v1.0" |
#define PCI_COMMAND_READ 4 |
#define PCI_COMMAND_WRITE 2 |
#define READ_BURST_CONTROL_INTERVAL 16 |
#define UART_STATE_IDLE 0 |
#define UART_STATE_READ 1 |
#define UART_STATE_READ_BURST 3 |
#define UART_STATE_RESET 5 |
#define UART_STATE_WRITE 2 |
#define UART_STATE_WRITE_ADDRESS 6 |
#define UART_STATE_WRITE_BURST 4 |
#define VIRTEX_READ_TIMEOUT 100000 |
#define WRITE_BURST_CONTROL_INTERVAL 80 |
Function Documentation
Xuint8 flash_access_calcKIBXor |
( |
int |
nChip |
) |
|
Xuint8 flash_access_calcXor |
( |
|
) |
|
Xuint8 flash_access_checkIfChipErased |
( |
Xuint32 |
nChip |
) |
|
void flash_access_chipErase |
( |
Xuint8 |
nChip |
) |
|
void flash_access_compareBitfiles |
( |
|
) |
|
void flash_access_copyBitfile |
( |
|
) |
|
Xuint8 flash_access_flashBitfile |
( |
Xuint8 * |
bitfile, |
|
|
Xuint8 |
positionNumber | |
|
) |
| | |
Xuint8 flash_access_readByteFromFlashram |
( |
Xuint32 |
address |
) |
|
int flash_access_send |
( |
Xuint8 |
, |
|
|
Xuint8 * |
| |
|
) |
| | |
void flash_access_showBitfileInformation |
( |
|
) |
|
Xuint8 flash_access_writeByteToFlashram |
( |
Xuint32 |
address, |
|
|
Xuint8 |
data | |
|
) |
| | |
Xuint32 readFromFlashAccessModule |
( |
Xuint8 |
address |
) |
|
void writeDataToActel |
( |
Xuint32 |
address, |
|
|
Xuint32 |
value | |
|
) |
| | |
void writeToFlashAccessModule |
( |
Xuint8 |
address, |
|
|
Xuint32 |
value | |
|
) |
| | |