EXHIBIT 5.1

                         [MILLER & HOLGUIN LETTERHEAD]

October 15, 1999


ATG Inc.
47375 Fremont Boulevard
Fremont, California 94538

Ladies and Gentlemen:

     We are providing this opinion with respect to certain matters in connection
with the filing by ATG Inc. (the "Company") of a Registration Statement on Form
S-8 (the "Registration Statement") with the Securities and Exchange Commission
covering the offering of up to 150,000 shares of the Company's Common Stock, no
par value per share (the "Common Stock"), pursuant to the ATG Inc. 401(k) Profit
Sharing Plan (the "401(k) Profit Sharing Plan") (collectively, the "Shares").

     In connection with this opinion, we have examined and relied upon the
Registration Statement and related Prospectus, the Company's Amended and
Restated Articles of Incorporation and its Bylaws, as amended, the 401(k) Profit
Sharing Plan, resolutions of the Company's Board of Directors dated January 13,
1999 and August 27, 1998, and such other documents, records, certificates,
memoranda and other instruments as we deem necessary or appropriate to enable us
to render this opinion. In rendering this opinion, we have assumed the
genuineness and authenticity of all signatures on original documents, the
genuineness and authenticity of all documents submitted to us as originals, the
conformity to originals of all documents submitted to us as copies thereof, and
the due execution and delivery of all documents where due execution and delivery
are a prerequisite to the effectiveness thereof.

     On the basis of the foregoing, and in reliance thereon, we are of the
opinion that the Shares newly issued by the Company, when issued and sold in
accordance with the terms of (A) the 401(k) Profit Sharing Plan and (B) the
Registration Statement and related Prospectus, will be validly issued, fully
paid, and nonassessable.

     We consent to the filing of this opinion as an exhibit to the Registration
Statement.

                              Very truly yours,

                              MILLER & HOLGUIN


                         By:  /s/ Brian A. Sullivan
                              ---------------------
                              Brian A. Sullivan