Hi everyone,
I am trying to use one module for several times in one project cause I want to control several ADCs using one main project.
And my way to do it is like this:
There are only some meaningless warnings when I run this program in quartus. What's more, I am sure that the ADC code works very well.
When I only use one ADC module, for example:
The result is perfect when I download it to my board. Same if I comments the second line.
However, if I am trying to control this two together, I cannot get good results from the board.
Is there any one can help me? Thank you very much!
Yours
Yonghang
I am trying to use one module for several times in one project cause I want to control several ADCs using one main project.
And my way to do it is like this:
Code:
ADC ADC1(.RST2(RST2),.DOUT(DOUT1),.SCLK(SCLK1),.DIN(DIN1),.CLK(CLK),.OUTDATA(OUTDATA1));
ADC ADC2(.RST2(RST2),.DOUT(DOUT2),.SCLK(SCLK2),.DIN(DIN2),.CLK(CLK),.OUTDATA(OUTDATA2));
When I only use one ADC module, for example:
Code:
ADC ADC1(.RST2(RST2),.DOUT(DOUT1),.SCLK(SCLK1),.DIN(DIN1),.CLK(CLK),.OUTDATA(OUTDATA1));//ADC ADC2(.RST2(RST2),.DOUT(DOUT2),.SCLK(SCLK2),.DIN(DIN2),.CLK(CLK),.OUTDATA(OUTDATA2));
However, if I am trying to control this two together, I cannot get good results from the board.
Is there any one can help me? Thank you very much!
Yours
Yonghang