In our product, cortex-m0 is internal digital block1. After synthesis, inout ports such as P0, P1, will be inferred as tri-state logic(TLAT). Is it ok? or please provide the recommanded method.2. For scan chain insertion, additional independent input "scan enable" is necessary. However there is no extra pin assgin for it in our design. Please let me know if there is any solution.
Something like this (assume there are some pins that you don't use very often in functional mode like nTRST)
In your ATPG (e.g. TetraMax) you can define setup sequence to trigger the SCANMODE, which the switch the pin functions from normal to test mode for DFT.