mohamed shffat

Members
  • Content count

    12
  • Joined

  • Last visited

  1. Back the FFT again

    Ok sir , thanks too much for telling me about the errors and the mistakes and thanks also for your advices . Unfortunately i'm neither expert on HDL or FPGA . I'm new in this field and i'm only trying to learn a new thing , beside i don't have that much time to work continuously for this project because of my study , that's why i failed on my engineering process most probably . I will follow your advice here sir , and hopefully it will work successfully . Thanks for everything sir Greetings Mohamed
  2. Back the FFT again

    This is my code for the main source where i'm instantiating all the cores . I'm taking the data here directly from the Adder out after squaring the real and imaginary parts and summation them. So i can see the magnitude after taking the square root of these data . Thanks too much and greetings sir . Verilg code.txt
  3. Back the FFT again

    Hello everyone I'm back to work with the FFT core , even after some debugging for the core i still have the same problem here , which is no peaks at the output of the FFT except a peaks at 0 and the N-1th points of the frame , which are the first and the last points ! These results makes no sense and up to now i couldn't find any way to solve it , i have tried to scale the FFT and to control the input data which comes from the XADC , and many other ways but i still have the same problem . The picture below shows the results and the output of both XADC and FFT , which the sampling freq of the XADC is about 960 KSPS and i applied all the possible fundamental freqs starts from 10khz up to 480 Khz which is the maximum i can use , and i have tried the FFT core with scaled and unscaled mode , with natural and reversed order at the output , while i have tried the streaming and real time mode without changing , but the results are still for all cases above . Please if someone can helps me to know what's the problem here i would appreciate the help really . Note : the results shown in the pic below are not from the simulation , but they are real results taken by the ILA debugging core . Regards all . Mohamed
  4. XADC and the FFT

    Ok sir thanks too much , i'm gonna try to handle it . My last question now is that i'm using the 9.0th version of the FFT on the Vivado tool , and i'm not taking the data directly from the XADC . I'm storing a 1024 samples inside a FIFO memory first , then i'm reading and inserting these samples to the FFT core , and the clock speed of the memory is 100MHZ . So should i here control the S_axis_data_valid line with the writing speed from the FIFO memory or i should just control according to the sampling rate out of the XADC . Regards sir .
  5. XADC and the FFT

    @D@n Yep sir , even the MATLAB couldn't do the FFT of the sampled data that i got from the XADC . On MATLAB all what i'm doing is just giving the samples or values that i extracted from the XADC , and trying to take it's simple FFT without any limits in X or Y axis . Here my MATLAB script , and the .csv file which contains the 32768 extracted samples from the XADC by the ILA debugging core . x = input('ADC data = ') ; X = transpose(x) ; y = abs(fft(x)) ; subplot(2,1,1) plot(X) ; subplot(2,1,2) plot(y); My .csv file is submitted below , it's contains the samples of a 10 KHz sampled sin from XADC . Regards sir sin10khz.csv
  6. XADC and the FFT

    Thanks too much for everything MR. Dan , i really appreciate your helps . My only problem that i wanted to explain on the post is that the output signals from the ADC can't be transformed to F-Domain using FFT , even on the MATLAB software ! Here i debugged the XADC individually and i took it's output , then i simulated the ADC's output signal and tried to take its FFT on MATLAB just to make sure that the signal is correct or not . But even the MATLAB gave me these results (Empty spectrum window with just to peaks in 0 point and the last point 1023 ) , so i'm wondering now why the sampled signal that i got from the XADC can't be taken by the FFT even on MATLAB ? Although it looks correct when i display it in T-Domain ? Greetings Sir
  7. XADC and the FFT

    Hello I'm trying to take an FFT on the FPGA after getting sampled data comes from XADC , but i couldn't get any results ! Here i figured out that the problem might be from the XADC's data , i tried to fix it but so far still no results . In my design i'm inserting an analog input signal to VP/VN pins on XADC header , then i'm trying to get some data comes out from the 1MSPS XADC . When i plot the output data it looks as it sampled correctly , but when i try to take its FFT whether on FPGA FFT CORE or on MATLAB , i get no results . The sampled signal and its FFT are shown below in the pics . Also i tried many frequencies for the input signal starts from 10KHz up to 480KHz , but they are all giving the same result , empty window in the Freq-domain . If someones know what's the problem i would really appreciate the help . Regards
  8. FFT problems doesn't finish never

    Hello After fixing some problems in the FFT IP core v 9.0, i got another trouble here . My problems are in the natural order output signal , and the reversed order with harmonics ! When i set my output core to reversed bit order i get a results but not only two peaks , i get another peaks or harmonics as it called ! In the same time when i change it to the natural order i get nothing from the core ! just an empty window with no peaks such as shown in the pics below . Details of my FFT core : 512 points scaled with SCALE_SCH = [01 10 10 10 11] forward FFT and real time mode . Target CLK 100 MHZ and 50 MSPS out . Fixed point Pipelined streaming I/O . Input 16 bit width comes from XADC 1MSPS . 1st pic show the results comes in reversed order , 2nd pic shows the natural order results . And the input of the core is a sinusoidal wave sampled with XADC core . If someone have any idea of what is going on here I would really appreciate the help!
  9. Problems FFT IP CORE v 9.0

    Hello everyone , my regrades . I wanna ask something about the FFT IP CORE on the vivado , i'm really confused ! Here i'm trying to implement a real time FFT core on my Artix 7 FPGA board , but the results are looks very strange . My design contains first an XADC with a 427 KSPS sampling rate for a cos wave signal at the input , after the XADC i'm storing the data in a FIFO memory with 1024 depth , after that i'm inserting the data to an FFT core but the results in the output don't look as a spectrum and there's alot of noise which i couldn't handle it , i attached the results in picture below , the parameters of my all design are : - Cos wave with a 200 KHZ as an input for the XADC . - XADC continuous sampling with single channel Vp - Vn , and with a sampling rate 427 KSPS . - FIFO memory block with a 16 bit width of the input and the output data , and with a 1024 depth . - FFT real time mode , 1024 points , Fixed point , Scaled , and truncation rounding . - Target clock freq 100 MHZ and target data throughput 100 MSPS . - The width for the FFT is 16 bit for each real and imaginary parts at the input and output . - Phase factor with 16 bits width , and the architecture is Pipelined , streaming I/O . The output of this core is as shown below in the pic , notice that i got this results with a 100mv cos amplitude , the 1 v amplitude or above gives a full noised signal such as the 2nd pic . I just exported the data with the ILA debugging core then simulated it on the MATLAB . I'm wondering what's the error or the mistake in the design and how can i fix all of that to get a clear spectrum , if you can please help me as fast as possible . Sorry for this long message . Thanks for evertything . My greetings
  10. FFT on FPGA and Analog Discovery 2

    Hello I wanna ask somethings about the Analog Discovery 2 device , most probably i will buy this device but i'm wondering about something , i have implemented a an FFT V9.0 core on my Arty 7 FPGA board , so the question is that can i read my FFT output datafrom FPGA with this device or not ? As far as i see there is a spectrum analyzer can be used with this AD2 device , but does it display the coming data from FPGA or it has it's own FFT ? And if it's possible can i read a 16bit FFT data output or it must be just one bit . Sorry for the long questions but i really need this too much on my work and thesis . Thanks for everything Best regards .
  11. Transfer the data from my Artix 7 board to a txt file on the PC

    I'm using this Arty 7 board
  12. Hello I'm working now on a project which is design a 2D-FFT on an FPGA board , and my board is ( artix 7 35T kit ) . So far i've finished the XADC , BRAM and 1st FFT design , but before implementing the 2nd FFT , i have to read the result from my design . I need to find a way to send the FFT results from my board to my PC to read it on MATLAB so i can keep going in my project , If anyone has an idea or a solution just help me please . Thanks all .