| Balance Sheet Details (Tables)
 | 6 Months Ended | 
| Jun. 30, 2017 | 
|---|
| Balance Sheet Related Disclosures [Abstract] |  | 
| Cash, Cash Equivalents and Investments | 
Cash, cash equivalents, restricted cash and investments consist of the following: 
|  |  
|  |  |  |  |  |  |  |  |  
|   | June 30, 2017 |   | December 31, 2016 |  
|   | (in thousands) |  
| Cash and cash equivalents | $ | 87,568 | 
 |   | $ | 81,086 | 
 |  
| Short-term restricted cash | 615 | 
 |   | 614 | 
 |  
| Long-term restricted cash | 1,908 | 
 |   | 1,196 | 
 |  
| Total cash, cash equivalents and restricted cash | 90,091 | 
 |   | 82,896 | 
 |  
| Short-term investments | — | 
 |   | 47,918 | 
 |  
| Long-term investments | — | 
 |   | 5,991 | 
 |  
|   | $ | 90,091 | 
 |   | $ | 136,805 | 
 |  | 
| Inventory | 
Inventory consists of the following: 
|  |  
|  |  |  |  |  |  |  |  |  
|   | June 30, 2017 |   | December 31, 2016 |  
|   | (in thousands) |  
| Work-in-process | $ | 35,528 | 
 |   | $ | 13,947 | 
 |  
| Finished goods | 42,031 | 
 |   | 12,636 | 
 |  
|   | $ | 77,559 | 
 |   | $ | 26,583 | 
 |  | 
| Property and Equipment | 
Property and equipment consist of the following: 
|  |  
|  |  |  |  |  |  |  |  |  |  |  
|   | Useful Life(in Years)
 |   | June 30, 2017 |   | December 31, 2016 |  
|   |   |   | (in thousands) |  
| Furniture and fixtures | 5 |   | $ | 2,266 | 
 |   | $ | 1,983 | 
 |  
| Machinery and equipment | 3-5 |   | 32,027 | 
 |   | 27,028 | 
 |  
| Masks and production equipment | 2 |   | 10,414 | 
 |   | 9,153 | 
 |  
| Software | 3 |   | 4,979 | 
 |   | 3,625 | 
 |  
| Leasehold improvements | 1-5 |   | 12,622 | 
 |   | 11,635 | 
 |  
| Construction in progress | N/A |   | 200 | 
 |   | 39 | 
 |  
|   |   |   | 62,508 | 
 |   | 53,463 | 
 |  
| Less accumulated depreciation and amortization |   |   | (38,039 | ) |   | (32,914 | ) |  
|   |   |   | $ | 24,469 | 
 |   | $ | 20,549 | 
 |  | 
| Deferred Revenue and Deferred Profit | 
Deferred revenue and deferred profit consist of the following: 
|  |  
|  |  |  |  |  |  |  |  |  
|   | June 30, 2017 |   | December 31, 2016 |  
|   | (in thousands) |  
| Deferred revenue—rebates | $ | 161 | 
 |   | $ | 464 | 
 |  
| Deferred revenue—distributor transactions | 17,681 | 
 |   | 7,987 | 
 |  
| Deferred cost of net revenue—distributor transactions | (4,525 | ) |   | (2,460 | ) |  
|   | $ | 13,317 | 
 |   | $ | 5,991 | 
 |  | 
| Price Protection Liability | 
ccrued price protection liability consists of the following activity: 
|  |  
|  |  |  |  |  |  |  |  |  
|   | Six Months Ended June 30, |  
|   | 2017 |   | 2016 |  
|   | (in thousands) |  
| Beginning balance | $ | 15,176 | 
 |   | $ | 20,026 | 
 |  
| Charged as a reduction of revenue | 23,445 | 
 |   | 22,759 | 
 |  
| Reversal of unclaimed rebates | (40 | ) |   | (1,302 | ) |  
| Payments | (13,958 | ) |   | (23,213 | ) |  
| Ending balance | $ | 24,623 | 
 |   | $ | 18,270 | 
 |  | 
| Accrued Expenses | 
Accrued expenses and other current liabilities consist of the following: 
|  |  
|  |  |  |  |  |  |  |  |  
|   | June 30, 2017 |   | December 31, 2016 |  
|   | (in thousands) |  
| Accrued technology license payments | $ | 5,705 | 
 |   | $ | 5,850 | 
 |  
| Accrued professional fees | 2,808 | 
 |   | 1,620 | 
 |  
| Accrued engineering and production costs | 847 | 
 |   | 1,232 | 
 |  
| Accrued restructuring | 4,896 | 
 |   | 536 | 
 |  
| Accrued royalty | 1,095 | 
 |   | 846 | 
 |  
| Accrued leases - other | 1,565 | 
 |   | 1,560 | 
 |  
| Accrued customer credits | 1,154 | 
 |   | 1,207 | 
 |  
| Income tax liability | 14,447 | 
 |   | 235 | 
 |  
| Other | 6,088 | 
 |   | 3,272 | 
 |  
|   | $ | 38,605 | 
 |   | $ | 16,358 | 
 |  |