Input/output for buck-boost converter controller implemented with FPGA
Don't output from the DAC until you have added in the compensator. Input the output from the buck boost through another ADC and add internally. Then output through the DAC. Make sure to take care in noise compensation when dealing with the buck boost. Properly decouple and smooth the switching noise then route the secondary ADC and addition block on the opposite side of the FPGA(this is precautionary and will depend on the FPGA tool you are using).