System providing automatic source code generation for personalization and parameterization of user modules

Information

  • Patent Grant
  • 8042093
  • Patent Number
    8,042,093
  • Date Filed
    Thursday, November 15, 2001
    22 years ago
  • Date Issued
    Tuesday, October 18, 2011
    12 years ago
Abstract
A method and system of automatically generating source code for configuring a programmable microcontroller. The method involves displaying virtual blocks in a computerized design system where the virtual blocks correspond to programmable circuit blocks in a microcontroller chip. The user selects a user module that defines a particular function to be performed on the microcontroller. The user assigns the virtual blocks to the user module. The design system then automatically generates source code for configuring the programmable blocks to perform the desired function. The source code can then be assembled, linked and loaded into the microcontroller's memory system. When executed on the microcontroller, the executable code will then set registers within the blocks to implement the function. Source code is automatically generated for: (1) realizing the user module in a hardware resource; and also (2) to configure the user module to behave in a prescribed manner.
Description
RELATED APPLICATIONS

U.S. patent application entitled, “Microcontroller Programmable System on a Chip,” application Ser. No. 10/033,027, filed on Oct. 22, 2001, inventor Warren Snyder, is hereby incorporated herein by reference.


BACKGROUND OF THE INVENTION

1. Field of the Invention


The present invention relates to the field of programming and configuring programmable electronic devices. More particularly, the present invention relates to using a design system for (i) displaying choices for user-selected functions; (2) displaying choices for where and how to implement the selected function; and (3) automatically generating computer code, that when executed, will configure the electronic device to perform the selected function.


2. Related Art


A microcontroller is an integrated circuit device (“chip”) composed of functional units or “blocks,” input/output pins, internal busses and programmable interconnections among these components. Many of these configurable components can be programmed to perform a specific function or connect to another specific sub-system by loading a particular bit pattern into a particular register in the actual chip. Recently, a microcontroller having programmable analog and digital blocks has been introduced.


In addition, a microcontroller also has a central processing unit (“CPU”) and a memory system for storing data and instructions. The CPU and the memory system can interact with a programmable block, e.g., a configurable component, by reading and writing registers associated with that component. The configurable blocks are therefore programmed by setting their configuration registers with certain values. Thus, by writing a program for the CPU, a user can specify the function the configurable component will perform as well as the connections among configurable components. The user can also write programs that interact with the configurable components once those components have been initialized. The programs also do this by reading and writing registers associated with the configurable components.


Configuring and programming a microcontroller requires specifying and setting an enormous number of bits. It is common for engineers who need to configure and program a microcontroller to develop and use software for that purpose such as design tools, databases, assemblers, compilers, linkers, and debuggers. However, conventional microcontroller programming and configuring requires that the engineer incorporate the literal binary codes and addresses associated with the configurable components into the microcontroller source code.


This conventional technique therefore requires many manual steps and is error-prone and tedious. In other words, if a designer wants to program a configurable block to implement a circuit, then the designer manually determines the configuration registers of the hardware resource. The circuit designer then manually develops code to program those registers in such a way to realize the circuit (e.g., an amplifier). The designer then has to manually write code to operate the circuit in the desired fashion, e.g., give the amplifier a specific gain, etc. When dealing with physical addresses of configuration registers and the specific configuration data needed to program them, the data and information are often expressed as a series of numbers in decimal and/or hexadecimal and/or binary formats. Unfortunately, these numbers and number formats are very complex and hard to read and remember. Any small error in syntax, or a typographical error, or a transposition error can be fatal for the overall program. Manual programming and mapping leads to such errors.


SUMMARY OF THE INVENTION

Accordingly, what is needed is a design system for automatically generating source code that incorporates configuration information for the programming of hardware resources to implement and program circuits. What is needed is such a system that can be used to program programmable electronic devices, e.g., microcontrollers. What is needed yet is a system and method for automatically generating source code to program hardware resources once a designer selects a desired circuit design and a hardware resource to implement that circuit design. The present invention provides these advantages and others not specifically mentioned above but described in sections to follow.


A method and system of automatically generating assembly code (or other source code) for configuring a programmable microcontroller are presented. Source code files are automatically generated for: (1) realizing the user module in a hardware resource; and also (2) to configure the user module to behave in a prescribed manner.


The method involves displaying virtual blocks in a computerized design system where the virtual blocks correspond to programmable circuit blocks in a programmable electronic device, e.g., a microcontroller chip. The user selects a user module (e.g., a circuit design) that defines a particular function to be performed on the microcontroller. The user module is represented, in part, by XML data which defines the way in which configuration registers need to be programmed in order to implement the circuit design thereon. The user then assigns or allocates virtual blocks to the user module, e.g., “placement of the user module.” The programmable hardware resources include both programmable analog blocks and programmable digital blocks. A user module may span multiple blocks. The hardware resources are also represented, in part, by XML data defining the physical addresses of the configuration registers.


The design system then automatically generates source code for configuring the programmable blocks to perform the desired function. This process involves a mapping of the XML data from the user module and from the selected hardware resources. The source code can then be assembled, linked and loaded into the microcontroller's memory system. When executed on the microcontroller, the executable code will then set configuration registers within the blocks to implement the function.


Two different types of configuration are discussed herein with respect to the user module. Automatic generation of source code for “personalization” of a user module is the process (performed by embodiments of the present invention) of generating source code that sets configuration registers to implement or “realize” the circuit design in the hardware resource, e.g., to implement an amplifier circuit. On the other hand, automatic generation of source code for “parameterization” of a user module is the process (performed by embodiments of the present invention) of generating source code that sets configuration registers to cause an already implemented circuit design to behave in particular way, or to adopt some characteristic, e.g., to program the amplifier with a particular gain, etc., or to make some clocked digital circuit level sensitive or edge sensitive, etc.


More specifically, an embodiment of the present invention is directed to a method (and computer system) for generating assembly code to configure a microcontroller with programmable circuit blocks, the method comprising: displaying a collection of virtual blocks in a design system with each virtual block in the collection corresponding to a programmable block in the microcontroller; selecting a user module defining a function; assigning a virtual block taken from the collection to the user module; and automatically constructing a source code table file comprising configuration information for a programmable block of the microcontroller corresponding to the virtual block wherein the configuration information is used to cause the programmable block to implement the function.


Embodiments include the above and wherein the function can be a timer, a counter, an analog-to-digital converter, a digital-to-analog converter, a pulse-width modulator, a signal amplifier, or a serial communication unit.


Embodiments include the above and wherein the design system computes a register address for the programmable block corresponding to the virtual block assigned to the user module, devising a symbolic name for that register address and placing the symbolic name into a table file, an include file or an assembly code file.





BRIEF DESCRIPTION OF THE DRAWINGS


FIG. 1 is a general purpose computer system on which embodiments of the present invention may be implemented.



FIG. 2 illustrates the general architecture of a microcontroller with programmable blocks in accordance with an embodiment of the present invention.



FIG. 3 illustrates the relationship between a microcontroller, a system for programming a microcontroller, and a computer system for running a design system in accordance with an embodiment of the present invention.



FIG. 4 is a flow chart of steps of using a design system to automatically generate code in accordance with an embodiment of the present invention.



FIG. 5 is a screen display showing the user module choices in accordance with an embodiment of the present invention.



FIG. 6 is a screen display showing the assignment of a virtual block to a user module in accordance with an embodiment of the present invention.



FIG. 7 is a screen display showing the assignment of two virtual blocks to a user module in accordance with an embodiment of the present invention.



FIG. 8A is a data flow diagram showing the flow of information through the source generation process.



FIG. 8B is a flow chart showing the construction of source code files in accordance with an embodiment of the present invention.



FIG. 9 shows a portion of a template file with a generic name in accordance with an embodiment of the present invention.



FIG. 10 is a screen display showing a generated assembly code file in accordance with an embodiment of the present invention.



FIG. 11 illustrates the relationship of different code files to the design system and a microcontroller in accordance with an embodiment of the present invention.



FIG. 12 illustrates the relationship of an executing program to the programmable blocks in accordance with an embodiment of the present invention.



FIG. 13 shows a portion of an assembly code table file in accordance with an embodiment of the present invention.



FIG. 14 shows the use of a symbolic name as a register address in assembly code in accordance with an embodiment of the present invention.



FIG. 15 shows a portion of an assembly include file defining the symbolic name in accordance with an embodiment of the present invention.



FIG. 16 shows a portion of a generated exemplary C-header file defining procedural interfaces for managing a counter in accordance with an embodiment of the present invention.





DETAILED DESCRIPTION OF THE INVENTION

In the following detailed description of the present invention, a design system providing automatic source code generation for personalization and parameterization of user modules, numerous specific details are set forth in order to provide a thorough understanding of the present invention. However, it will be obvious to one skilled in the art that the present invention may be practiced without these specific details. In other instances well known methods, procedures, components, and circuits have not been described in detail as not to unnecessarily obscure aspects of the present invention.


Notation and Nomenclature

Some portions of the detailed descriptions that follow are presented in terms of procedures, steps, logic blocks, processing, and other symbolic representations of operations on data bits that can be performed on computer memory. These descriptions and representations are the means used by those skilled in the data processing arts to most effectively convey the substance of their work to others skilled in the art. A procedure, computer executed step, logic block, process, etc., is here, and generally, conceived to be a self-consistent sequence of steps or instructions leading to a desired result. The steps are those utilizing physical manipulations of physical quantities. Usually, though not necessarily, these quantities take the form of electrical or magnetic signals capable of being stored, transferred, combined, compared, and otherwise manipulated in a computer system. It has proven convenient at times, principally for reasons of common usage, to refer to these signals as bits, values, elements, symbols, characters, terms, numbers, or the like.


It should be borne in mind, however, that all of these and similar terms are to be associated with the appropriate physical quantities and are merely convenient labels applied to these quantities. Unless specifically stated otherwise as apparent from the following discussions, it is appreciated that throughout the present invention, discussions utilizing terms such as “checking,” “comparing,” “accessing,” “processing,” “computing,” “suspending,” “resuming,” “translating,” “calculating,” “determining,” “scrolling,” “displaying,” “recognizing,” “executing,” or the like, refer to the action and processes of a computer system, or similar electronic computing device, that manipulates and transforms data represented as physical (electronic) quantities within the computer system's registers and memories into other data similarly represented as physical quantities within the computer system memories or registers or other such information storage, transmission or display devices.


Computer System 112

Aspects of the present invention, a design system for automatically generating assembly code to configure a microcontroller, are discussed in terms of steps executed on a computer system. Although a variety of different computer systems can be used with the present invention, an exemplary computer system 112 is shown in FIG. 1.


Exemplary computer system 112 comprises an address/data bus 100 for communicating information, a central processor 101 coupled with the bus for processing information and instructions, a volatile memory 102 (e.g., random access memory) coupled with the bus 100 for storing information and instructions for the central processor 101 and a non-volatile memory 103 (e.g., read only memory) coupled with the bus 100 for storing static information and instructions for the processor 101. Computer system 112 also includes a data storage device 104 (“disk subsystem”) such as a magnetic or optical disk and disk drive coupled with the bus 100 for storing information and instructions and a display device 105 coupled to the bus 100 for displaying information to the computer user.


Also included in computer system 112 is an alphanumeric input device 106 including alphanumeric and function keys coupled to the bus 100 for communicating information and command selections to the central processor 101. Generally, alphanumeric input device 106 is called a keyboard or keypad. System 112 also includes a cursor control or directing device 107 coupled to the bus for communicating user input information and command selections to the central processor 101. Within the context of the present invention, the cursor directing device 107 can include a number of implementations including a mouse device, for example, a trackball device, a joystick, a finger pad (track pad), an electronic stylus, an optical beam directing device with optical receiver pad, an optical tracking device able to track the movement of a user's finger, etc., or any other device having a primary purpose of moving a displayed cursor across a display screen based on user displacements.


Computer system 112 of FIG. 1 can also include an optional signal generating device 108 coupled to the bus 100 for interfacing with other networked computer systems, e.g., over the Internet. The display device 105 of FIG. 1 utilized with the computer system 112 of the present invention may be a liquid crystal device, other flat panel display, cathode ray tube, or other display device suitable for creating graphic images and alphanumeric characters recognizable to the user.


Design System Providing Automatic Source Code Generation for Personalization and Parameterization of User Modules in Accordance with Embodiments of the Present Invention

In a preferred embodiment, a computer implemented design system provides the capability of automatically generating source code that, when compiled or assembled, linked and loaded, initializes, specifies and controls configurable elements within a programmable electronic device, e.g., a microcontroller to perform a user-selected function.


In a preferred embodiment of a microcontroller, some of the configurable elements are grouped into programmable blocks (“blocks”). The blocks can be grouped into families. Every block in the same family is substantially analogous. In a preferred embodiment, there is a family of blocks supporting analog functions and a family of blocks supporting digital functions. Each block has one or more registers. Each block can be programmed to perform different functions and connect to other blocks by specifying values for each configuration register in the block. This initial specification of the components is typically performed as soon as the microcontroller “boots-up”. This is referred to as “personalization” of the microcontroller to realize a user module design in selected hardware resources. In addition, a block can be configured to have registers that are used to adjust, control or measure the performance of the personalized block. This is referred to as “parameterization.”


US patent application entitled, “Microcontroller Programmable System on a Chip,” having Ser. No. 10/033,027, filed on Oct. 22, 2001, inventor Warren Snyder, is hereby incorporated herein by reference and describes such a programmable microcontroller.



FIG. 2 shows a generic architecture of a microcontroller 200 with a family of programmable blocks 220, 221, 222, 223, 224, 225, also called “hardware resources.” The microcontroller 200 has a microcontroller CPU 210 connected to a controller memory system 205 via a bus 215. The bus 215 also allows data from outside of microcontroller 200 to come into the controller memory system 205 via interface 240. The microcontroller CPU 210 defines the function performed by each block by setting the contents of configuration registers associated within each block by control bus 230. Control bus 230 may include logic. Each configuration register in the microcontroller has a distinct physical register address. By executing a “load register” instruction from controller memory system 205 register with a register address for a particular block, that block will be configured in accordance with the contents loaded. In some cases, to completely configure a block or to interconnect that block to other resources in the microcontroller 200, it may be necessary to load several configuration registers. The configuration registers may be located in a separate memory space within the microcontroller 200.



FIG. 3 shows the overall relationship of a design system 310 operating in a computer system 112 with a microcontroller 200 installed in controller programming system 300. The controller programming system 300 is connected to the computer system 112 by a communications link 305. Communications link 305 could be a serial line, a parallel line, a network connection or other comparable inter-computer communication mechanism. Controller programming system 300 could include in-circuit emulation capabilities. It is appreciated that the design system 310 can be used without the microcontroller 200 attached thereto in order to determine the information required to program the chip. However, when the final image is determined and it is time to program the device, the microcontroller needs to be attached to the programming device.


In general, the design system 310 models the actual configurable elements and blocks found in microcontroller 200 with corresponding virtual elements and blocks. In the discussion that follows, the term “block” as used in context of a design system means “virtual block,” while the same term used in the context of a microcontroller means an actual block or “hardware resource.”



FIG. 4 shows a computer implemented flow chart for using a design system to automatically generate source code for both parameterization and personalization of a user module. In step 450, the user selects the desired functions in the form of user modules. Generally, a user module can be viewed as an integrated circuit design, e.g., an amplifier, a counter, a timer, a modem, etc. The user can select multiple instances of the same type of user module. In step 460, the user assigns blocks to a user module, e.g., “places” the user module. This step is repeated for each user module selected in step 450. In step 470, after assigning blocks, the design system then can automatically generate the assembly code for configuring the actual blocks.


More specifically, a user module is the collection of information necessary to implement a particular function using one or more generic blocks. This would include the specific values that need to be loaded into a block's registers to implement the circuit design. The design system can load the information about user modules from a file when the design system is initialized. In one embodiment, the information necessary to represent a user module is formatted using XML data.



FIG. 5 shows an exemplary screen display from a design system to allow the user to select user modules. The user modules are grouped according to function. In a preferred embodiment, the functions can include, for example, analog-to-digital converters 410, counters 411, digital to analog converters 412, amplifiers 413, pulse width modulators 414, serial communication units 415, and timers 416, etc. Almost any circuit design can be represented as a user module. The functions can also come in different sizes or capabilities, such as 8-bit counters or 16-bit counters, etc. An 8-bit counter user module 420 is being examined. A data sheet 430 describing the details of the examined user module is also displayed. The user can double click on the icon for examined user module to add it to a collection of selected user modules.



FIG. 6 shows an exemplary screen display from the design system for managing step 460. The collection of selected user modules selected is displayed in window 501. A second window 502 displays the available virtual blocks and other configurable elements. In one embodiment, there are analog blocks 530 and digital blocks 525, input bus 520, and output bus 521. The user places the user module (or, equivalently, assigns blocks to a particular user module) by choosing a specific user module 500 from the collection of selected user modules, and then pushing an advance placement button 503 to move through different candidate placements. Once a desired placement is found, the user then pushes a commit button 504. In this example, the user module only requires one digital block, which has been assigned to a specific virtual block 505. In some cases, a user module will require multiple blocks. A user module may use more than one block and may use both digital and analog blocks. Parameter window 510 displays additional user-specifiable information about the selected user module 500. It is appreciated that this information is used for parameterization of the user module. After assigning virtual blocks to all selected user modules, the user then presses a generate code button 507 to generate files in step 470.



FIG. 7 shows a screen display for a situation in which a user module uses more than one block (e.g., analog blocks 531 and 532) and is shown for a selected digital-to-analog converter 506. Parameter window 533 displays additional user-specifiable information about the selected user module 506. It is appreciated that this information is used for parameterization of the user module.



FIG. 8A shows the flow of information used in generating code in step 470. The code generation module 800 implements step 470. It obtains the details of how to generally configure a particular block to perform a specific function from user module definitions 805. The code generation module 800 obtains information about which virtual block to use for which user module and specific settings within a user module from the personalization and parameterization information 810 that is provided from the graphical user interface in the design system. The template files 815 are used to provide a starting point for building the code. Symbolic names derived from the user module definition 805 and the personalization and parameterization information 810 are substituted for generic names in copies of the template files 815. The code generation module 800 constructs source code files for personalizing the micro-controller 820 and source code files for parameterizing the micro-controller 825.



FIG. 8B shows a computer implemented flow chart providing more details for step 470. In step 700, the design system defines symbolic names for the register addresses for the assigned blocks in step 460. Symbolic names are also derived for the addresses of the various assembly routines that will be used to configure the actual blocks to implement the selected user modules. In one embodiment, the symbolic name is derived from the type of user module, the instance name, and the function associated with that register or routine. The register address for a particular function for a particular instance of a user module is determined from the block assigned to that instance of the user module and the register within a generic block specified by the user module for that particular function.


In step 710, one or more assembly code files are generated for each instance of a user module. Each file is constructed from a data file, e.g, a template file, by substituting the symbolic names constructed in step 700 for generic names in the template file. A sample portion of a template file is shown in FIG. 9 with a generic name 633.


In step 720, one or more assembly code files are generated that refer to all of the user modules (“global files”). These can include assembly code table files, include files, header files, as well as interrupt service routine code. These files can also be generated from a template file.



FIG. 10 shows a screen display with a window 600 showing the various generated files. Window 611 displays the contents of a selected file 601.



FIG. 11 shows the relationship of template files, assembly code files, executable code files, and downloaded code to the design system 310 operating on a computer system 112 and a controller programming system 300. In general terms, the design system will read template files 320, and produce assembly, include and header files 325. The design system will compile, assemble and link the files together to produce an executable file 330. The design system then can download the executable file 330 to the microcontroller programming system 300, which in turn places it in the microcontroller memory system 205 as downloaded code block 340. As shown in FIG. 12, the CPU 210 executes code block 340 to configure various programmable blocks 220, 221.



FIG. 13 shows a portion of a generated assembly code table file where the configuration contents of the various registers is placed. The symbolic name 632 associated with a register is in a comment.



FIG. 14 shows a portion of a generated assembly code file where the symbolic name is used to specify the register that is being loaded with a new value.



FIG. 15 shows a portion of a generated assembly include file that defines the values associated with the generated symbolic names.



FIG. 16 shows a portion of a generated C language header file. Generated header files would allow a user to develop code in C that could manipulate the various registers specified by the user.


The preferred embodiment of the present invention, a system and method for automatically generating assembly code to configure programmable elements of a microcontroller, is thus described. While the present invention has been described in particular embodiments, it should be appreciated that the present invention should not be construed as limited by such embodiments, but rather construed according to the below claims.

Claims
  • 1. A method for configuring a microcontroller, said method comprising: displaying a first graphical user interface on a display device of a computer system, said first graphical user interface comprising a collection of virtual blocks in a design system;receiving at said computer system a selection of a user module, wherein said user module comprises information for implementing a function using a programmable physical block, and wherein said user module is represented by first markup language data that includes information defining how configuration registers for said microcontroller are to be programmed in order to implement said function, and wherein said programmable physical block is represented by second markup language data that includes information defining physical addresses of said configuration registers;displaying on said display device a second graphical user interface operable for receiving user-specifiable information about said user module;assigning a virtual block taken from said collection to said user module, wherein said virtual block corresponds to said programmable physical block; andconstructing computer-generated source code, wherein constructing the computer-generated source code comprises: linking said first markup language data and said second markup language data;substituting said user-specifiable information comprising information specific to said user module, information specific to said function and information specific to a control parameter of said function for generic information in said template files to produce assembly, include and header files.
  • 2. The method of claim 1, wherein said function comprises a pulse width modulator.
  • 3. The method of claim 1, wherein said function comprises a timer.
  • 4. The method of claim 1, wherein said function comprises an analog-to-digital converter.
  • 5. The method of claim 1, wherein said function comprises a digital-to-analog converter.
  • 6. The method of claim 1, wherein said function comprises a counter.
  • 7. The method of claim 1, wherein said function comprises a signal amplifier.
  • 8. The method of claim 1, wherein said function provides serial communication.
  • 9. The method of claim 1, wherein said collection is displayed as a two dimensional array of programmable analog virtual blocks and programmable digital virtual blocks.
  • 10. The method of claim 1, wherein said assigning further comprises assigning a second virtual block to said user module.
  • 11. The method of claim 1, wherein said source code comprises a symbolic name for a register address in said programmable physical block.
  • 12. The method of claim 11 wherein said symbolic name is derived from said function.
  • 13. The method of claim 1 wherein said constructing the computer-generated source code further comprises: reading the template file;producing assembly, include, and header files from the template file, wherein said user-specifiable information comprises information specific to said user module, information specific to said function and information specific to a control parameter of said function;compiling said assembly, include and header files to produce an executable file;downloading said executable file as a code block to a memory of said microcontroller; andexecuting said code block to configure said programmable physical block.
  • 14. A method of configuring a microcontroller having a physical programmable block, said method comprising: receiving, at a computer system, a selection of a user module defining a circuit design, wherein said user module comprises information for implementing a function using said programmable physical block, wherein said user module is represented by first markup language data that include information defining how configuration registers for said microcontroller are to be programmed in order to implement said function and wherein said programmable physical block is represented by second markup language data that includes information defining physical addresses of said configuration registers;displaying a graphical user interface on a display device of said computer system, said graphical user interface operable for receiving user-specifiable information about said user module, wherein said user-specifiable information comprises configuration information that is used to establish a value for a programmable characteristic of said programmable physical block;assigning a virtual block in a design system where said virtual block corresponds to said programmable physical block; andautomatically constructing assembly code comprising said configuration information for said programmable physical block to implement said circuit design, wherein automatically constructing assembly code further comprises linking said first markup language data and said second markup language data, wherein said assembly code is constructed from template assembly code by substituting said user-specifiable information and information specific to said circuit design for generic information in said template assembly code, and wherein said assembly code contains configuration information for said programmable physical block, wherein said configuration information is based on said user-specifiable information and comprises information that when loaded into a register of said programmable physical block cause said programmable physical block to perform said function.
  • 15. The method of claim 14, wherein said automatically constructing further comprises: computing a register address for a register within said programmable physical block;determining a symbolic name for said register address, said symbolic name corresponding to said user module and said circuit design; andsubstituting said symbolic name for a generic name in said template assembly code.
  • 16. The method of claim 14, wherein said automatically constructing further comprises: determining a symbolic name corresponding to said user module and said circuit design;computing a register address for a register within said programmable physical block;assigning said symbolic name to said register address; andplacing said symbolic name into said assembly code in place of a generic name provided in said template assembly code.
  • 17. The method of claim 15, wherein said automatically constructing further comprises: reading template files;substituting said user-specifiable comprising information specific to said user module, information specific to said function and information specific to a control parameter of said function for generic information in said template files to produce assembly, include and header files;compiling said assembly, include and header files to produce an executable file;downloading said executable file as a code block to a memory of said microcontroller; andexecuting said code block to configure said programmable physical block.
  • 18. A computer system comprising a processor coupled to a bus, a display device coupled to said bus, and a memory coupled to said bus, said memory containing instructions to implement a method for configuring a microcontroller, said method comprising: displaying on said display device a first graphical user interface comprising a collection of virtual blocks in a design system;receiving at said computer system a selection of a user module, wherein said user module comprises information for implementing a function using a programmable physical block, said user module represented by first markup language data that includes information defining how configuration registers for said microcontroller are to be programmed in order to implement said function, said programmable physical block represented by second markup language data that includes information defining physical addresses of said configuration registers;displaying on said display device a second graphical user interface operable for receiving user-specifiable information about said user module;assigning a virtual block taken from said collection to said user module, wherein said virtual block corresponds to said programmable physical block; andautomatically constructing assembly code holding configuration information for said programmable physical block, wherein said configuration information is based on said user-specifiable information and comprises information that is loaded into a register of said programmable physical block to cause said programmable physical block to perform said function, said automatically constructing comprising:linking said first markup language data and said second markup language data;determining a symbolic name corresponding to said user module and said function;computing a register address for a register within said programmable physical block;assigning said symbolic name to said register address;placing said symbolic name into said assembly code;reading template files;substituting said user-specifiable comprising information specific to said user module, information specific to said function and information specific to a control parameter of said function for generic information in said template files to produce assembly, include and header files;compiling said assembly, include and header files to produce an executable file;downloading said executable file as a code block to a memory of said microcontroller; andexecuting said code block to configure said programmable physical block.
  • 19. The computer system of claim 18, wherein said collection is displayed as a two dimensional array.
  • 20. The computer system of claim 18, wherein said assigning further comprises assigning a second virtual block to said user module.
  • 21. The computer system of claim 18, wherein said assembly code further comprises a symbolic name for a register address in said programmable physical block.
  • 22. The computer system of claim 18 wherein said symbolic name is derived from said function.
US Referenced Citations (152)
Number Name Date Kind
4061987 Nagahama Dec 1977 A
4134073 MacGregor Jan 1979 A
4138671 Comer et al. Feb 1979 A
4272760 Prazak et al. Jun 1981 A
4344067 Lee Aug 1982 A
4689740 Moelands et al. Aug 1987 A
4692718 Roza et al. Sep 1987 A
4827401 Hrustich et al. May 1989 A
4868525 Dias Sep 1989 A
4947169 Smith et al. Aug 1990 A
5050168 Paterson Sep 1991 A
5128871 Schmitz Jul 1992 A
5140197 Grider Aug 1992 A
5150079 Williams et al. Sep 1992 A
5155836 Jordan et al. Oct 1992 A
5175884 Suarez Dec 1992 A
5200751 Smith Apr 1993 A
5202687 Distinti Apr 1993 A
5258760 Moody et al. Nov 1993 A
5304955 Atriss et al. Apr 1994 A
5319370 Signore et al. Jun 1994 A
5331571 Aronoff et al. Jul 1994 A
5345195 Cordoba et al. Sep 1994 A
5371860 Mura et al. Dec 1994 A
5399922 Kiani et al. Mar 1995 A
5414308 Lee et al. May 1995 A
5426378 Ong Jun 1995 A
5428319 Marvin et al. Jun 1995 A
5430687 Hung et al. Jul 1995 A
5438672 Dey Aug 1995 A
5440305 Signore et al. Aug 1995 A
5479643 Bhaskar et al. Dec 1995 A
5546433 Tran et al. Aug 1996 A
5552748 O'Shaughnessy Sep 1996 A
5557762 Okuaki et al. Sep 1996 A
5559502 Schutte Sep 1996 A
5563526 Hastings et al. Oct 1996 A
5574892 Christensen Nov 1996 A
5590354 Klapproth et al. Dec 1996 A
5594734 Worsley et al. Jan 1997 A
5600262 Kolze Feb 1997 A
5604466 Dreps et al. Feb 1997 A
5614861 Harada Mar 1997 A
5630102 Johnson et al. May 1997 A
5633766 Hase et al. May 1997 A
5670915 Cooper et al. Sep 1997 A
5680070 Anderson et al. Oct 1997 A
5684434 Mann et al. Nov 1997 A
5689196 Schutte Nov 1997 A
5699024 Manlove et al. Dec 1997 A
5703871 Pope et al. Dec 1997 A
5710906 Ghosh et al. Jan 1998 A
5745011 Scott Apr 1998 A
5781747 Smith et al. Jul 1998 A
5828693 Mays et al. Oct 1998 A
5870004 Lu Feb 1999 A
5870345 Stecker Feb 1999 A
5872464 Gradinariu Feb 1999 A
5880598 Duong Mar 1999 A
5889936 Chan Mar 1999 A
5898345 Namura et al. Apr 1999 A
5903718 Marik May 1999 A
5939949 Olgaard et al. Aug 1999 A
5968135 Teramoto et al. Oct 1999 A
5982229 Wong et al. Nov 1999 A
6018559 Azegami et al. Jan 2000 A
6140853 Lo Oct 2000 A
6144327 Distinti et al. Nov 2000 A
6157270 Tso Dec 2000 A
6166367 Cho Dec 2000 A
6188975 Gay Feb 2001 B1
6191660 Mar et al. Feb 2001 B1
6202044 Tzori Mar 2001 B1
6211741 Dalmia Apr 2001 B1
6225866 Kubota et al. May 2001 B1
6249167 Oguchi et al. Jun 2001 B1
6263302 Hellestrand et al. Jul 2001 B1
6272646 Rangasayee Aug 2001 B1
6294962 Mar Sep 2001 B1
6304101 Nishihara Oct 2001 B1
6314530 Mann Nov 2001 B1
6332201 Chin et al. Dec 2001 B1
6338109 Snyder et al. Jan 2002 B1
6356862 Bailey Mar 2002 B2
6369660 Wei Apr 2002 B1
6377646 Sha Apr 2002 B1
6434187 Beard Aug 2002 B1
6445211 Saripella Sep 2002 B1
6460172 Insenser Farre et al. Oct 2002 B1
6507214 Snyder Jan 2003 B1
6525593 Mar Feb 2003 B1
6535946 Bryant et al. Mar 2003 B1
6542025 Kutz et al. Apr 2003 B1
6553057 Sha Apr 2003 B1
6560306 Duffy May 2003 B1
6563391 Mar May 2003 B1
6567426 van Hook et al. May 2003 B1
6575373 Nakano Jun 2003 B1
6598178 Yee et al. Jul 2003 B1
6601236 Curtis Jul 2003 B1
6603330 Snyder Aug 2003 B1
6604179 Volk et al. Aug 2003 B2
6608472 Kutz et al. Aug 2003 B1
6611220 Snyder Aug 2003 B1
6611276 Muratori et al. Aug 2003 B1
6614320 Sullam et al. Sep 2003 B1
6664978 Kekic et al. Dec 2003 B1
6667642 Moyal Dec 2003 B1
6681280 Miyake et al. Jan 2004 B1
6718533 Schneider et al. Apr 2004 B1
6765407 Snyder Jul 2004 B1
6771552 Fujisawa Aug 2004 B2
6784821 Lee Aug 2004 B1
6798299 Mar et al. Sep 2004 B1
6823282 Snyder Nov 2004 B1
6823497 Schubert et al. Nov 2004 B2
6825689 Snyder Nov 2004 B1
6854067 Kutz et al. Feb 2005 B1
6859884 Sullam Feb 2005 B1
6865429 Schneider et al. Mar 2005 B1
6868500 Kutz et al. Mar 2005 B1
6892310 Kutz et al. May 2005 B1
6892322 Snyder May 2005 B1
6898703 Ogami et al. May 2005 B1
6901563 Ogami et al. May 2005 B1
6910126 Mar et al. Jun 2005 B1
6950954 Sullam et al. Sep 2005 B1
6952778 Snyder Oct 2005 B1
6957242 Snyder Oct 2005 B1
6967511 Sullam Nov 2005 B1
6981090 Kutz et al. Dec 2005 B1
6996799 Cismas et al. Feb 2006 B1
7005933 Shutt Feb 2006 B1
7023257 Sullam Apr 2006 B1
7055035 Allison et al. May 2006 B2
7086014 Bartz et al. Aug 2006 B1
7092980 Mar et al. Aug 2006 B1
7103108 Beard Sep 2006 B1
7127630 Snyder Oct 2006 B1
7149316 Kutz et al. Dec 2006 B1
7150002 Anderson et al. Dec 2006 B1
7180342 Shutt et al. Feb 2007 B1
7185162 Snyder Feb 2007 B1
7185321 Roe et al. Feb 2007 B1
7221187 Snyder et al. May 2007 B1
7283151 Nihei et al. Oct 2007 B2
7386740 Kutz et al. Jun 2008 B2
7406674 Ogami et al. Jul 2008 B1
20020108006 Snyder Aug 2002 A1
20020121679 Bazarjani et al. Sep 2002 A1
20020156998 Casselman Oct 2002 A1
20040054821 Warren et al. Mar 2004 A1
Foreign Referenced Citations (16)
Number Date Country
0308583A2 Mar 1989 EP
368398 May 1990 EP
0450863A2 Oct 1991 EP
0499383A2 Aug 1992 EP
0639816A2 Feb 1995 EP
1170671A1 Jan 2002 EP
1205848 May 2002 EP
1191423A2 Feb 2003 EP
404083405 Mar 1992 JP
405055842 Mar 1993 JP
06021732 Jan 1994 JP
404095408 Mar 2002 JP
9532478 Nov 1995 WO
PCTUS9617305 Jun 1996 WO
PCTUS9834376 Aug 1998 WO
PCTUS9909712 Feb 1999 WO