feat(nr): implement rank-8 PDSCH

This commit is contained in:
2026-09-15 00:36:01 +09:00
parent 04ee4ea8e5
commit c50fe1af53
42 changed files with 3244 additions and 648 deletions
+16
View File
@@ -21,6 +21,22 @@ TEST(nr_common, nr_timer) {
EXPECT_TRUE(nr_timer_expired(&timer));
}
TEST(nr_common, pdsch_codeword_layer_split)
{
constexpr uint8_t expected_codewords[] = {1, 1, 1, 1, 2, 2, 2, 2};
constexpr uint8_t expected_cw0_layers[] = {1, 2, 3, 4, 2, 3, 3, 4};
constexpr uint8_t expected_cw1_layers[] = {0, 0, 0, 0, 3, 3, 4, 4};
for (uint8_t layers = 1; layers <= NR_MAX_NB_LAYERS; layers++) {
const int index = layers - 1;
EXPECT_EQ(nr_pdsch_num_codewords(layers), expected_codewords[index]);
EXPECT_EQ(nr_pdsch_layers_per_codeword(layers, 0), expected_cw0_layers[index]);
if (expected_codewords[index] == 2) {
EXPECT_EQ(nr_pdsch_layers_per_codeword(layers, 1), expected_cw1_layers[index]);
}
}
}
int main(int argc, char **argv)
{