Hi!
I wrote a custom IP peripheral in verilog and interfaced it to MicroBlaze, using Harware>Co-processor option. I can see the peripheral connected on the System Design Diagram.All compile and build is successful.
Now I can see on hyperterminal that data is being sent to FSL. But then it gets stuck, there is no return of data from FSL.
I will paste both my Microblaze C code and Verilog code. kinldy guide me if there is a problem in my program or a any other problem.
This is C code Test_fsl.c
#include "xparameters.h" #include "mb_interface.h" #include "stdio.h" #include "xutil.h" #include "xdmacentral.h" #include "xdmacentral_l.h" #include "xgpio.h" #include "fsl.h" #include "xbasic_types.h"
int main (void) { // Printing a banner on the Hyper Terminal. print("\t#########################################\n\r"); print("\t# #\n\r"); print("\t# FSL Channel Reference Design #\n\r"); print("\t# MicroBlaze Development Board #\n\r"); print("\t# #\n\r"); print("\t#########################################\n\r"); print("\n\r\n\r");
print("-- Entering main() --\r\n"); int i; Xuint32 arr[64]; for(i=0;i