Home/Support/Support Forum/FPGA Access on cc9p9215
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

FPGA Access on cc9p9215

0 votes
Tring to interface an FPGA with cc9p9215 on Dev Board. Does anyone have any sample code using buffered address and data lines to do this? Any pointers would be appreciated - I see a note in the documentation that D0 to D15 are only active when CS0 or CS2 are active?
Thanks in advance
asked Mar 13, 2013 in Linux by digiDave New to the Community (20 points)

Please log in or register to answer this question.

1 Answer

0 votes
Resloved. unsigned int *mptr; int fd, offset, num;
fd = open("/dev/mem", O_RDWR); //open
mptr = mmap(0,0x8000,PROT_READ + PROT_WRITE, MAP_SHARED,fd,(0x60000000+offset)); //map
mptr[0] = 0x00010001 // <<<data to write for write to addr 0
num = mptr[0]; //read data at addr 0
answered Mar 22, 2013 by digiDave New to the Community (20 points)