| Balance Sheet Details (Tables)
 | 6 Months Ended | 
| Jun. 30, 2016 | 
|---|
| Balance Sheet Related Disclosures [Abstract] |  | 
| Cash, Cash Equivalents and Investments | 
Cash and cash equivalents and investments consist of the following: 
|  |  
|  |  |  |  |  |  |  |  |  
|   | June 30, 2016 |   | December 31, 2015 |  
|   | (in thousands) |  
| Cash and cash equivalents | $ | 147,582 | 
 |   | $ | 67,956 | 
 |  
| Short-term investments | 28,899 | 
 |   | 43,300 | 
 |  
| Long-term investments | — | 
 |   | 19,242 | 
 |  
|   | $ | 176,481 | 
 |   | $ | 130,498 | 
 |  | 
| Inventory | 
Inventory consists of the following: 
|  |  
|  |  |  |  |  |  |  |  |  
|   | June 30, 2016 |   | December 31, 2015 |  
|   | (in thousands) |  
| Work-in-process | $ | 14,276 | 
 |   | $ | 15,713 | 
 |  
| Finished goods | 11,281 | 
 |   | 16,730 | 
 |  
| In-transit | 47 | 
 |   | — | 
 |  
|   | $ | 25,604 | 
 |   | $ | 32,443 | 
 |  | 
| Property and Equipment | 
Property and equipment consist of the following: 
|  |  
|  |  |  |  |  |  |  |  |  |  |  
|   | Useful Life(in Years)
 |   | June 30, 2016 |   | December 31, 2015 |  
|   |   |   | (in thousands) |  
| Furniture and fixtures | 5 |   | $ | 2,612 | 
 |   | $ | 2,458 | 
 |  
| Machinery and equipment | 3 -5 |   | 25,047 | 
 |   | 23,679 | 
 |  
| Masks and production equipment | 2 |   | 8,154 | 
 |   | 8,062 | 
 |  
| Software | 3 |   | 3,036 | 
 |   | 3,017 | 
 |  
| Leasehold improvements | 4 -5 |   | 11,268 | 
 |   | 9,573 | 
 |  
| Construction in progress | N/A |   | 700 | 
 |   | 62 | 
 |  
|   |   |   | 50,817 | 
 |   | 46,851 | 
 |  
| Less accumulated depreciation and amortization |   |   | (29,683 | ) |   | (24,993 | ) |  
|   |   |   | $ | 21,134 | 
 |   | $ | 21,858 | 
 |  | 
| Deferred Revenue and Deferred Profit | 
Deferred revenue and deferred profit consist of the following: 
|  |  
|  |  |  |  |  |  |  |  |  
|   | June 30, 2016 |   | December 31, 2015 |  
|   | (in thousands) |  
| Deferred revenue—rebates | $ | 224 | 
 |   | $ | 118 | 
 |  
| Deferred revenue—distributor transactions | 8,523 | 
 |   | 5,695 | 
 |  
| Deferred cost of net revenue—distributor transactions | (2,949 | ) |   | (1,747 | ) |  
|   | $ | 5,798 | 
 |   | $ | 4,066 | 
 |  | 
| Price Protection Liability | 
Accrued price protection liability consists of the following activity: 
|  |  
|  |  |  |  |  |  |  |  |  
|   | Six Months Ended June 30, |  
|   | 2016 |   | 2015 |  
|   | (in thousands) |  
| Beginning balance | $ | 20,026 | 
 |   | $ | 10,018 | 
 |  
| Additional liability from acquisition | — | 
 |   | 3,486 | 
 |  
| Charged as a reduction of revenue | 22,759 | 
 |   | 14,781 | 
 |  
| Reversal of unclaimed rebates | (1,302 | ) |   | (63 | ) |  
| Payments | (23,213 | ) |   | (12,443 | ) |  
| Ending balance | $ | 18,270 | 
 |   | $ | 15,779 | 
 |  | 
| Accrued Expenses | 
Accrued expenses and other current liabilities consist of the following: 
|  |  
|  |  |  |  |  |  |  |  |  
|   | June 30, 2016 |   | December 31, 2015 |  
|   | (in thousands) |  
| Accrued technology license payments | $ | 3,000 | 
 |   | $ | 3,000 | 
 |  
| Accrued professional fees | 1,372 | 
 |   | 1,196 | 
 |  
| Accrued restructuring | 1,427 | 
 |   | 1,633 | 
 |  
| Accrued litigation costs | — | 
 |   | 534 | 
 |  
| Accrued royalty | 1,170 | 
 |   | 2,042 | 
 |  
| Accrued leases - other | 1,243 | 
 |   | — | 
 |  
| Other | 4,913 | 
 |   | 6,963 | 
 |  
|   | $ | 13,125 | 
 |   | $ | 15,368 | 
 |  |