| Balance Sheet Details (Tables)
 | 9 Months Ended | 
| Sep. 30, 2022 | 
|---|
| Balance Sheet Related Disclosures [Abstract] |  | 
| Schedule of Cash and Cash Equivalents | Cash, cash equivalents and restricted cash consist of the following: 
|  |  |  |  |  |  |  |  |  |  |  |  |  
|  | September 30, 2022 |  | December 31, 2021 |  
|  | (in thousands) |  
| Cash and cash equivalents | $ | 181,496 |  |  | $ | 130,572 |  |  
| Short-term restricted cash | 971 |  |  | 105 |  |  
| Long-term restricted cash | 26 |  |  | 1,061 |  |  
| Total cash, cash equivalents and restricted cash | $ | 182,493 |  |  | $ | 131,738 |  |  
|  |  |  |  |  
|  |  |  |  |  
|  |  |  |  |  | 
| Restrictions on Cash and Cash Equivalents | Cash, cash equivalents and restricted cash consist of the following: 
|  |  |  |  |  |  |  |  |  |  |  |  |  
|  | September 30, 2022 |  | December 31, 2021 |  
|  | (in thousands) |  
| Cash and cash equivalents | $ | 181,496 |  |  | $ | 130,572 |  |  
| Short-term restricted cash | 971 |  |  | 105 |  |  
| Long-term restricted cash | 26 |  |  | 1,061 |  |  
| Total cash, cash equivalents and restricted cash | $ | 182,493 |  |  | $ | 131,738 |  |  
|  |  |  |  |  
|  |  |  |  |  
|  |  |  |  |  | 
| Inventory | Inventory consists of the following: 
|  |  |  |  |  |  |  |  |  |  |  |  |  
|  | September 30, 2022 |  | December 31, 2021 |  
|  | (in thousands) |  
|  |  |  |  |  
| Work-in-process | $ | 101,637 |  |  | $ | 72,369 |  |  
| Finished goods | 64,333 |  |  | 59,334 |  |  
|  |  |  |  |  
|  |  |  |  |  
|  | $ | 165,970 |  |  | $ | 131,703 |  |  | 
| Property and Equipment | Property and equipment, net consists of the following: 
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  
|  | Useful Life (in Years)
 |  | September 30, 2022 |  | December 31, 2021 |  
|  |  |  | (in thousands) |  
| Furniture and fixtures | 5 |  | $ | 3,897 |  |  | $ | 3,917 |  |  
| Machinery and equipment | 3-5 |  | 71,383 |  |  | 65,004 |  |  
| Masks and production equipment | 2-5 |  | 38,932 |  |  | 32,099 |  |  
| Software | 3 |  | 9,977 |  |  | 8,763 |  |  
| Leasehold improvements | 1-5 |  | 33,579 |  |  | 30,889 |  |  
| Construction in progress | N/A |  | 4,915 |  |  | 4,647 |  |  
|  |  |  | 162,683 |  |  | 145,319 |  |  
| Less: accumulated depreciation and amortization |  |  | (95,602) |  |  | (84,395) |  |  
|  |  |  | $ | 67,081 |  |  | $ | 60,924 |  |  | 
| Price Protection Liability | Accrued price protection liability consists of the following activity: 
|  |  |  |  |  |  |  |  |  |  |  |  |  
|  | Nine Months Ended September 30, |  
|  | 2022 |  | 2021 |  
|  | (in thousands) |  
| Beginning balance | $ | 40,509 |  |  | $ | 47,766 |  |  
|  |  |  |  |  
| Charged as a reduction of revenue | 142,473 |  |  | 60,488 |  |  
|  |  |  |  |  
| Payments | (66,391) |  |  | (58,843) |  |  
| Ending balance | $ | 116,591 |  |  | $ | 49,411 |  |  | 
| Accrued Expenses | Accrued expenses and other current liabilities consist of the following: 
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  
|  | September 30, 2022 |  | December 31, 2021 |  |  |  
|  | (in thousands) |  |  |  
|  |  |  |  |  |  |  
|  |  |  |  |  |  |  
| Accrued technology license payments | $ | 5,878 |  |  | $ | 7,337 |  |  |  |  
| Accrued professional fees | 3,934 |  |  | 3,651 |  |  |  |  
| Accrued engineering and production costs | 2,787 |  |  | 2,934 |  |  |  |  
| Accrued restructuring | 224 |  |  | 320 |  |  |  |  
|  |  |  |  |  |  |  
| Accrued royalty | 1,346 |  |  | 2,080 |  |  |  |  
| Short-term lease liabilities | 10,437 |  |  | 8,888 |  |  |  |  
|  |  |  |  |  |  |  
| Accrued customer credits | 3,118 |  |  | 5,136 |  |  |  |  
|  |  |  |  |  |  |  
| Income tax liability | 8,435 |  |  | 7,105 |  |  |  |  
| Customer contract liabilities | 1,028 |  |  | 1,044 |  |  |  |  
| Accrued obligations to customers for price adjustments | 45,954 |  |  | 6,721 |  |  |  |  
| Accrued obligations to customers for stock rotation rights | 1,465 |  |  | 2,847 |  |  |  |  
| Contingent consideration | 2,882 |  |  | — |  |  |  |  
| Other | 6,926 |  |  | 9,205 |  |  |  |  
|  | $ | 94,414 |  |  | $ | 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 |  |  | (7,441) |  |  |  |  | — |  |  | (7,441) |  |  
|  |  |  |  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |  |  |  
| Balance at September 30, 2022 |  |  | $ | (7,420) |  |  |  |  | $ | 2,104 |  |  | $ | (5,316) |  |  |