s; however, if the retransmitted code block was affected by preemption, the buffer content is not correct, and it is better to dis- card the content of the buffer and to request a fresh transmission. If a UE is configured to receive CBG-based transmissions when the RRC parameter codeBlockGroupTransmission set for PDSCH, it determines the number of CBGs for a PDSCH transmission by calculating M = min(NCBG) C) where NCBG denotes the maximum number of CBGs per TB which is configured by RRC parameter maxCodeBlockGroups PerTransportBlock for PDSCH, and C is the number of code blocks. We define M1 = mod M, K = C/M and K2 = C/M If M1 > 0, the mth CBG when m=0,1, ., M1 - 1 consists of code blocks with indices mK + k, k = 0, 1, K1 The mth CBG when m : M1, M1 + 1, M - 1 consists of code blocks with indices M K + ( m - M1)K + k, = 0, 1, K2 - 1. If a UE is configured with CBG-based retransmissions, the scheduling assignment for the UE would contain the necessary HARQ-related control signaling including process number, new-data indicator, CBG trans- mit indicator (CBGTI), and the CBG flush indicator (CBGFI) as well as information to han- dle the transmission of the HARQ acknowledgment in the uplink such as timing and New Radio Access Physical Layer Aspects (Part 2) 493 resource indication information. Upon receiving a scheduling assignment in the DCI, the receiver would attempt to decode the TB. Since transmissions and retransmissions are scheduled using the same framework, the UE needs to know whether this is a new transmis- sion, in that case the soft buffer should be flushed, or a retransmission, where soft combin- ing should be performed. Therefore, a single-bit new data indicator is included as part of the scheduling information. The new data indicator operates at TB level. However, if CBG- based retransmissions are configured, the device needs to know which CBGs are retrans- mitted and whether the corresponding soft buffer should be flushed. This is handled by additional information fields in the DCI when CBG-based retr