| Balance Sheet Details (Tables)
 | 6 Months Ended | 
| Jun. 30, 2022 | 
|---|
| Balance Sheet Related Disclosures [Abstract] |  | 
| Schedule of Cash and Cash Equivalents | Cash, cash equivalents and restricted cash consist of the following: 
|  |  |  |  |  |  |  |  |  |  |  |  |  
|  | June 30, 2022 |  | December 31, 2021 |  
|  | (in thousands) |  
| Cash and cash equivalents | $ | 211,363 |  |  | $ | 130,572 |  |  
| Short-term restricted cash | 162 |  |  | 105 |  |  
| Long-term restricted cash | 894 |  |  | 1,061 |  |  
| Total cash, cash equivalents and restricted cash | $ | 212,419 |  |  | $ | 131,738 |  |  
|  |  |  |  |  
|  |  |  |  |  
|  |  |  |  |  | 
| Restrictions on Cash and Cash Equivalents | Cash, cash equivalents and restricted cash consist of the following: 
|  |  |  |  |  |  |  |  |  |  |  |  |  
|  | June 30, 2022 |  | December 31, 2021 |  
|  | (in thousands) |  
| Cash and cash equivalents | $ | 211,363 |  |  | $ | 130,572 |  |  
| Short-term restricted cash | 162 |  |  | 105 |  |  
| Long-term restricted cash | 894 |  |  | 1,061 |  |  
| Total cash, cash equivalents and restricted cash | $ | 212,419 |  |  | $ | 131,738 |  |  
|  |  |  |  |  
|  |  |  |  |  
|  |  |  |  |  | 
| Inventory | Inventory consists of the following: 
|  |  |  |  |  |  |  |  |  |  |  |  |  
|  | June 30, 2022 |  | December 31, 2021 |  
|  | (in thousands) |  
|  |  |  |  |  
| Work-in-process | $ | 86,750 |  |  | $ | 72,369 |  |  
| Finished goods | 59,681 |  |  | 59,334 |  |  
|  |  |  |  |  
|  |  |  |  |  
|  | $ | 146,431 |  |  | $ | 131,703 |  |  | 
| Property and Equipment | Property and equipment, net consists of the following: 
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  
|  | Useful Life (in Years)
 |  | June 30, 2022 |  | December 31, 2021 |  
|  |  |  | (in thousands) |  
| Furniture and fixtures | 5 |  | $ | 3,960 |  |  | $ | 3,917 |  |  
| Machinery and equipment | 3-5 |  | 70,352 |  |  | 65,004 |  |  
| Masks and production equipment | 2-5 |  | 35,322 |  |  | 32,099 |  |  
| Software | 3 |  | 8,904 |  |  | 8,763 |  |  
| Leasehold improvements | 1-5 |  | 34,078 |  |  | 30,889 |  |  
| Construction in progress | N/A |  | 3,484 |  |  | 4,647 |  |  
|  |  |  | 156,100 |  |  | 145,319 |  |  
| Less: accumulated depreciation and amortization |  |  | (91,964) |  |  | (84,395) |  |  
|  |  |  | $ | 64,136 |  |  | $ | 60,924 |  |  | 
| Price Protection Liability | Accrued price protection liability consists of the following activity: 
|  |  |  |  |  |  |  |  |  |  |  |  |  
|  | Six Months Ended June 30, |  
|  | 2022 |  | 2021 |  
|  | (in thousands) |  
| Beginning balance | $ | 40,509 |  |  | $ | 47,766 |  |  
|  |  |  |  |  
| Charged as a reduction of revenue | 102,426 |  |  | 49,907 |  |  
|  |  |  |  |  
| Payments | (32,382) |  |  | (42,956) |  |  
| Ending balance | $ | 110,553 |  |  | $ | 54,717 |  |  | 
| Accrued Expenses | Accrued expenses and other current liabilities consist of the following: 
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  
|  | June 30, 2022 |  | December 31, 2021 |  |  |  
|  | (in thousands) |  |  |  
|  |  |  |  |  |  |  
|  |  |  |  |  |  |  
| Accrued technology license payments | $ | 6,693 |  |  | $ | 7,337 |  |  |  |  
| Accrued professional fees | 4,980 |  |  | 3,651 |  |  |  |  
| Accrued engineering and production costs | 1,697 |  |  | 2,934 |  |  |  |  
| Accrued restructuring | 256 |  |  | 320 |  |  |  |  
|  |  |  |  |  |  |  
| Accrued royalty | 1,791 |  |  | 2,080 |  |  |  |  
| Short-term lease liabilities | 11,202 |  |  | 8,888 |  |  |  |  
|  |  |  |  |  |  |  
| Accrued customer credits | 5,435 |  |  | 5,136 |  |  |  |  
|  |  |  |  |  |  |  
| Income tax liability | 10,386 |  |  | 7,105 |  |  |  |  
| Customer contract liabilities | 1,349 |  |  | 1,044 |  |  |  |  
| Accrued obligations to customers for price adjustments | 39,344 |  |  | 6,721 |  |  |  |  
| Accrued obligations to customers for stock rotation rights | 1,186 |  |  | 2,847 |  |  |  |  
| Contingent consideration | 2,824 |  |  | — |  |  |  |  
| Other | 6,364 |  |  | 9,205 |  |  |  |  
|  | $ | 93,507 |  |  | $ | 57,268 |  |  |  |  | 
| Schedule of Accumulated Other Comprehensive Income (Loss) by Component | The following table summarizes the change in balances of accumulated other comprehensive income (loss) by component: 
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  
|  |  |  | Cumulative Translation Adjustments |  |  |  | Pension and Other Defined Benefit Plan Obligation |  | Total |  
|  |  |  | (in thousands) |  
| Balance at December 31, 2021 |  |  | $ | 21 |  |  |  |  | $ | 2,104 |  |  | $ | 2,125 |  |  
| Other comprehensive loss before reclassifications, net of tax |  |  | (5,063) |  |  |  |  | — |  |  | (5,063) |  |  
|  |  |  |  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |  |  |  
| Balance at June 30, 2022 |  |  | $ | (5,042) |  |  |  |  | $ | 2,104 |  |  | $ | (2,938) |  |  |