General pseudo code for PUCCH allocation on gNB

I’m trying to understand the pseudo code of PUCCH allocation on how it works in order to understand the PUCCH allocation?

It doesn’t matter which PUCCH pseudo code you suggest for explaining how PUCCH allocation on gNB done. The main point is to understand the concept of PUCCH allocation even if there are different pseudo code for PUCCH allocation on gNB.

Code of PUCCH allocation generally found on gNB.

@marcengo , @ankgitm , @RFSpecialist

Thanks alot!