SAN FRANCISCO — Synopsys Inc., a Mountain View-based software company focused on electronic design and semiconductor intellectual property, turned to Weil, Gotshal & Manges for legal counsel on its acquisition of Coverity Inc., which tests the security of software. Coverity tapped a team of lawyers from Cooley. The deal was completed Tuesday.

The value of the transaction was approximately $334 million, which Synopsys is funding using a combination of cash and approximately $200 million in debt.