CN101071395A - Multiple micro controlunit stimulating system and its method, and integrated development environment thereof - Google Patents

Multiple micro controlunit stimulating system and its method, and integrated development environment thereof Download PDF

Info

Publication number
CN101071395A
CN101071395A CN 200610077878 CN200610077878A CN101071395A CN 101071395 A CN101071395 A CN 101071395A CN 200610077878 CN200610077878 CN 200610077878 CN 200610077878 A CN200610077878 A CN 200610077878A CN 101071395 A CN101071395 A CN 101071395A
Authority
CN
China
Prior art keywords
micro controller
program
breakpoint
controller
programmable counter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN 200610077878
Other languages
Chinese (zh)
Inventor
凌全伯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
YINGGUANG TECHNOLOGY CORP
Original Assignee
YINGGUANG TECHNOLOGY CORP
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by YINGGUANG TECHNOLOGY CORP filed Critical YINGGUANG TECHNOLOGY CORP
Priority to CN 200610077878 priority Critical patent/CN101071395A/en
Publication of CN101071395A publication Critical patent/CN101071395A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention relates to a multi-microprocessor chip's simulating system and the used integrated development environment, able to display the states of at least two microprocessors in the multi-microprocessor on the screen of a computer for the program designers' convenience of tracking and detecting errors; besides, able to make the program designers select the microprocessor to be tracked so as to skip the irrelated breakpoints for skip the irrelated steps as gradually tracking and detecting errors.

Description

The simulation system of multiple micro controller and method thereof and used integrated form development environment
Technical field
The present invention relates to a kind of chip simulation system and wherein employed integrated form development environment, be meant a kind of simulation system of multiple micro controller and employed integrated form development environment wherein especially, and corresponding method.
Background technology
Micro controller (MicroController Unit MCU), is called single-chip micro computer (singlechip microcomputer) again, be widely used at present various industry, household appliances product or equipment in.Along with the development of technology, on same chip, also may integrate a plurality of micro controller, promptly so-called single chip multiple micro controller (single chip multi-microcontroller) is to provide more strong functions.
The micro controller program development is essential uses the chip simulation system, and utilizes breakpoint (breakpoint) to monitor the program execution state of micro controller, in order to the debug and the tracking of program.
Chip simulation system of the prior art is shown in Figure 1A, it is by a personal computer 10, an one single-chip micro computer simulator 12 and a circuit board under test 14 constitute simulator (In-Circuit Emulator on the line, ICE), wherein contain an integrated form development environment (Integrated Development Environment in the personal computer 10, IDE), comprise an analog controller 124 in the single-chip micro computer simulator 12, one full duplex connectivity port interface 122 is used for personal computer 10 online, one program breakpoint Address Register 126, and microcontroller core integrated circuit 128.This microcontroller core integrated circuit also is called tested micro controller below 128; the true single-chip micro computer after its Calipering finishes corresponding to following program development, but at present still at development, test phase, therefore with future commercial single-chip micro computer may be slightly different.Whether the peripheral cell (not shown) on the line on the simulator test circuit board under test 14 normal start according to program control in the microcontroller core integrated circuit 128; Mode thus, the control situation of the single-chip micro computer simulator 12 true single-chip micro computers of simulation on circuit board under test 14.In addition, on the line simulator and by the integrated form development environment and with program development the operation personal computer 10 the programmer in face of, carry out program trace and debug in order to the programmer.When the programmer of single-chip micro computer will be developed the micro controller program, can on executive routine, set different breakpoints.When utilizing breakpoint to take place, tested micro controller 128 is in halted state, and the state of tested micro controller 128 in the time of can reading this breakpoint is write time with debug work so as to the shortening program.
Another existing chip simulation system is shown in Figure 1B, itself and Figure 1A difference are in the single-chip micro computer simulator 12, analog controller 124, program breakpoint Address Register 126 and tested micro controller 128 are integrated into the special-purpose microcontroller core of single simulation device integrated circuit 16, its inner framework is shown in Fig. 2 A, the programmer utilizes the development environment of personal computer 10, and by full duplex connectivity port interface 122 and analog controller 124, and set breakpoint address 164 at program breakpoint Address Register 126.When the programmable counter 162 in the tested micro controller 128 (detailed showing of other circuit in the tested micro controller 128 and only represent) when carrying out breakpoint address 164 with blank circuit box, just the tested micro controller 128 of stopping, when carrying out this breakpoint address in order to the program of checking, each parameter state of tested micro controller 128.Fig. 2 B is depicted as the graph of a relation of setting a plurality of breakpoint address in the program of single micro controller, analog controller 124 can be set one or several breakpoint address 164 among the figure, carry out in the process in program, when the breakpoint address of having set when programmable counter 162 and any one is identical, tested micro controller 128 will be parked on this breakpoint address, gets out of the way each parameter state of hair ring border tested micro controller 128 when being read this breakpoint.
In the existing chip simulation system of above explanation, when program is carried out breakpoint address, shown picture on personal computer 10 screens, for example shown in Figure 3.It shown in Fig. 3 the designed prior art integrated form development environment of Keil company, shown picture on personal computer screen, top-right program step display window 101 demonstrates each step (some step is omitted with ellipsis among the figure) of program with linescan method, and wherein the step of representing with arrow 110 is the breakpoint place of setting.Whether left has a parameter display window 102, wherein shows the parameter state of tested micro controller when breakpoint, wrong with reference to also checking for the programmer.For example, demonstrate the internal document numerical value of buffer R0-R7 among the figure, the numerical value of totalizer (AC=0 * 01), the numerical value of stack pointer device (SP=0 * 6c), the upper limit numerical value of stack pointer device (SP_max=0 * 6c), the numerical value of programmable counter (PC=C:0 * 5A93), the numerical value of data reference point (DPTR=0 * 2002), program is carried out the actual time of so far being spent (sec=0.00047567), the numerical value of program state position word (PSW=0 * 01), or the like (for the purpose of simplifying drawing, not shown all parameters and omitting with ellipsis, down with).The deployable again one-tenth overflow of word position, program state position (ov=0), null value flag bit (f0=0), carry digit (cy=0) or the like.Except that above-mentioned, where the action that the action window 105 display routine designers of picture lower left carried out for example from where downloading this program, is stored in, or the like.Below and 106,107 of bottom-right internal memory query windows provide the title of programmer according to memory area (for example DPTR) or address, the function of inquiring about this location conten in the picture.
More than shown in existing chip simulation system, only consider the simulation of single micro controller, and reckon without the situation of multiple micro controller.In detail, under the situation of multiple micro controller, contain a plurality of micro controller in the tested chip, Yi Shang existing chip simulation system then, and can't cooperate the operative scenario of testing a plurality of micro controller, also can't represent the parameter state of a plurality of micro controller simultaneously.
Therefore, the present invention is promptly at above-mentioned the deficiencies in the prior art, proposes a kind of chip simulation system of multiple micro controller, wherein employed integrated form development environment, and corresponding method, effectively to overcome above-mentioned problem.
Summary of the invention
Fundamental purpose of the present invention is to overcome the deficiencies in the prior art and defective, a kind of chip simulation system and method thereof of multiple micro controller are proposed, it utilizes the analog controller of a multiple micro controller, can make the corresponding separately at least one breakpoint address of programmable counter of each micro controller, but make programmer's accurate and effective follow the trail of the situation that each micro controller program is carried out in the multiple micro controller.
Another object of the present invention is to, a kind of chip simulation system and method thereof of multiple micro controller are proposed, it can make the practice condition of very fast each micro controller of grasp of development environment in the personal computer, and carries out each micro-controller command one by one, the work of reaching program debugging with facility.
A further object of the present invention is to propose a kind of development environment of chip simulation system, it produces the picture of convenient programmer's reading on personal computer screen, can show the parameter state of a plurality of micro controller according to need, with convenient tracing program step with carry out program debugging.
For reaching above-mentioned purpose, the invention provides a kind of chip simulation system and method thereof of multiple micro controller, it comprises a single-chip micro computer simulator, have an analog controller and at least two micro controller, each action of analog controller may command micro controller, and each micro controller all has a programmable counter independently, and each micro controller is to carry out under the different sequential that staggers mutually, the development environment of personal computer is set the breakpoint address of each micro controller executive routine correspondence to the program breakpoint Address Register by full duplex connectivity port interface and analog controller, the content numerical value of (Yi Calipering programmable counter is identical with the setting breakpoint address when program is carried out the breakpoint address of setting), analog controller all micro controller of can stopping, when this moment, development environment was read in this breakpoint address by full duplex connectivity port interface and analog controller, the state of each micro controller, and on the screen of personal computer, show, carry out tracing and debugging with convenient programmer.
In addition, according to the present invention, on the screen of personal computer, development environment of the present invention provides the picture of convenient programmer's reading, the parameter state of any a plurality of micro controller be can show on it according to need, the content numerical value of its programmable counter, the content numerical value of totalizer, the content numerical value of stack pointer device and the numerical value of flag value such as null value flag (zero flag), overflow flag (overflow flag), carry flag (carry flag) or inferior carry flag (alternativecarry flag) or the like comprised.Above-mentioned picture display mode is not limited to be applied in the occasion of utilizing the breakpoint debug, also can be applicable to along with program step is progressively followed the trail of and waited other occasion.
Again, for facility is followed the trail of, according to the present invention, still can be by the micro controller of the selected institute of programmer desire tracking, this moment development environment can on picture, emphasize parameter or the program step relevant with chosen micro controller, or only chosen micro controller carry out the setting breakpoint address the time, all micro controller of just stopping, and when not chosen micro controller is carried out the breakpoint address of setting, still continue executive routine.In addition, after the micro controller that selected desire is followed the trail of, can progressively during the tracing program step, only progressively follow the trail of the program step relevant the programmer with chosen micro controller, and when meeting the performed program step of not chosen micro controller, then still continue executive routine.
Illustrate in detail below by specific embodiment, when the effect that is easier to understand purpose of the present invention, technology contents, characteristics and is reached.
Description of drawings
Figure 1A and 1B are the chip simulation system architecture diagram of prior art;
Fig. 2 A is the calcspar that the single micro controller of prior art is simulated single breakpoint address;
Fig. 2 B is the calcspar that the single micro controller of prior art is simulated a plurality of breakpoint address;
Fig. 3 is an example of the display frame of prior art;
Fig. 4 is the hardware structure figure according to the embodiment of the invention;
Fig. 5 is the to be measured multiple micro controller internal circuit calcspar according to the embodiment of the invention;
Fig. 6 A is the calcspar than specific embodiment of the present invention;
Fig. 6 B is another calcspar than specific embodiment of the present invention;
Fig. 7 A-7E is display frame embodiment of the present invention.
Symbol description among the figure
10 personal computers
12 single-chip micro computer simulators
14 circuit board under test
The special-purpose microcontroller core of 16 simulators integrated circuit
20 personal computers
22 full duplex connectivity port interfaces
24 single-chip micro computer simulators
26 analog controllers
32 program breakpoint Address Registers
34 breakpoint activation switches
36 breakpoint activation buffers
38 comparator circuits
42 multiple micro controller executing state buffers
101 program step display windows
102 parameter display windows
105 action windows
106 internal memory name query windows
107 memory address query windows
110 breakpoint steps
122 full duplex connectivity port interfaces
124 analog controllers
126 program breakpoint Address Registers
128 microcontroller core integrated circuit
162 programmable counters
164 breakpoint address
201-20N micro controller unit
The 211-21N programmable counter
The 221-22N totalizer
231-23N stack pointer device
241-24N flag buffer
250 multiple micro controller core steering logics
270 IO interface
The 301-30M breakpoint address
The 381-38M comparer
501 program step display windows
502 general caching device display windows
503 micro controller state display window to change mouths
505 action windows
508 menus
510 aborting steps
511 aborting steps
512 steps relevant with selected micro controller
513 aborting steps
602 comprehensive state display windows
Embodiment
First of the present invention content, be to provide a kind of chip simulation system and method thereof of multiple micro controller, it can set the program execution state that breakpoint address is followed the trail of a plurality of micro controller in the multiple micro controller, the state of each micro controller when making development environment on the personal computer can read in this breakpoint address, and it is informed to single-chip microcomputer program designer in order to program development and debug.
The chip simulation system of multiple micro controller of the present invention, according to one embodiment, framework as shown in Figure 4, comprise a personal computer 20, an one full duplex connectivity port interface 22 and a single-chip micro computer simulator 24, be equiped with a cover development environment in this personal computer 20, the program that is used for single-chip micro computer simulator 24 is write and debug, and full duplex connectivity port interface 22 can adopt parallel port (parallel port), RS-232, RS-458, GPIB, IEEE1394, USB (universal serial bus) (universal serial bus, USB), small computer system interface (smallcomputer system interface, SCSI) or Ethernet specifications such as (Ethernet), single-chip micro computer simulator 24 is then online by full duplex connectivity port interface 22 and personal computer 20.In single-chip micro computer simulator 24, include an analog controller 26, a program breakpoint Address Register 32, comprising at least two breakpoint address (two or more among the 301-30M) breakpoint and multiple micro controller 200 to be measured in order to setting program, include a plurality of micro controller unit (hereinafter to be referred as micro controller) 201 in this multiple micro controller 200 to be measured, 202,203, ..., 20N.
The inside detailed architecture of multiple micro controller to be measured, wherein a kind of embodiment as shown in Figure 5, each micro controller includes the programmable counter 211 of a correspondence, 212,213 ..., 21N, corresponding totalizer 221,222,223 ..., 22N, corresponding stack pointer device 231,232,233, ..., 23N, and corresponding flag buffer group 241,242,243, ..., 24N, wherein each flag buffer group can comprise a plurality of (not shown), to represent various flag state respectively, for example in order to represent the null value flag (zero flag) of null value, overflow flag (overflow flag) in order to the expression overflow, in order to the carry flag (carry flag) of representing eight carries, reach inferior carry flag (alternative carry flag) in order to represent four carries or the like.Above-mentioned each micro controller unit, the core steering logic (this kind framework mode is not shown) that all can have oneself separately, perhaps also can be as shown in the figure, above-mentioned all circuit are subjected to a shared multiple micro controller core steering logic 250 and control, each dotted line square dynamically makes up with core steering logic 250, constitutes complete micro controller 201-20N.More than all internal circuits by IO interface 270 and with the external communication of multiple micro controller to be measured, for example with analog controller 26 exchange signals.
Please also refer to Fig. 4 and Fig. 5, the programmable counter 211-21N among each micro controller 201-20N can corresponding separately at least one breakpoint address 301-30M; N needn't equate that with M meaning is that each programmable counter can correspondingly surpass a breakpoint address, or a plurality of programmable counter can corresponding same breakpoint address.Single-chip microcomputer program designer can assign instruction by 22 pairs of single-chip micro computers of full duplex connectivity port interface simulator 24 from personal computer 20, after this instruction is received by analog controller 26, by one or several breakpoint activation switches 34 corresponding breakpoint of programmable counter 211-21N of one of activation or several multiple micro controller respectively, the programmable counter that breakpoint is enabled can compare with corresponding breakpoint address 301-30M constantly, when both are identical, analog controller 26 each micro controller of can stopping at once; Otherwise, both each micro controller of more can not stopping then, this breakpoint activation switch 34 carries out the breakpoint activation in order to the programmable counter 211-21N that whether sets multiple micro controller 200, and analog controller 26 can be set these breakpoint activation switches 34; Analog controller 26 can be when program be carried out breakpoint address 301-30M and all micro controller and is stopped, will be at this breakpoint address 301-30M place, all of multiple micro controller 200 or the state of a part of micro controller 201-20N, the development environment that utilizes full duplex connectivity port interface 22 to be transferred on the personal computer 20.
Above framework, it than detail circuits embodiment as shown in Figure 6A, in single-chip micro computer simulator 24, be provided with breakpoint system energy buffer 36 and multiple micro controller executing state buffer 42, in addition and in analog controller 26, be provided with comparator circuit 38, it can be made of a plurality of comparer 381-38M, for making comparisons with M breakpoint.Must explanation be, this only may implement kenel for wherein a kind of, for example, more must not the finishing of breakpoint with hardware comparison circuit, and certainly also the available software mode reach; Again, when reaching with hardware, the number of comparer also may not be identical with the breakpoint number, can make it become the many-to-many relationship that number does not wait by multitask mode, this be all that those skilled in the art can think easily and.In the embodiment shown in Fig. 6 A, when single-chip micro computer simulator 24 is desired all micro controller of stopping at the breakpoint address 301-30M that sets, and the system state when program carried out this breakpoint address 301-30M, personal computer 20 is given in passback, the action of its inside is: the development environment of personal computer 20 is set the breakpoint address 301-30M of the executive routine correspondence of each micro controller by full duplex connectivity port interface 22 and 26 pairs of program breakpoint Address Registers of analog controller 32, and, development environment is also set breakpoint activation buffer 36, which breakpoint address 301-30M with and relatively the programmable counter 211-21N of micro controller 201-20N to do the breakpoint activation, which is not enabled; Under the activation situation, carry out the breakpoint address 301-30M of this corresponding setting when the program of each micro controller, when the programmable counter 211-21N that comparer 381-38M compares multiple micro controller is identical with the breakpoint address 301-30M of setting, analog controller 26 all micro controller of can stopping, at this moment, the program execution state of each micro controller can be transferred to personal computer 20 by analog controller 26 and full duplex connectivity port interface 22; Simultaneously, one multiple micro controller executing state buffer 42 each micro controller executing states of record are arranged, comprise that present breakpoint address 301-30M is that programmable counter 211-21N by that micro controller is taken place, this information also is back to personal computer 20 via analog controller 26 and full duplex connectivity port interface 22.
Another specific embodiment of the present invention is shown in Fig. 6 B, be with Fig. 6 A difference: each micro controller in the single-chip micro computer simulator 24 is to be performed under the different sequential that stagger mutually, therefore the programmable counter 211-21N in the multiple micro controller 200 is except that can a corresponding separately breakpoint address 301-30M, even can be (as shown in the figure by the corresponding same breakpoint address 301-30M of the programmable counter 211-21N more than two, the programmable counter 212 of micro controller 202 and the programmable counter of micro controller 203 213 common corresponding same breakpoint address 302), under the activation situation, whether the different programmable counter 211-21N more than two in the multiple micro controller 200 can compare at comparer 381-38M with identical breakpoint address 301-30M simultaneously, have any programmable counter 211-21N to carry out the breakpoint address 301-30M that sets to monitor; Because each micro controller is to be performed under the different sequential that stagger mutually, so when each breakpoint takes place, can know by the information of multiple micro controller executing state buffer 42 and to know that this breakpoint is taken place by that programmable counter 211-21N, this information can pass back to personal computer 20 by analog controller 26, what can can't do not triggered by person by the identification breakpoint because of plural programmable counter 211-21N sets identical breakpoint address 301-30M, because of the corresponding same breakpoint address 301-30M of the programmable counter 211-21N more than two is independently behavior separately, and the program of each micro controller is carried out sequential and is staggered, each breakpoint is only triggered by a programmable counter 211-21N, does not have two programmable counter 211-21N at a time point and triggers breakpoint address 301-30M situation simultaneously.
For convenient programmer carries out program trace, according to another part content of the present invention, micro controller state and other important information can be presented on the picture of personal computer in a kind of open-and-shut mode, wherein an example can be with reference to figure 7A-7E.Among Fig. 7 A, what occupy most of position, picture bottom top is a program step display window 501, wherein demonstrates each step (some step is omitted with ellipsis among the figure) of program with linescan method.There is an action window 505 picture bottom below, the action that the display routine designer carried out, and for example from where downloading this program, or the like.Be positioned at right-hand, overlapping bottom window 501 tops of being shown in of picture, it is a general caching device display window 502, wherein show in the tested multiple micro controller, the state of the general caching device of sharing for all micro controller (example is R8-RF as shown in the figure), and wherein also can the display routine execution time (example is TIME as shown in the figure) etc.
The maximum difference of present embodiment and prior art shown in Figure 3 is, a micro controller state display window to change mouth 503 is arranged among Fig. 7 A, wherein show in the multiple micro controller simultaneously, each important parameter state of each micro controller, in a kind of open-and-shut mode, whether wrong with reference to also checking for the programmer.Which belongs to important parameter as for, and visual programmer's demand decides, and only is an example wherein shown in the figure.In detail, in the embodiment of 7A, demonstrate in the micro controller state display window to change mouth 503 and the content numerical value of first micro controller (MCU1) corresponding programs counter (PC1), the content numerical value of totalizer (ACC1), the content numerical value of stack pointer device (SP1) and the content numerical value of flag buffer (Flag1).The content numerical value of flag buffer in fact is the comprehensive numerical value of one group of flag, and the programmer can be in window, and the positive sign of pressing the Flag1 left launches it.The corresponding flag buffer (Flag2) of second micro controller (MCU2) for example, its each Ziqi target content numerical value just launches, wherein for example comprise null value flag (zero flag), overflow flag (overflow flag), carry flag (carry flag) or inferior carry flag (alternativecarry flag) or the like, and outside last arithmetic flag, still may comprise other arithmetic or non-arithmetic flag (representing) with ellipsis.In above parameter of giving an example, the content numerical value of programmable counter is most important parameter, also be under the general situation programmer definitely must reference numerical value.
In fact, each micro controller also may respectively have its special-purpose buffer except that having corresponding programmable counter, totalizer, stack pointer device and flag buffer; For example, first micro controller (MCU1) may have dedicated buffer PA, PAC, PAPH, PAOD, it also can be presented in the micro controller state display window to change mouth 503 certainly, or shown in Fig. 7 A, these dedicated buffer is presented in the general caching device display window 502.Again, when window showed all the elements information inadequately, as shown in the figure, available scroll bar (scroll bar) mode went up drop-down moving for the programmer, to adjust the displaying position of window.
In addition, shown in Fig. 7 B, also general caching device display window 502 and micro controller state display window to change mouth 503 can be integrated into same comprehensive state display window 602, though wherein with each of each micro controller important with minor parameter state, be incorporated in the same window with the content numerical value of general caching device, but can be by launching (pressing positive sign) and fold (pressing negative sign) function, come convenient programmer optionally consult want the numerical value observed; For example among Fig. 7 B, the parameter state of the 3rd micro controller MCU3 and the 4th micro controller MCU4 folds, and the state information of general caching device also can integral body fold, and makes in the window the only remaining state information of wanting the specific micro controller of observing.
In the embodiment of Fig. 7 A and Fig. 7 B, the programmer has configured breakpoint, and for example upper left arrow indication step 34 (reference numbers 510) among the figure is one of breakpoint.Program is ended at this breakpoint location, allows the programmer can check that each numerical value is to carry out debug.But under some application scenario, though the programmer has configured a plurality of breakpoints, but might not wish all to end program at each breakpoint address, for example, the programmer may want to be absorbed in the procedural problem that solves some or a plurality of (but non-whole) micro controller, the step that this moment and these one or more micro controller are irrelevant, that is by the performed step of other micro controller, even run into breakpoint, do not want to end yet.At this kind demand, can be with reference to figure 7C, according to the present invention, a menu can be provided on picture, and this menu can as shown be the window menu 508 of a Pop-up, but can certainly show with other kind of a mode, order button for example is provided above picture, presses drop-down demonstration in back or the like.The programmer can select the micro controller of the debug of wanting on menu, for example in Fig. 7 C, multiple micro controller all has eight micro controller, and the programmer is only interesting to second and the 6th micro controller, so chosen second and the 6th micro controller.
After the selected micro controller, suppose program designer does not change the breakpoint that originally sets, that is the breakpoint that still sets with Fig. 7 A and Fig. 7 B is identical, after starting (or restarting) program this moment, run into and the irrelevant breakpoint of selected micro controller, can skip automatically and can not end, for example in Fig. 7 D, when program starts anew to proceed to step 34 (one of institute's breaking originally), can't pause, but continue to carry out and second or the 6th relevant breakpoint of micro controller, for example just end during arrow indication step 35 (reference numbers 511).
Again, as shown in Fig. 7 D, after the selected micro controller, also can change micro controller state display window to change mouth 503 accordingly automatically, make the state of the selected micro controller of its demonstration.But the state that certainly, also can still show all micro controller.
Above for embodiment, all be to be illustrated, but the present invention is not limited to be applied in the occasion of breakpoint debug at the occasion of utilizing the breakpoint debug, make program progressively carry out the programmer, when carrying out progressively debug, also can use.The embodiment of Fig. 7 A and Fig. 7 B, in the occasion of debug progressively, its emphasis is to show two or more micro controller states on picture simultaneously, checks debug with convenient programmer; The embodiment of Fig. 7 C to Fig. 7 D, in the occasion of debug progressively, its emphasis is to skip and step that selected micro controller is irrelevant.For example the picture of Fig. 7 D can be not set under the situation of any breakpoint, by the programmer by manual mode operation mode, progressively executive routine.At this moment, the programmer whenever controls a step, and program is just down carried out a step back at selected micro controller and paused, but when running into not selected micro controller, then carries out continuously.
Except above-mentioned points, for example with reference to the picture of figure 7E, still can emphasize to show the step relevant, shown in reference numbers 512 with selected micro controller.Certainly, display packing is not limited to add coloring grounding, also can adopt alternate manner, as conversion font or the like.As previously mentioned, in Fig. 7 E, can be to end to be parked in program step 214 (reference numbers 513) because of breakpoint, or because progressively debug and end to be parked in this step.
Again, above Fig. 7 A-7E for embodiment, all be to illustrate, but a plurality of micro controller at multiple micro controller, even be not integrated into a single-chip, also display frame in the same way still belongs within the notion of the present invention.
Below at preferred embodiment the present invention is described, the above only for those skilled in the art are easy to understand content of the present invention, is not to be used for limiting interest field of the present invention.For those skilled in the art, when can in spirit of the present invention, thinking immediately and various equivalence variation.For example, window can change demonstration arranged side by side into, and non-overlapped demonstration, or the like.So all according to a notion of the present invention and spirit impartial for it a variation or modification, all should be included in the claim scope of the present invention.

Claims (22)

1. the integrated form development environment for the use of chip simulation system is characterized in that, this chip simulation system is for following the trail of the state of a plurality of micro controller when executive routine, and wherein each micro controller has corresponding programmable counter, and this environment is carried out following steps:
On personal computer screen, produce a picture, the programmable counter content numerical value of the plural micro controller of screen displayed.
2. integrated form development environment as claimed in claim 1, wherein, each micro controller has corresponding totalizer, and this environment is more carried out following steps:
Accumulator contents numerical value in the plural micro controller of screen displayed.
3. integrated form development environment as claimed in claim 1, wherein, each micro controller has corresponding stack pointer device, and this environment is more carried out following steps:
Stack pointer device content numerical value in the plural micro controller of screen displayed.
4. integrated form development environment as claimed in claim 1, wherein, each micro controller has corresponding flag group, and this environment is more carried out following steps:
Flag group content numerical value in the plural micro controller of screen displayed.
5. integrated form development environment as claimed in claim 4, wherein, this flag group comprises one or more of following flag: null value flag, overflow flag, carry flag or inferior carry flag.
6. integrated form development environment as claimed in claim 1, wherein, each micro controller is except that having corresponding programmable counter, and other has corresponding totalizer, stack pointer device, reaches the flag group, and this environment is more carried out following steps:
At the programmable counter of the plural micro controller of screen displayed, totalizer, stack pointer device, and flag group content numerical value, and show with an independent window.
7. integrated form development environment as claimed in claim 1, wherein, this environment is more carried out following steps:
One menu is provided,, selects one or more micro controller of desiring to carry out program trace in aforementioned a plurality of micro controller.
8. integrated form development environment as claimed in claim 7 wherein, according to chosen micro controller, and emphasizes to show relative programmable counter content numerical value on picture.
9. integrated form development environment as claimed in claim 7, wherein, this environment is more carried out following steps:
According to chosen micro controller, and on picture, emphasize to show relative program step.
10. integrated form development environment as claimed in claim 1, wherein, this environment is more carried out following steps:
Accept program breakpoint and set, when arbitrary programmable counter content numerical value arrives breakpoint, supspend program.
11. integrated form development environment as claimed in claim 7, wherein, this environment is more carried out following steps:
Accept program breakpoint and set, but only when the corresponding programmable counter content numerical value of selected micro controller arrives breakpoint, just supspend program.
12. integrated form development environment as claimed in claim 7, wherein, this environment is more carried out following steps:
As the program step of chosen micro controller, then progressively interrupt, as the program step of not chosen micro controller, then carry out continuously.
13. the simulation system of a multiple micro controller is characterized in that, comprising:
One single-chip micro computer simulator, it has an analog controller and at least two micro controller, the action of this each this micro controller of analog controller may command, and each this micro controller all has a programmable counter independently, correspond at least one breakpoint address separately, and each this micro controller of can when this programmable counter is carried out its pairing breakpoint address, stopping, and can be when pairing this breakpoint address, the state of each this micro controller is transmitted back to this analog controller; And
One personal computer, link up with this analog controller, and then the state of each this micro controller when obtaining this breakpoint address, one integrated form development environment is wherein arranged in this personal computer, and this environment can be at the content numerical value that shows aforementioned programmable counter more than two on the screen cover of personal computer.
14. the simulation system of multiple micro controller as claimed in claim 13, wherein, this environment more provides a menu, desires to carry out the micro controller of program trace for you to choose.
15. the simulation system of multiple micro controller as claimed in claim 14 wherein, only when the corresponding programmable counter of selected micro controller arrives breakpoint address, is just supspended program.
16. the simulation system of multiple micro controller as claimed in claim 14 wherein, as the program step of chosen micro controller, is then progressively interrupted, and as the program step of not chosen micro controller, then carries out continuously.
17. the analogy method of a multiple micro controller comprises at least two micro controller in this multiple micro controller, each micro controller has corresponding programmable counter, it is characterized in that the method may further comprise the steps:
One personal computer is online to an analog controller;
Utilize at least two micro controller of this analog controller control, and the breakpoint of the programmable counter of one of them micro controller of activation;
Each micro controller of when this programmable counter is carried out a pairing breakpoint address, stopping, and the state of at least two these micro controller that will be when this breakpoint address is back to this personal computer; And
The state that on the screen of this personal computer, shows these at least two micro controller.
18. method as claimed in claim 17, wherein, described state comprises the content numerical value of these at least two pairing programmable counters of micro controller.
19. method as claimed in claim 18, wherein, each micro controller is except that having corresponding programmable counter, and other has corresponding totalizer, stack pointer device, and flag group, and described state comprises totalizer, stack pointer device, and flag group one of them or a plurality of content numerical value.
20. method as claimed in claim 17 wherein, also comprises: a menu is provided, desires to carry out the micro controller of program trace for you to choose.
21. method as claimed in claim 20 wherein, only when the corresponding programmable counter of selected micro controller arrives breakpoint address, is just supspended program.
22. method as claimed in claim 21 wherein, as the program step of chosen micro controller, is then progressively interrupted, and as the program step of not chosen micro controller, then carries out continuously.
CN 200610077878 2006-05-10 2006-05-10 Multiple micro controlunit stimulating system and its method, and integrated development environment thereof Pending CN101071395A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200610077878 CN101071395A (en) 2006-05-10 2006-05-10 Multiple micro controlunit stimulating system and its method, and integrated development environment thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200610077878 CN101071395A (en) 2006-05-10 2006-05-10 Multiple micro controlunit stimulating system and its method, and integrated development environment thereof

Publications (1)

Publication Number Publication Date
CN101071395A true CN101071395A (en) 2007-11-14

Family

ID=38898627

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200610077878 Pending CN101071395A (en) 2006-05-10 2006-05-10 Multiple micro controlunit stimulating system and its method, and integrated development environment thereof

Country Status (1)

Country Link
CN (1) CN101071395A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110506242A (en) * 2017-05-30 2019-11-26 欧姆龙株式会社 Program development supports device, program development to support system, program development support apparatus and program development support program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110506242A (en) * 2017-05-30 2019-11-26 欧姆龙株式会社 Program development supports device, program development to support system, program development support apparatus and program development support program
US11287789B2 (en) 2017-05-30 2022-03-29 Omron Corporation Program development support device, program development support system, program development support method, and non-transitory computer-readable recording medium
CN110506242B (en) * 2017-05-30 2022-07-08 欧姆龙株式会社 Program development support device, system, method and recording medium

Similar Documents

Publication Publication Date Title
US4782461A (en) Logical grouping of facilities within a computer development system
CN113961453B (en) Full-digital simulation test system for airborne software
CN102662835A (en) Program debugging method of embedded system and embedded system
CN102917242A (en) Testing system and testing method of multi-format video decoder
CN102096725A (en) Field programmable gate array (FPGA)-based simulator
CN114064458A (en) JTAG debugging method and system with extensible interface and universality
CN101261783B (en) A 'computer composition principle' simulation experimental system
CN110907882A (en) Electric energy meter-oriented virtualization test method and system
US9342425B2 (en) Test apparatus and test module
CN101071395A (en) Multiple micro controlunit stimulating system and its method, and integrated development environment thereof
CN106528414A (en) Processor chip simulator
CN208781208U (en) Pci bus test board
CN112182586B (en) MCU read-write protection test method, device and system
CN100533401C (en) Emulation and debug interfaces for testing an integrated circuit with an asynchronous microcontroller
Krummel et al. Advances in microcomputer development systems
CN103115665A (en) Online type real-time vibration detecting device based on ATOM and ARM
CN1979445A (en) Single-chip micro computer simulation system of multiple micro-controller and method thereof
Melear Emulation techniques for microcontrollers
JPH03294934A (en) Debugger for high level program lenguage
KR100189977B1 (en) Emulator system having trace function and trace method
Kosowska et al. Implementing the Bus Protocol of a Microprocessor in a Software-Defined Computer
TWI303762B (en)
Wu et al. Communication Design for I2C Bus Based on Proteus
US20110273461A1 (en) Status display apparatus
SU955019A1 (en) Device for interfacing two computers

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication