EX-5.1 5 a2056386zex-5_1.htm EX 5.1 Prepared by MERRILL CORPORATION
QuickLinks -- Click here to rapidly navigate through this document


EXHIBIT 5.1

August 10, 2001

Lattice Semiconductor Corporation
5555 N.E. Moore Court
Hillsboro, Oregon 97124-6421

    Re: Registration Statement on Form S-8

Ladies and Gentlemen:

    We have examined the Registration Statement on Form S-8 to be filed by you with the Securities and Exchange Commission on or about August 10, 2001 (the "Registration Statement") in connection with the registration under the Securities Act of 1933, as amended (the "Act"), of an aggregate of 10,000,000 shares (the "Shares") of your Common Stock reserved for issuance under your 2001 Stock Plan (as amended August 7, 2001) and 2001 Outside Directors' Stock Option Plan (together, the "Plans"). As your counsel in connection with this transaction, we have examined the proceedings taken and are familiar with the proceedings proposed to be taken by you in connection with the issuance of the Shares under the Plans.

    It is our opinion that, upon completion of the actions being taken, or contemplated by us as your counsel to be taken by you prior to the issuance of the Shares pursuant to the Registration Statement and the Plans, and upon completion of the actions being taken in order to permit such transactions to be carried out in accordance with the securities laws of the various states where required, the Shares will be legally and validly issued, fully-paid and non-assessable.

    We consent to the use of this opinion as an exhibit to the Registration Statement, and further consent to the use of our name wherever appearing in the Registration Statement and any amendments thereto.

    Very truly yours,

 

 

WILSON SONSINI GOODRICH & ROSATI
Professional Corporation

 

 

/s/ WILSON SONSINI GOODRICH & ROSATI, P.C.

1




QuickLinks