how to use registers and fifo in ipif

Nov 08, 2005 1 Replies

Hi all,



I have created my own ip core by ise and the "create/import peripheral" function in edk. When I created the ip core I added FIFO and User Logic S/W Register of the IPIF Services in it. After creating the ip core, I can see many funtions of the drivers aumatically created by edk. For example, DTW_DRIVER1104_mWriteReg, DTW_DRIVER1104_mReadReg, DTW_DRIVER1104_mResetWriteFIFO, DTW_DRIVER1104_mWriteFIFOFull, DTW_DRIVER1104_mWriteToFIFO and so on.



Then I want to use such functions to write some data to the registers and fifo. The programme is as follows,



DTW_DRIVER1104_mWriteSlaveReg2(BaseAddress, R_Num); DTW_DRIVER1104_mWriteSlaveReg3(BaseAddress, T_Num);



/* test whether the register write is right*/ R_Num1=DTW_DTIVER1104_mReadSlaveReg2(BaseAddress);



//put the lpcc parameters of two models in fifo //set the parameters DTW_DRIVER1104_mResetWriteFIFO(BaseAddress);



//write the lpcc parameters of the Reference model for(i=0;i


Hi all,

I mean that how to use the registers and fifo when I am creating my own IP core. How to transfer data with my ip core.

Thank you.

Athena

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required