Total revenue for the second quarter of 2023 was $26.2 million, a 21% decrease compared to $33.2 million reported for the second quarter of 2022. Second quarter 2023 licensing, non-recurring engineering (NRE) and related revenue was $16.8 million, a decrease of 24% when compared to $22.1 million reported for the same quarter a year ago. Royalty revenue for the second quarter of 2023 was $9.4 million, a decrease of 15% when compared to $11.1 million reported for the second quarter of 2022, but up 17% sequentially.
Amir Panush, Chief Executive Officer of CEVA, remarked: "Our second quarter results reflect a challenging and dynamic environment, where our licensing business was impacted by a slowdown in funding of semiconductor startups that limited our ability to conclude certain anticipated customer licensing agreements. Nevertheless, we had a number of noteworthy licensing achievements in the quarter, including three customers for Wi-Fi & Bluetooth combos and four new agreements with customers targeting automotive applications. We are also encouraged by the sequential recovery in our royalty business, with strong shipments of smartphones for emerging markets and inventory restocking across PCs, 5G RAN and the broad IoT markets which we serve. We believe we are well positioned to capitalize on the insatiable demand to connect everything and deploy generative AI everywhere with our unrivalled portfolio of wireless connectivity and sensing AI technologies."
During the quarter, seventeen IP license and NRE agreements were concluded, targeting a wide variety of end markets and applications, including Wi-Fi 6 and Bluetooth 5 for combo connectivity chips targeting consumer, smart home and industrial IoT, 5G Redcap and cellular IoT wireless communications for industrial, UWB for digital car keys and in-cabin radar in automotive, AI for automotive ADAS and sensor fusion for digital pens. Five agreements were with first-time customers.
GAAP gross margin for both the second quarters of 2023 and 2022 was 79%. GAAP operating loss for the second quarter of 2023 was $6.3 million, as compared to a GAAP operating loss of $0.3 million for the same period in 2022. GAAP net loss for the second quarter of 2023 was $5.8 million, as compared to a GAAP net loss of $1.1 million reported for the same period in 2022. GAAP diluted losses per share for the second quarter of 2023 was $0.25, as compared to a GAAP diluted losses per share of $0.05 for the same period in 2022.
Non-GAAP gross margin for both the second quarters of 2023 and 2022 was 82%. Non-GAAP operating loss for the second quarter of 2023 was $1.1 million, as compared to Non-GAAP operating profit of $4.6 million reported for the second quarter of 2022. Non-GAAP net loss and diluted losses per share for the second quarter of 2023 were $0.5 million and $0.02, respectively, compared with Non-GAAP net income and diluted income per share of $4.3 million and $0.18, respectively, reported for the second quarter of 2022.
Non-GAAP gross margin for the second quarter of 2023 excluded: (a) equity-based compensation expenses of $0.4 million and (b) amortization of acquired intangibles of $0.4 million. Non-GAAP gross margin for the second quarter of 2022 excluded: (a) equity-based compensation expenses of $0.3 million and (b) amortization of acquired intangibles of $0.5 million.
Non-GAAP operating loss for the second quarter of 2023 excluded: (a) equity-based compensation expenses of $4.2 million, (b) the impact of the amortization of acquired intangibles of $0.7 million associated with the acquisition of the Intrinsix, VisiSonics and Hillcrest Labs businesses as well as investments in NB-IoT technologies, and (c) $0.3 million of costs associated with the Intrinsix and VisiSonics business acquisitions. Non-GAAP operating income for the second quarter of 2022 excluded: (a) equity-based compensation expenses of $3.3 million, (b) the impact of the amortization of acquired intangibles of $1.3 million associated with the acquisition of the Intrinsix and Hillcrest Labs business and investments in NB-IoT and Immervision technologies and (c) $0.3 million of costs associated with the Intrinsix acquisition.
Non-GAAP net loss and diluted loss per share for the second quarter of 2023 excluded: (a) equity-based compensation expenses of $4.2 million , (b) the impact of the amortization of acquired intangibles of $0.7 million associated with the acquisition of the Intrinsix, VisiSonics and Hillcrest Labs businesses as well as investments in NB-IoT technologies, (c) $0.3 million of costs associated with the Intrinsix and VisiSonics business acquisitions and (d) $0.1 million associated with the reevaluation of an investment in another company. Non-GAAP net income and diluted earnings per share for the second quarter of 2022 excluded: (a) equity-based compensation expenses of $3.3 million , (b) the impact of the amortization of acquired intangibles of $1.3 million associated with the acquisition of the Intrinsix and Hillcrest Labs businesses and investments in NB-IoT and Immervision technologies, (c) $0.3 million of costs associated with the Intrinsix acquisition and (d) $0.5 million loss, net of taxes, associated with the reevaluation of an investment in another company.