Quantcast
Channel: EngineerZone: Message List
Viewing all articles
Browse latest Browse all 22625

Re: Re: QPSK GENERATION (MATLAB HDLCODER)

$
0
0

hi dragos,

 

i used two array as shown below,

 

const uint16_t sine_lut_i2[32] = {

  0x685E, 0x40FF, 0x32AA, 0x40FF, 0x685E, 0x9C10, 0xCC9C, 0xEE62,

  0xF911, 0xEC14, 0xCB3D, 0x9F83, 0x718B, 0x4B32, 0x3362, 0x2A59,

  0x2D03, 0x3365, 0x36D9, 0x3365, 0x2D03, 0x2A59, 0x3362, 0x4B32,

  0x718B, 0x9F83, 0xCB3D,0xEC14, 0xF911, 0xEE62, 0xCC9C, 0x9C10

};

 

 

const uint16_t sine_lut_q2[32] = {

  0x8E73, 0xC971, 0xDD44, 0xBFF3, 0x7FFF, 0x400B, 0x22BA,  0x368D,

0x718B, 0xB427, 0xDBE4, 0xD662, 0xA615, 0x61D4, 0x2631, 0x604,

  0x6ED, 0x1F82, 0x41F3, 0x6295, 0x7FFF, 0x9D69, 0xBE0B, 0xE07C,

  0xF911, 0xF9FA,  0xD9CD,  0x9E2A,  0x59E9,  0x299C,  0x241A,  0x4BD7

};


in dac_dma_setup like following

 

tx_count = sizeof(sine_lut_i2) / sizeof(uint16_t);

  for(index = 0; index < tx_count; index ++)

  {

  data_i = (sine_lut_i2[index] << 16);

  data_q = (sine_lut_q2[index] << 0);

  Xil_Out32(XPAR_AXI_BRAM_CTRL_0_S_AXI_BASEADDR + index * 4, data_i | data_q);

  }

 

i have used bram not ddr , becoz the kintex 7 board which i have ,has some ddr problem.hence i used bram to store the custom data.

 

 

the result wat i'm getting at the output of adc is always changing.its seems like mixing between the two I & Q.

will u try using the same array as I did and see whether it is coming right at your side please?

 

thanks a lot

 

amruta


Viewing all articles
Browse latest Browse all 22625

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>