kostbill
Full Member level 1
Hello.
If something works in the simulation, is it possible not to work in real life?
I have written a module in VHDL that works fine with my testbench but I have problems when I am running and debugging it.
It is an I2S module, integrated into the Xilinx PLB wrapper. When I send data from an external IC, I always see the correct data, but not in the correct time. For example, sometimes I don't get any data, or the data I am getting are not the data that I am supposed to get at that time. But it's data that I give from my external IC (they are values of a 32 kHz sampled sine). So, I know they are correct because I put them there.
It is like the FIFO registers in my PLB wrapper are not working correct, but I cannot imagine what I have done wrong. I tried every different version and some tutorials, and everytime I have the same problems.
The thing is, I don't know what causes the problem. Is it my module? Is it that I am handling the FIFOs wrong in my SDK? Is it the debugger?
Can anyone suggests a debugging guideline procedure for a problem like that? An idea or something?
Thanks a lot,
Bill.
If something works in the simulation, is it possible not to work in real life?
I have written a module in VHDL that works fine with my testbench but I have problems when I am running and debugging it.
It is an I2S module, integrated into the Xilinx PLB wrapper. When I send data from an external IC, I always see the correct data, but not in the correct time. For example, sometimes I don't get any data, or the data I am getting are not the data that I am supposed to get at that time. But it's data that I give from my external IC (they are values of a 32 kHz sampled sine). So, I know they are correct because I put them there.
It is like the FIFO registers in my PLB wrapper are not working correct, but I cannot imagine what I have done wrong. I tried every different version and some tutorials, and everytime I have the same problems.
The thing is, I don't know what causes the problem. Is it my module? Is it that I am handling the FIFOs wrong in my SDK? Is it the debugger?
Can anyone suggests a debugging guideline procedure for a problem like that? An idea or something?
Thanks a lot,
Bill.