Semiconductor rivals TSMC and SMIC came to a settlement agreement Monday as they headed into the damages phase of an acrimonious trade secrets trial.

China’s SMIC will pay Taiwan’s TSMC $200 million plus an undisclosed amount of stock and warrants, according to TSMC’s lead trial counsel, Jeffrey Chanin of Keker & Van Nest in San Francisco.