According to the needs required by experimental teaching, the virtual experiment environment of "computer organization principle" is studied combining with the characters of this course. Based upon the Tec-xp test box designed by Tsinghua University Computer Factory, Microsoft Visual C++ and SQL Server 2003 database technology are adopted as the soft development platform. Thinking from the system needs analysis, object-oriented simulation mode is adopted for modeling in this environment. Meanwhile combining with the function characteristic of computer system and "computer organization principle" teaching, the basic theory and methods of discrete event system simulation is applied, which make the operation just as the same as on the real equipment. The implementation of the virtual experiment provides the students a free experiment environment.