CHARM Beamformer¶
rfsoc_rfdc.dsp.charm_beamformer
¶
Classes¶
CharmBeamformer
¶
Bases: ArrayFactor
Beamformer for the CHARM array, consisting of multiple sub-arrays (chips).
This class models the geometry and beamforming weights for a multi-chip array.
Attributes:
| Name | Type | Description |
|---|---|---|
INTRA_CHIP_SPACING |
float
|
Spacing between chips (approx 1.08 mm). |
ELEMENT_PER_CHIP |
int
|
Number of antenna elements per chip (4). |
SPEED_OF_LIGHT |
float
|
Speed of light constant (3e8 m/s). |
num_chips |
int
|
Number of RFSoC chips in the array. |
carrier_freq |
float
|
Carrier frequency in Hz. |
chip_offsets |
ndarray
|
Starting position of each chip relative to origin. |
spacing |
ndarray
|
Absolute positions of all elements in the CHARM array. |
Source code in rfsoc_rfdc/dsp/charm_beamformer.py
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 | |
Functions¶
get_spacing()
¶
Get the absolute positions of all elements in the CHARM array.
Returns:
| Type | Description |
|---|---|
|
numpy.ndarray: Array of element positions in meters. |
get_bfw(steering_angle_deg)
¶
Calculate complex beamforming weights for the entire CHARM array (with calibration).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
steering_angle_deg
|
float
|
The desired beam steering angle in degrees. |
required |
Returns:
| Type | Description |
|---|---|
|
numpy.ndarray: Complex weights for all elements in the array. |
Source code in rfsoc_rfdc/dsp/charm_beamformer.py
get_bfw_sim(steering_angle_deg)
¶
Calculate complex beamforming weights for the entire CHARM array (Simulation Only - No Calibration).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
steering_angle_deg
|
float
|
The desired beam steering angle in degrees. |
required |
Returns:
| Type | Description |
|---|---|
|
numpy.ndarray: Complex weights for all elements in the array. |
Source code in rfsoc_rfdc/dsp/charm_beamformer.py
get_bfw_fixpt(steering_angle_deg, bits=16)
¶
Compute fixed-point weights for the entire array.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
steering_angle_deg
|
float
|
The desired beam steering angle in degrees. |
required |
bits
|
int
|
The number of bits for fixed-point representation. Defaults to 16. |
16
|
Returns:
| Name | Type | Description |
|---|---|---|
tuple |
A tuple (weights_real, weights_imag) where each is a numpy array of integers. |
Source code in rfsoc_rfdc/dsp/charm_beamformer.py
calculate_array_factor(steer_angle_deg, theta_scan_deg, simulation=False)
¶
Calculates the array factor for a given steering angle over a range of scan angles.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
steer_angle_deg
|
The angle to steer the beam towards (degrees). |
required | |
theta_scan_deg
|
Array of angles to evaluate the pattern at (degrees). |
required | |
simulation
|
bool
|
If True, use ideal weights (no calibration). Defaults to False. |
False
|
Returns:
| Name | Type | Description |
|---|---|---|
af_magnitude |
Magnitude of the array factor (linear scale). |
Source code in rfsoc_rfdc/dsp/charm_beamformer.py
Functions¶
run_tests()
¶
Run test cases for CharmBeamformer.