EX-5.1 2 dex51.htm OPINION OF WILSON SONSINI GOODRICH & ROSATI, PROFESSIONAL CORPORATION Opinion of Wilson Sonsini Goodrich & Rosati, Professional Corporation

EXHIBIT 5.1

[LETTERHEAD OF WILSON SONSINI GOODRICH & ROSATI,

PROFESSIONAL CORPORATION]

April 5, 2006

Nanometrics Incorporated

1550 Buckeye Drive

Milpitas, California 95035

RE: Registration Statement on Form S-4

Ladies and Gentlemen:

We have examined the Registration Statement on Form S-4 filed by you with the Securities and Exchange Commission on or about April 5, 2006 ( the “Registration Statement”) in connection with the registration under the Securities Act of 1933, as amended, of shares (the “Shares”) of your Common Stock, no par value, to be issued in connection with the merger of Alloy Merger Corporation, your wholly-owned subsidiary, with and into Accent Optical Technologies, Inc., a Delaware corporation, as described in the Registration Statement (the “Transaction”). As your counsel in connection with the 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 in the Transaction.

It is our opinion that, when issued in the manner described in the Registration Statement, 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 whenever appearing in the Registration Statement and any amendments thereto.

Very truly yours,

WILSON SONSINI GOODRICH & ROSATI

Professional Corporation

/s/    WILSON SONSINI GOODRICH & ROSATI