United States Patent (19) 11 Patent Number: 5,838,987 Sound LO)))
Total Page:16
File Type:pdf, Size:1020Kb
USOO583.8987A United States Patent (19) 11 Patent Number: 5,838,987 Brightman et al. (45) Date of Patent: Nov. 17, 1998 54 PROCESSOR FOR ELIMINATING 4.885,681 12/1989 Umeno et al. ...................... 395/406 A EXTERNAL SOCHRONOUS SUBSYSTEMS 5,155,838 10/1992 Kishi ....................................... 395/500 5,175,853 12/1992 Kardach et al 395/733 75 Inventors: Thomas B. Brightman, Dallas, Tex.; 55021 a-Y-2 gE. E.OldOC et al...al. SS Eric Sitaphy D. 5,423,008 6/1995 Young et al. ........................... 395/287 s 9. s 5,455,909 10/1995 Blomgren et al. .. 395/183.19 5,560,002 9/1996 Kardach et al. ........................ 395/555 73 Assignee: National Semiconductor Corporation, 5,590,312 12/1996 Marisetty ... ... 395/500 Santa Clara, Calif. 5,590,342 12/1996 Marisetty ........ 395/750.06 5,628,017 5/1997 Kimmerly et al. ..................... 395/704 21 Appl. No.: 540,351 5,657.253 12/1997 Dreyer et al. ...................... 364/551.01 22 Filed: Oct. 6, 1995 OTHER PUBLICATIONS (51) Int. Cl." ...................................................... G06F 15/76 CHIPSystem Architecture, Product Briefs, Oct. 1991, “The 52 U.S. Cl. ............ 395/800.32: 395/591 Super State" Architecture," pp. 15–25. 58 Field of Search ..................................... 395/825, 828, Primary Examiner Alpesh M. Shah 395/835, 865, 412, 500, 182.08, 182.13, Attorney, Agent, or Firm John L. Maxin 18401, 733, 734, 739, 740, 742,800.01, 800.05, 800.28,800.4, 800.32, 390,561, 57 ABSTRACT 568, 369,591, 376 A processing System having a virtual Subsystem architecture 56) References Cited employs a reentrant System management mode mechanism and device handlers along with remappable hardware U.S. PATENT DOCUMENTS resources to Simulate physical Subsystems, all transparent to 4,514,805 4/1985 McDonough et al 395/736 application programs executing on the processing System. 4,689.766 8/1987 Kent. 395/182.21 4,812,975 3/1989 Adachi et al. .......................... 395/500 18 Claims, 3 Drawing Sheets irtual Subsystem Programs 56. GenerationSound LO))) Remappable Hardware Resources 14 Instruction Fetch Instruction Decode Address Calculation 1 21 Memory or I/O SMI Address Calculation 2 Address Generator Compare 54 Bus. If O Compare XSMI U.S. Patent Nov. 17, 1998 Sheet 3 of 3 5,838,987 Application Programs Generation Graphics Display FIG. 3 -counter Comparato intC 5,838,987 1 2 PROCESSOR FOR ELMINATING From the foregoing, it can be seen that there is a need for EXTERNAL SOCHRONOUS SUBSYSTEMS a virtual Subsystem architecture that handles memory CROSS-REFERENCES TO RELATED mapped I/O in a virtual environment, handles Virtual Sub APPLICATIONS systems with a heavily pipelined CPU core, and provides 5 remappable virtual hardware resources, for virtualizing iso This patent is related to commonly assigned U.S. patent chronous real-time run peripheral Subsystems. applications Ser. No. 08/458,326, entitled “Virtualized Audio Generation And Capture. In A Computer', filed Jun. 2, SUMMARY OF THE INVENTION 1995, and Ser. No. 08/498,965 entitled “Virtualized Func tions Within A Microprocessor', filed Jul. 6, 1995, the To overcome the limitations of the prior art described disclosures of both herein incorporated by reference. above, and to overcome other limitations that will become apparent upon reading and understanding the present BACKGROUND OF THE INVENTION Specification, the present invention discloses a virtual Sub 1. Field of the Invention System architecture employing a native central processing The invention relates generally to computer Systems, and unit along with a reentrant System management mode more particularly to a virtual Subsystem architecture that 15 mechanism with multiple threads of execution, for trapping Simulates isochronous or “real-time run' peripheral Sub and Servicing events which are intended to provoke a Systems transparently to existing Software programs. response from a physical Subsystem in near real-time. Exter 2. Description of Related Art nal and internal trap mechanisms generate a System Man Computer Systems generally include provisions for agement Interrupt (SMI) responsive to the occurrence of attachment of peripheral Subsystems, typically through the predetermined external and internal events, respectively. use of an add-on card. These Subsystems are identified or Responsive to the SMI, the native central processing unit "mapped' through memory and I/O address Space recog determines the event that caused the interrupt and executes nized by the central processing unit (CPU). In the PC a Series of instructions to Simulate a response expected from the physical Subsystem. environment, de facto protocols have arisen from the Some 25 what arbitrary memory and I/O mapping made popular A feature of the present invention is the ability to virtu through commercially Successful products, Such as, but not alize subsystems with a heavily pipelined CPU core. limited to, Sound cards, modems, and graphics display Another feature of the present invention is the ability to adapters. Application Software exists which implicitly Virtualize memory mapped physical Subsystems. embeds these de facto protocols-making hardware Another feature of the present invention is the ability to upgrades which deviate from backward compatibility unde Virtualize multiple real-time run peripherals through the use sirable. of a reentrant System management mode mechanism. Imposing backward compatibility on peripheral enhance Another feature of the present invention is remappable ments usually limits performance, increases costs, and Virtual hardware resources. requires additional Space, typically in the form of additional 35 integrated circuits or die Space. The alternative to maintain Another feature of the present invention is a high degree ing backward compatibility is highly unattractive or com of integration and amortization of native central processing mercially unacceptable in that a plethora of legacy Software unit bandwidth to run both application software and to must be abandoned. Virtualize physical Subsystems. By way of further background, CPU pipelining tech 40 Another feature of the present invention is direct effi niques are known for mitigating the latency associated with ciency dependency of the virtualized Subsystems on the executing complex instructions. More Specifically, instruc Speed of the native central processing unit. tion execution is broken down into multiple “phases’ So that Another feature of the present invention is that virtualized more than one instruction in a Series of instructions, are Subsystems are independent of the operating System. executed at any one given time, albeit in different phases. 45 Another feature of the present invention is that virtualized A related, but not entirely relevant technique to the Subsystems do not require any special memory management present invention is the SuperState TM mode of operation handlers. described in the Product Briefs for the CHIPSystemTM Another feature of the present invention is the ease of Architecture, dated October 1991, by Chips and upgrading new programming for virtualized Subsystems. Technologies, Inc., of San Jose, Calif. In this So-called 50 “SuperState TM mode”, software and hardware incompatibili Another feature of the present invention is a reduction in ties are reconciled by intercepting or “trapping incompat the manufacturing cost of the computer System. ible Software commands or interrupts at the external bus These and various other objects, features, and advantages level and translating them into a compatible format. This of novelty which characterize the invention are pointed out “SuperState TM mode”, which is directed to “demand ser 55 with particularity in the claims annexed hereto and forming Vice' peripherals, is completely devoid of any teachings or a part hereof. However, for a better understanding of the Suggestions of eliminating isochronous “real-time run” invention, its advantages, and the objects obtained by its use, peripherals having critical timing constraints, Such as, but reference should be made to the drawings which form a not limited to, Sound cards and modems. Moreover, the further part hereof, and to the accompanying descriptive “SuperState TM mode” is completely devoid of any teachings 60 matter, in which there is illustrated and described a specific or Suggestions of handling memory mapped I/O in a virtual example of a virtual Subsystem architecture, practiced in environment, handling virtual Subsystems with a heavily accordance with the principles of the present invention. pipelined CPU core, or using hardware resources, Such as, but not limited to, counters, timers, comparators, and BRIEF DESCRIPTION OF THE DRAWINGS CODECS, to assist the virtual subsystems and which are 65 FIG. 1 is a general block diagram of a System employing remappable among the virtual Subsystems to avoid duplica a virtual Subsystem architecture, practiced in accordance tion. with the principles of the present invention; 5,838,987 3 4 FIG. 2 is a more detailed block diagram of the virtual 1. Exemplary Computer System Employing A Virtualized Subsystem architecture; Display Subsystem FIG. 3 is a State diagram depicting exemplary reentrancy Reference is now made to FIG. 1 which depicts an in the virtual Subsystem architecture of the present inven exemplary, but not exclusive System employing a virtual tion; and, Subsystem architecture, practiced in accordance with the FIG. 4 is a block diagram of exemplary remappable principles of the present invention. A System circuit board