cordic_atan_pkg
CORDIC atan2 constant and helper package. Defines lookup tables and fixed-point helper functions used by the phase-estimation pipeline.
Constants
CORDIC_ATAN
constant CORDIC_ATAN : cordic_atan_array_t := ( 0 => 536870912, 1 => 316933406, 2 => 167458907, 3 => 85004756, 4 => 42667331, 5 => 21354465, 6 => 10679838, 7 => 5340245, 8 => 2670163, 9 => 1335087, 10 => 667544, 11 => 333772, 12 => 166886, 13 => 83443, 14 => 41722, 15 => 20861, 16 => 10430, 17 => 5215, 18 => 2608, 19 => 1304, 20 => 652, 21 => 326, 22 => 163, 23 => 81, 24 => 41, 25 => 20, 26 => 10, 27 => 5, 28 => 3, 29 => 1, 30 => 1, 31 => 0 );CORDIC_PHASE_WIDTH
constant CORDIC_PHASE_WIDTH : integer := 32;CORDIC_PI_NEG
constant CORDIC_PI_NEG : integer := -2147483647;CORDIC_PI_POS
constant CORDIC_PI_POS : integer := 2147483647;raddsp_axis_pkg
Shared RadDSP AXI-stream helper package. Defines fixed-point saturation, packing, arithmetic, and stream utility functions used by RadDSP sample-processing cores.
Functions
raddsp_abs_int
function raddsp_abs_int(value : integer) return integer;raddsp_clog2
function raddsp_clog2(value : positive) return natural;raddsp_max_int
function raddsp_max_int(width : positive) return integer;raddsp_min_int
function raddsp_min_int(width : positive) return integer;raddsp_sat_signed
function raddsp_sat_signed(value : integer; width : positive) return signed;raddsp_sat_signed_vec
function raddsp_sat_signed_vec(value : signed; width : positive) return signed;raddsp_fft_twiddle_pkg
FFT twiddle-factor package for RadDSP transform cores. Provides constants and lookup helpers for fixed-point sine/cosine coefficients used by RadFFT implementations.
Functions
radfft_twiddle_im
function radfft_twiddle_im(points : positive; exponent : natural; width : positive; inverse_fft : boolean) return integer;radfft_twiddle_re
function radfft_twiddle_re(points : positive; exponent : natural; width : positive) return integer;zc_reference_pkg
Zadoff-Chu reference sequence package. Stores reference coefficients and helper definitions for chirp correlation and frame detection cores.
Constants
ZC_REF_I
constant ZC_REF_I : zc_coeff_array_t := ( 0 => 32766, 1 => 32757, 2 => 32678, 3 => 32412, 4 => 31785, 5 => 30571, 6 => 28510, 7 => 25329, 8 => 20787, 9 => 14732, 10 => 7179, 11 => -1607, 12 => -11038, 13 => -20159, 14 => -27683, 15 => -32137, 16 => -32137, 17 => -26789, 18 => -16150, 19 => -1607, 20 => 14009, 21 => 26789, 22 => 32678, 23 => 28897, 24 => 15446, 25 => -4011, 26 => -22594, 27 => -32412, 28 => -28105, 29 => -10278, 30 => 13278, 31 => 30272, 32 => 30272, 33 => 11792, 34 => -14732, 35 => -31785, 36 => -26318, 37 => -804, 38 => 25831, 39 => 31356, 40 => 9511, 41 => -21402, 42 => -32284, 43 => -11038, 44 => 22004, 45 => 31580, 46 => 5601, 47 => -27244, 48 => -27244, 49 => 7179, 50 => 32520, 51 => 14009, 52 => -24278, 53 => -27683, 54 => 10278, 55 => 32609, 56 => 3211, 57 => -31580, 58 => -13278, 59 => 28105, 60 => 19519, 61 => -24811, 62 => -22594, 63 => 23169, 64 => 23169, 65 => -23731, 66 => -21402, 67 => 26318, 68 => 16845, 69 => -29955, 70 => -8739, 71 => 32609, 72 => -3211, 73 => -31113, 74 => 17530, 75 => 22004, 76 => -29621, 77 => -4011, 78 => 31970, 79 => -18204, 80 => -18204, 81 => 32284, 82 => -8739, 83 => -24278, 84 => 30851, 85 => -5601, 86 => -24811, 87 => 31356, 88 => -9511, 89 => -20159, 90 => 32757, 91 => -19519, 92 => -7961, 93 => 29268, 94 => -30571, 95 => 12539, 96 => 12539, 97 => -29955, 98 => 31113, 99 => -16845, 100 => -4807, 101 => 23731, 102 => -32520, 103 => 28897, 104 => -15446, 105 => -2410, 106 => 18867, 107 => -29621, 108 => 32727, 109 => -28510, 110 => 18867, 111 => -6392, 112 => -6392, 113 => 17530, 114 => -25831, 115 => 30851, 116 => -32727, 117 => 31970, 118 => -29268, 119 => 25329, 120 => -20787, 121 => 16150, 122 => -11792, 123 => 7961, 124 => -4807, 125 => 2410, 126 => -804, 127 => 0, 128 => 0, 129 => 804, 130 => -2410, 131 => 4807, 132 => -7961, 133 => 11792, 134 => -16150, 135 => 20787, 136 => -25329, 137 => 29268, 138 => -31970, 139 => 32727, 140 => -30851, 141 => 25831, 142 => -17530, 143 => 6392, 144 => 6392, 145 => -18867, 146 => 28510, 147 => -32727, 148 => 29621, 149 => -18867, 150 => 2410, 151 => 15446, 152 => -28897, 153 => 32520, 154 => -23731, 155 => 4807, 156 => 16845, 157 => -31113, 158 => 29955, 159 => -12539, 160 => -12539, 161 => 30571, 162 => -29268, 163 => 7961, 164 => 19519, 165 => -32757, 166 => 20159, 167 => 9511, 168 => -31356, 169 => 24811, 170 => 5601, 171 => -30851, 172 => 24278, 173 => 8739, 174 => -32284, 175 => 18204, 176 => 18204, 177 => -31970, 178 => 4011, 179 => 29621, 180 => -22004, 181 => -17530, 182 => 31113, 183 => 3211, 184 => -32609, 185 => 8739, 186 => 29955, 187 => -16845, 188 => -26318, 189 => 21402, 190 => 23731, 191 => -23169, 192 => -23169, 193 => 22594, 194 => 24811, 195 => -19519, 196 => -28105, 197 => 13278, 198 => 31580, 199 => -3211, 200 => -32609, 201 => -10278, 202 => 27683, 203 => 24278, 204 => -14009, 205 => -32520, 206 => -7179, 207 => 27244, 208 => 27244, 209 => -5601, 210 => -31580, 211 => -22004, 212 => 11038, 213 => 32284, 214 => 21402, 215 => -9511, 216 => -31356, 217 => -25831, 218 => 804, 219 => 26318, 220 => 31785, 221 => 14732, 222 => -11792, 223 => -30272, 224 => -30272, 225 => -13278, 226 => 10278, 227 => 28105, 228 => 32412, 229 => 22594, 230 => 4011, 231 => -15446, 232 => -28897, 233 => -32678, 234 => -26789, 235 => -14009, 236 => 1607, 237 => 16150, 238 => 26789, 239 => 32137, 240 => 32137, 241 => 27683, 242 => 20159, 243 => 11038, 244 => 1607, 245 => -7179, 246 => -14732, 247 => -20787, 248 => -25329, 249 => -28510, 250 => -30571, 251 => -31785, 252 => -32412, 253 => -32678, 254 => -32757, 255 => -32766 );ZC_REF_LEN
constant ZC_REF_LEN : integer := 256;ZC_REF_Q
constant ZC_REF_Q : zc_coeff_array_t := ( 0 => 0, 1 => -804, 2 => -2410, 3 => -4807, 4 => -7961, 5 => -11792, 6 => -16150, 7 => -20787, 8 => -25329, 9 => -29268, 10 => -31970, 11 => -32727, 12 => -30851, 13 => -25831, 14 => -17530, 15 => -6392, 16 => 6392, 17 => 18867, 18 => 28510, 19 => 32727, 20 => 29621, 21 => 18867, 22 => 2410, 23 => -15446, 24 => -28897, 25 => -32520, 26 => -23731, 27 => -4807, 28 => 16845, 29 => 31113, 30 => 29955, 31 => 12539, 32 => -12539, 33 => -30571, 34 => -29268, 35 => -7961, 36 => 19519, 37 => 32757, 38 => 20159, 39 => -9511, 40 => -31356, 41 => -24811, 42 => 5601, 43 => 30851, 44 => 24278, 45 => -8739, 46 => -32284, 47 => -18204, 48 => 18204, 49 => 31970, 50 => 4011, 51 => -29621, 52 => -22004, 53 => 17530, 54 => 31113, 55 => -3211, 56 => -32609, 57 => -8739, 58 => 29955, 59 => 16845, 60 => -26318, 61 => -21402, 62 => 23731, 63 => 23169, 64 => -23169, 65 => -22594, 66 => 24811, 67 => 19519, 68 => -28105, 69 => -13278, 70 => 31580, 71 => 3211, 72 => -32609, 73 => 10278, 74 => 27683, 75 => -24278, 76 => -14009, 77 => 32520, 78 => -7179, 79 => -27244, 80 => 27244, 81 => 5601, 82 => -31580, 83 => 22004, 84 => 11038, 85 => -32284, 86 => 21402, 87 => 9511, 88 => -31356, 89 => 25831, 90 => 804, 91 => -26318, 92 => 31785, 93 => -14732, 94 => -11792, 95 => 30272, 96 => -30272, 97 => 13278, 98 => 10278, 99 => -28105, 100 => 32412, 101 => -22594, 102 => 4011, 103 => 15446, 104 => -28897, 105 => 32678, 106 => -26789, 107 => 14009, 108 => 1607, 109 => -16150, 110 => 26789, 111 => -32137, 112 => 32137, 113 => -27683, 114 => 20159, 115 => -11038, 116 => 1607, 117 => 7179, 118 => -14732, 119 => 20787, 120 => -25329, 121 => 28510, 122 => -30571, 123 => 31785, 124 => -32412, 125 => 32678, 126 => -32757, 127 => 32766, 128 => -32766, 129 => 32757, 130 => -32678, 131 => 32412, 132 => -31785, 133 => 30571, 134 => -28510, 135 => 25329, 136 => -20787, 137 => 14732, 138 => -7179, 139 => -1607, 140 => 11038, 141 => -20159, 142 => 27683, 143 => -32137, 144 => 32137, 145 => -26789, 146 => 16150, 147 => -1607, 148 => -14009, 149 => 26789, 150 => -32678, 151 => 28897, 152 => -15446, 153 => -4011, 154 => 22594, 155 => -32412, 156 => 28105, 157 => -10278, 158 => -13278, 159 => 30272, 160 => -30272, 161 => 11792, 162 => 14732, 163 => -31785, 164 => 26318, 165 => -804, 166 => -25831, 167 => 31356, 168 => -9511, 169 => -21402, 170 => 32284, 171 => -11038, 172 => -22004, 173 => 31580, 174 => -5601, 175 => -27244, 176 => 27244, 177 => 7179, 178 => -32520, 179 => 14009, 180 => 24278, 181 => -27683, 182 => -10278, 183 => 32609, 184 => -3211, 185 => -31580, 186 => 13278, 187 => 28105, 188 => -19519, 189 => -24811, 190 => 22594, 191 => 23169, 192 => -23169, 193 => -23731, 194 => 21402, 195 => 26318, 196 => -16845, 197 => -29955, 198 => 8739, 199 => 32609, 200 => 3211, 201 => -31113, 202 => -17530, 203 => 22004, 204 => 29621, 205 => -4011, 206 => -31970, 207 => -18204, 208 => 18204, 209 => 32284, 210 => 8739, 211 => -24278, 212 => -30851, 213 => -5601, 214 => 24811, 215 => 31356, 216 => 9511, 217 => -20159, 218 => -32757, 219 => -19519, 220 => 7961, 221 => 29268, 222 => 30571, 223 => 12539, 224 => -12539, 225 => -29955, 226 => -31113, 227 => -16845, 228 => 4807, 229 => 23731, 230 => 32520, 231 => 28897, 232 => 15446, 233 => -2410, 234 => -18867, 235 => -29621, 236 => -32727, 237 => -28510, 238 => -18867, 239 => -6392, 240 => 6392, 241 => 17530, 242 => 25831, 243 => 30851, 244 => 32727, 245 => 31970, 246 => 29268, 247 => 25329, 248 => 20787, 249 => 16150, 250 => 11792, 251 => 7961, 252 => 4807, 253 => 2410, 254 => 804, 255 => 0 );