CN105404733A - 'Component' based digital logic circuit CAI construction and simulation running realization method - Google Patents

'Component' based digital logic circuit CAI construction and simulation running realization method Download PDF

Info

Publication number
CN105404733A
CN105404733A CN201510754258.5A CN201510754258A CN105404733A CN 105404733 A CN105404733 A CN 105404733A CN 201510754258 A CN201510754258 A CN 201510754258A CN 105404733 A CN105404733 A CN 105404733A
Authority
CN
China
Prior art keywords
circuit
simulation
input end
module
user
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
CN201510754258.5A
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.)
Chengdu Aeronautic Polytechnic
Original Assignee
Chengdu Aeronautic Polytechnic
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 Chengdu Aeronautic Polytechnic filed Critical Chengdu Aeronautic Polytechnic
Priority to CN201510754258.5A priority Critical patent/CN105404733A/en
Publication of CN105404733A publication Critical patent/CN105404733A/en
Pending legal-status Critical Current

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a 'component' based digital logic circuit CAI construction and simulation running realization method. In order to realize simulation running, functional modules including a component library module, a circuit diagram editor module, a circuit identification module, a parameter configuration and data processing module, a simulation operation and environment support module and the like are provided. A digital logic circuit CAI simulation system consisting of the functional modules can perform digital logic circuit construction and simulation running operation. The digital logic circuit CAI simulation system is provided with a graphic editor and can simulate and demonstrate working principle and process of any circuit constructed by a user; and in a simulation process, the system does not know a next state of a component or a device in advance, and the next state of the component or the device is dynamically determined in the simulation process according to an input parameter of the device at the moment and a logic function of the device, so that the design idea completely simulates running process and condition of a real circuit, and a simulation result is objective and true.

Description

The implementation method of a kind of structure of the DLC (digital logic circuit) CAI based on " element " and simulation run
Technical field
The present invention relates to DLC (digital logic circuit) CAI field, the implementation method of especially a kind of structure of the DLC (digital logic circuit) CAI based on " element " and simulation run.
Background technology
Vigorously advocating brand-new educational concept, teaching method, the content of courses and teaching means, the today of quality-oriented education of carrying out in an all-round way, representatively the critical role of the CAI of advanced Teaching method in modern teaching and effect, be undisputable fact.In recent years, under the joint efforts of numerous educators, increasing CAI system is developed, and embody rule, have received good teaching efficiency.How to develop the CAI system that real quality is high, practical, effective, no matter be in design concept or on Implementation Technology, be still the important topic of pendulum in face of us.
As everyone knows, the characteristics and advantages of CAI is: media information can be acted on student by it simultaneously, makes each sense organ of student be subject to the stimulation of education informations in all directions simultaneously, obtains a kind of experience completely newly.Again because CAI system can provide the interactive man-machine interface of visual in image, rich and varied, convenient, flexible a, friendly interface to operator, the object of " teaching through lively activities; blend learning in music " can be reached, thus the comparatively better teaching efficiency of traditional teaching method can be obtained.
At present, the Universal Problems that some CAI system for electronic circuits that we touch exist is: 1. courseware only can provide limited amount to user and the fixing circuit of content, lacks open and dirigibility; 2. some courseware is exactly almost the simple reprint of a certain specific textbook, fails to give full play to the usefulness of computing machine, the sharing that is deficient in resources and vividness; 3. user can not participate in effectively, can not give full play to the subjective initiative of student, imagination and creativity, lacks interactivity.
Summary of the invention
The object of the invention is to the deficiency overcoming the existence of existing CAI system, the implementation method of a kind of DLC (digital logic circuit) CAI based on " element " structure and simulation run is provided at this; The method can the principle of work of simulation demo circuit and the course of work, observes the operation of circuit and the change details of each element state.
The present invention realizes like this, the implementation method of a kind of DLC (digital logic circuit) CAI based on " element " structure and simulation run is provided to user, not only can provide a large amount of typical circuit to user, but also component library can be provided to user, user utilizes component library and graphic editor can indiscriminately ad. as one wishes construct any circuit, and does simulation run demonstration, observes principle of work and the course of work of circuit, obtain required circuit operation result, the innovation ability of outstanding training student.
For realizing " the DLC (digital logic circuit) CAI based on ' element ' builds and simulation run ", first should build with lower module.
(1) component library module: all elements determining component library, and founding mathematical models, mathematical model, for describing the logic function of element, is again basis and the foundation of Computer Simulation simultaneously.
(2) circuit diagram editor module: provide the Graph editor of the Schedit circuit theory in a similar Protel to user, editting function should be enriched perfect, enables user edit any circuit of structure quickly and easily.
(3) circuit identification module: this module is used for user in circuit editing process or after completing, and determines each interelement interconnected relationship of forming circuit figure.
(4) parameter configuration and data processing module: " parameter configuration " refers to that circuit runs the original state of front established part components and parts (gate circuit or trigger etc.), and determines the burst being loaded into circuit input end; " data processing " is to allow system " know " annexation between the logic function of each element and circuit components, so that signal can carry out transmitting and converting according to the logic function of circuit component and specific annexation.
(5) simulation run and Environmental Support module: can simulation run be done after circuit identification and parameter configuration complete.The process of simulation run is from input signal is added to circuit input end, and advance until output terminal backward step by step, the working condition of the complete Reality simulation circuit of whole process, just reduces several orders of magnitude by the operating rate of circuit, facilitate user's observation analysis.This module should also provide the necessary support environment of simulation run, as the setting, simulation velocity, line style, color scheme etc. of operational factor.
The step of simulation run process is as follows:
1st step: reading circuit input end parameter after carrying out parameter configuration and data processing, comprises the signal level value or input waveform sequence that are loaded into each input end;
2nd step: carry out input end emulation, namely according to the circuit input end parameter read, changes input end color, shows with making the level state visual pattern of input end;
3rd step: obtain all elements of Suo Lian subordinate; And according to the circuit connecting relation that " parameter configuration and data processing " obtains, obtain all elements of the next stage that each input end connects;
4th step: if next stage element is output terminal, turns to the 9th step;
5th step: if next stage element is not output terminal, then this element one is decided to be a certain concrete element, then read the input end state of this element;
6th step: the new state determining element according to the logic function of the previous status of this element, the input state of element and element;
7th step: the new state determining subordinate's line according to the new state of element;
8th step: jump to the 3rd step;
9th step: if next stage element is output terminal, carry out output terminal emulation;
10th step: detected parameters configures, and judges whether to export truth table, if so, draws truth table;
11st step: detected parameters configures, and judges whether to want output logic function expression, if so, draws logical function expression formula;
12nd step: detected parameters configures, and judges whether to want output waveform figure, if so, draws oscillogram;
13rd step: judge whether emulation terminates, and if not, jumps to the 1st step;
14th step: emulation terminates.
The circuit of simulation run has following three kinds of possible sources:
The first kind is that user draws the novel circuit produced by schematic diagram editing machine;
Equations of The Second Kind is reading disk file existed, that is: the circuit that stores of pre-edit;
3rd class is reading instance document existed, that is: the circuit that stores of pre-edit;
Wherein, the first kind and Equations of The Second Kind file just can carry out simulation run after all needing to carry out parameter configuration and data processing; The difference of Equations of The Second Kind and the 3rd class file (although being all the circuit stored in advance) is, Equations of The Second Kind disk file just can carry out simulation run after having to pass through parameter configuration and data processing, and although the 3rd class instance document is also a kind of disk file, but due to circuit store while also store parameter configuration and data processing after related data information, therefore, without the need to just directly simulation run can be carried out through parameter configuration and data processing link again after recalling;
Wherein, " parameter configuration " refers to that circuit runs the original state of front established part components and parts (gate circuit or trigger etc.), and determines the burst being loaded into circuit input end; " data processing " is to allow system " know " annexation between the logic function of each element and circuit components, so that signal can carry out transmitting and converting according to the logic function of circuit component and specific annexation.
Based on the DLC (digital logic circuit) CAI analogue system that the method constructs, containing graphic editor and figure recognition function, can the principle of work of any one circuit that constructs of simulation demo user and process in many ways; In simulation process, the next status system of certain element or device in advance and do not know, but dynamically determine in simulation process according to the logic function of this device input parameter at that time and device self, this design philosophy simulates operation and the situation of real circuits completely, thus has higher authenticity and objectivity.
The invention has the advantages that: the present invention provides the implementation method of a kind of DLC (digital logic circuit) CAI based on " element " structure and simulation run at this, can construct DLC (digital logic circuit) CAI system based on the method.Specifically, had the following advantages by this CAI system with copying based on " element ": 1. can the principle of work of simulation demo circuit and the course of work, observe the operation of circuit and the change details of each element state.2. can edit due to user and construct circuit, therefore system can the interested any circuit of simulation demo student.3. system can lively, image, represent the change procedure of circuit state intuitively, exactly, the simulation demo of this visual pattern can obtain the effect comprising and do other means of testing and almost cannot obtain.4. can give full play to subjective initiative and imagination, the creativity of student.5. proof scheme function, does virtual experimental.Because each " element " in component library is described with the mathematical model of its real elements logic function, so be consistent to the simulation result of circuit with the result of side circuit.6. can improve circuit layout efficiency, shorten the design cycle, and the impact that can not get the non-artificial factor of circuit result that causes because of the quality problems such as components and parts, circuit board can be avoided.
Accompanying drawing explanation
The organization chart of the analogue system that Fig. 1 emulation mode of the present invention is formed
The simulation run process flow diagram of Fig. 2 DLC (digital logic circuit) CAI.
Embodiment
Below in conjunction with accompanying drawing 1 and accompanying drawing 2, the present invention is described in detail, is clearly and completely described the technical scheme in the embodiment of the present invention, and obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
General CAI system for electronic circuit is known due to circuit form, demonstrates parameter, circuit function and result and is known or prearranges, and therefore, its simulation process is actually to do in advance to be determined in a program, becomes an ingredient of program.This scheme advantage is that programming realization method is simple, demonstrates reliable and stable.Shortcoming is that demonstration parameter is unadjustable, can for the circuit kind limited amount of demonstration.
The present invention provides the implementation method of a kind of DLC (digital logic circuit) CAI based on " element " structure and simulation run at this, realizes in the following manner;
First, need build with lower module;
(1) component library module: all elements determining component library, and founding mathematical models, mathematical model, for describing the logic function of element, is again basis and the foundation of Computer Simulation simultaneously.
(2) circuit diagram editor module: provide the Graph editor of the Schedit circuit theory in a similar Protel to user, editting function should be enriched perfect, enables user edit any circuit of structure quickly and easily.
(3) circuit identification module: this module is used for user in circuit editing process or after completing, and determines each interelement interconnected relationship of forming circuit figure.
(4) parameter configuration and data processing module: " parameter configuration " refers to that circuit runs the original state of front established part components and parts (gate circuit or trigger etc.), and determines the burst being loaded into circuit input end; " data processing " is to allow system " know " annexation between the logic function of each element and circuit components, so that signal can carry out transmitting and converting according to the logic function of circuit component and specific annexation.
(5) simulation run and Environmental Support module: can simulation run be done after circuit identification and parameter configuration complete.The process of simulation run is from input signal is added to circuit input end, and advance until output terminal backward step by step, the working condition of the complete Reality simulation circuit of whole process, just reduces several orders of magnitude by the operating rate of circuit, facilitate user's observation analysis.This module should also provide the necessary support environment of simulation run, as the setting, simulation velocity, line style, color scheme etc. of operational factor.
The step of simulation run process is as follows:
1st step: reading circuit input end parameter after carrying out parameter configuration and data processing, comprises the signal level value or input waveform sequence that are loaded into each input end;
2nd step: carry out input end emulation, namely according to the circuit input end parameter read, changes input end color (such as, redness represents high level, and blueness represents low level), shows with making the level state visual pattern of input end;
3rd step: obtain all elements of Suo Lian subordinate.The circuit connecting relation that system obtains according to " parameter configuration and data processing ", obtains all elements of the next stage that each input end connects;
4th step: if next stage element is output terminal, turns to the 9th step;
5th step: if next stage element is not output terminal (, this element one is decided to be a certain concrete element), then read the input end state of this element;
6th step: system determines the new state of element according to the logic function (mathematical model) of the previous status of this element, the input state of element and element;
7th step: the new state determining subordinate's line according to the new state of element;
8th step: jump to the 3rd step;
9th step: if next stage element is output terminal, carry out output terminal emulation;
10th step: detected parameters configures, and judges whether to export truth table, if so, draws truth table;
11st step: detected parameters configures, and judges whether to want output logic function expression, if so, draws logical function expression formula;
12nd step: detected parameters configures, and judges whether to want output waveform figure, if so, draws oscillogram;
13rd step: judge whether emulation terminates, and if not, jumps to the 1st step;
14th step: emulation terminates.
The circuit of simulation run has following three kinds of possible sources:
The first kind is that user draws the novel circuit produced by schematic diagram editing machine;
Equations of The Second Kind is reading disk file existed, that is: the circuit that stores of pre-edit;
3rd class is reading instance document existed, that is: the circuit that stores of pre-edit;
Wherein, the first kind and Equations of The Second Kind file just can carry out simulation run after all needing to carry out parameter configuration and data processing; The difference of Equations of The Second Kind and the 3rd class file (although being all the circuit stored in advance) is, Equations of The Second Kind disk file just can carry out simulation run after having to pass through parameter configuration and data processing, and although the 3rd class instance document is also a kind of disk file, but due to circuit store while also store parameter configuration and data processing after related data information, therefore, without the need to just directly simulation run can be carried out through parameter configuration and data processing link again after recalling;
Wherein, " parameter configuration " refers to that circuit runs the original state of front established part components and parts (gate circuit or trigger etc.), and determines the burst being loaded into circuit input end; " data processing " is to allow system " know " annexation between the logic function of each element and circuit components, so that signal can carry out transmitting and converting according to the logic function of circuit component and specific annexation.
DLC (digital logic circuit) CAI (i.e. DLCCAI) system can be constructed based on this structure and emulation mode; In the present invention, the design concept of DLCCAI is the DLC (digital logic circuit) CAI based on " element "--DigitalandLogicalCircuitComputerAidedInstruction, hereinafter referred to as DLCCAI, it is a set of computer aided instruction system that applicant obtains on the basis of summing up field research experience for many years.Because " Digital Electronic Technique " course belongs to the important specialized core course of universities' electric specialty, consider popularization and the application universality of system, this CAI system can adapt to from special secondary school until the requirement of undergraduate education teaching to this course.The DLCCAI systemic-function formed based on emulation mode of the present invention is powerful, abundant in content, easy to use and flexible, has fabulous interactive man-machine interface, and the environment layout of its system arranges scientific and reasonable, and beautiful interface is generous.No matter this system is function, content, or the technology content of itself, performance index, compared with the similar CAI system seen now, can high starting point be deserved to be called, function is strong.
We find, the general character of electronic circuit class course is: course is to the effect that analyzed the formation of circuit and principle of work and introduced, and any circuit is all formed by connecting by certain way by electronic component.
According to These characteristics, the CAI system based on " element " is built by the implementation method of this circuits built and simulation run, the system obtained not only provides a large amount of typical circuit to user, and provide component library to user, user utilizes component library and graphic editor can any circuit of arbitrary structure, and do simulation run demonstration, thus observe principle of work and the course of work of circuit, the innovation ability of outstanding training student.
Realize from the angle of technology, this thought requires to adopt computer simulation technique.By the system that above-mentioned emulation mode is developed, not with a certain specific teaching material be source courseware or e-teaching plan, but a blanket breadboardin based on teaching of certain course and analogue system.Because system provides circuit edit to user, user has circuit structure power, and therefore this CAI system is actually the multifunction system that integrates computer-aided instruction, Computer Aided Design, assistant analysis.
Specifically, this CAI system with copying based on " element " obtained has the following advantages: 1. can the principle of work of simulation demo circuit and the course of work, observes the operation of circuit and the change details of each element state.2. can edit due to user and construct circuit, therefore system can the interested any circuit of simulation demo student.3. system can lively, image, represent the change procedure of circuit state intuitively, exactly, the simulation demo of this visual pattern can obtain the effect comprising and do other means of testing and almost cannot obtain.4. can give full play to subjective initiative and imagination, the creativity of student.5. proof scheme function, does virtual experimental.Because each " element " in component library is described with the mathematical model of its real elements logic function, so be consistent to the simulation result of circuit with the result of side circuit.6. can improve circuit layout efficiency, shorten the design cycle, and the impact that can not get the non-artificial factor of circuit result that causes because of the quality problems such as components and parts, circuit board can be avoided.
The characteristic of DLCCAI:
In the working environment of DLCCAI, the user both simulation demo of the principle of work of more than hundred typical circuit that provides of observable system and corresponding principle illustrates, structure circuit of following one's bent again, and observes the simulation process of this circuit, obtains relevant data and result.Be described as follows.
1, DLCCAI comprises a DLC (digital logic circuit) schematic diagram editing machine, this graphic editor provides comparatively complete editting function, as the placement, movement, rotation, deletion, dynamic crawl etc. of component symbol, the operation of graphic editor uses simple, convenient, fast, efficient, directly perceived, easily and promptly can edit electrical schematic diagram.The electrical schematic diagram that user edits can form user file deposit, only need just can simulation run after simple process and parameter configuration.
2, the circuit that DLCCAI built-in more than hundred is complete, these circuit have contained typical circuit nearly all in this course textbook.Recalling wherein just can simulation run immediately after arbitrary circuit.In addition, once after a certain circuit is transferred out, user can read the Word message such as principle of work, supplemental instruction of this circuit at any time.
3, the look & feel of DLCCAI is consistent with Windows, and the many basic operations involved by system are all compatible with current system specifications and convention.Therefore, there is the people of General System operative skill and experience, easily can use DLCCAI.
The function of DLCCAI:
1, circuit design is followed one's bent: DLCCAI carries the circuit theory Graph editor of the Schedit of similar Protel, and user has circuit structure power, and this just means, the Functional Design that user can utilize native system to provide constructs oneself interested any circuit; Simultaneously can its principle of work of simulation demo and the course of work immediately, observe the operation of circuit and the change details of each element state, and synchronously can produce truth table, logical function expression formula and oscillogram.Therefore, DLCCAI can the simulation run demonstration principle of work of infinite multiple circuit and process, and this is the most embodiment of power of native system and the place of greatest feature.
2, simulation process is vivid: in simulation demo process, DLCCAI can with adjustable speed, distinct color, image, represent the change procedure of circuit state vividly, intuitively, exactly.The simulation demo of this visual pattern can obtain the effect comprising and make other means of testing and almost cannot obtain.
3, four kinds of simulation run pattern: DLCCAI have four kinds of simulation run patterns: 1. the wave sequence inputted according to user runs; 2. in combinational circuit, if user require with emulate synchronously list truth table or logical expression time, then input signal is set to all binary combination of input variable by system automatically; 3. in combinational circuit, if user does not select truth table or logical expression, then user must be input variable initialization, and system does disposable emulation; 4. in sequential circuit, user only need make suitable process and parameter configuration, then circuit can do simulation run incessantly under the effect of CP pulse.These four kinds of simulation models have comprised all working mode that DLC (digital logic circuit) may run into.
4, parameter is fast easy to adjust: DLCCAI adjustable major parameter in editor and running environment has: grid display (ON/OFF grid), signal-line choosing (thick/fine rule), the selection of color scheme, simulation velocity, single step emulation or continuous simulation etc., the adjustment available menu of these parameters, also can use quick botton, even can in simulation process dynamic adjustments.
5, virtual reality is directly perceived flexibly: the simulation run real result of circuit is objective.This is because each " element " be supplied in the component library of user is the result accurately described through mathematical model by the logic function of real elements.Therefore, some logical circuits, originally need could verify or obtain its logic function by side circuit, now just can obtain result by native system to after its simulation run.
System can intuitively, the course of work of certain DLC (digital logic circuit) of analog demenstration visually, in circuit, all elements state at work and state change process thereof all intuitively display with the speed of setting.User goes back the level state that available light diode monitors any element, or by the count value of LED numeral method counter.Use these elements simple and convenient as test in laboratory, operational effect is also similar with real elements.
6, be easy to learn and use friendly interface: define multiple functional menu system in user environment, for making operation easier and efficient, also defines the quick botton of common function.System is these quick bottons, element button, status bar and dialog box, function button etc. in configuration block, both provide relevant elaborating and information (being generally status bar message and TIP information two kinds of modes), make operator very clear.In some specific operation process, due to the reasonable arrangement of system, user can only operate by specific order, guarantees that system works without any confusion.Above-mentioned arrangement ensure that native system has good man-machine dialog interface interactivity.
7, editing operation is simple and convenient: the related operating method of the systems such as operation using method similar PROTEL, ORCAD of the schematic diagram editing machine that system provides.User can as required on picture any position place required element, also can readjust and put determine the position of element or delete element.The selection cursor of element directly captures on screen.After deleting element, the label of other element will upgrade (label of gate circuit is G1, G2, G3 etc., and the label of trigger is F1, F2, F3 etc., and the label of medium scale integration (MSI) is IC1, IC2, IC3 etc.) automatically.
8, help system is enriched perfect: DLCCAI has three kinds of dissimilar help informations.The first is system help information, and content is the function of DLCCAI, feature, method of operating and step, different simulation model situation and performance index etc.The second appears in each window, Selecting parameter configuration and Dynamic System using method made to the help information illustrated.The third is circuit correlation theory descriptive information, once user have selected certain circuit, then may obtain the Word message (only having some " typical circuit " just to comprise circuit correlation theory information) such as correlation theory and principle of work explanation of this circuit.
DLCCAI, due to containing graphic editor and figure recognition function, therefore possesses perfect oneself and makes " blood " function, can the principle of work of any one circuit that constructs of simulation demo user and process in many ways.In simulation process, the next status system of certain element or device in advance and do not know, but dynamically to be determined in simulation process according to the logic function (establishing mathematical model by its logic function to when system starts each element) of this device input parameter at that time and device self.This design philosophy simulates operation and the situation of real circuits completely, thus has higher authenticity and objectivity.
The functional module exploitation with the analogue system of above-mentioned functions comprises following part.
Because system allows user's designed, designed structure circuit, and have employed computer simulation technique, so inevitably relate to the exploitation of multiple functional modules such as component library module, circuit diagram editor module, circuit recognition system, circuit emulation run and Environmental Support module.
(1) component library module: all elements determining component library, and founding mathematical models.Mathematical model is basis and the foundation of Computer Simulation.JK flip-flop such as in the DLCCAI component library of our exploitation, we are at its secular equation known: if represent Q with LastState now n, represent Q with NewState n+1, then can represent the logic function (secular equation) of JK flip-flop with a function in VB6:
FunctionNewState(JAsBoolean,KAsBoolean,LastStateAsBoolean)AsBoolean
NewState=(JAnd(NotLastState))Or((NotK)AndLastState)
EndFunction;
(2) circuit diagram editor module: should provide the Graph editor of the Schedit circuit theory in a similar Protel to user, editting function should be enriched perfect, enables user edit circuit diagram quickly and easily.
(3) circuit recognition system module: this module is used for user in circuit editing process or after completing, and determines each interelement interconnected relationship of forming circuit figure.Whether the success or not of this module is directly connected to Circuit Emulation Service and can realizes, thus is related to the success or failure of whole system, so this module is one of core content of whole system, is also the technological difficulties place of system.One is the prerequisite and condition of dealing with problems to the scientific and reasonable description of component structure model and element register method.We have following description to component structure in " DLC (digital logic circuit) CAI ":
The dynamic array of the element ComponentRec structure data that user places in editing environment is registered: the dynamic array of PublicConponent () AsComponentRec ' definition structure type;
(4) circuit emulation run and Environmental Support module: can simulation run be done after circuit identification and parameter configuration complete.The process of simulation run is from input signal is added to circuit input end, and advance until output terminal backward step by step, the working condition of the complete Reality simulation circuit of whole process, just reduces several orders of magnitude by the operating rate of circuit, facilitate user's observation analysis.This module should also provide the necessary support environment of simulation run, as the setting, simulation velocity, line style, color scheme etc. of operational factor.
The institutional framework of system: we discussed above is several large main modular of a formation CAI system, but a complete program also should possess some corresponding subsidiary functions.Mutual relationship between these functional modules as shown in Figure 1.
The simulation run process of circuit:
By above-mentioned discussion, from Fig. 1, we know, user edit a circuit of structure, need could do simulation run after oversampling circuit identification, parameter configuration and data processing.In simulation process, system can not determine the next state of certain element or device in advance, but dynamically determine in simulation process according to this device input signal at that time and the logic function (mathematical model) of self.Still for " DLC (digital logic circuit) CAI ", simulation run process flow diagram as shown in Figure 2.
We know, for sequential logical circuit, the next state of circuit (or element) is the function of ortho states and input, as JK flip-flop, has: as seen from Figure 2, the new state of element is jointly determined by a few person of previous status of the current input signal of this element, the mathematical model describing this component logic function and element.
(1) the circuit source of simulation run: as shown in Figure 1, the circuit of simulation run has three kinds of possible sources.
The first kind is that user draws the novel circuit produced by schematic diagram editing machine;
Equations of The Second Kind is the disk file (circuit that pre-edit stores) that reading one has existed;
3rd class is the instance document (circuit that pre-edit stores) that reading one has existed;
The first kind and Equations of The Second Kind file just can carry out simulation run after all needing to carry out parameter configuration and data processing.The difference of Equations of The Second Kind and the 3rd class file (although being all the circuit stored in advance) is, Equations of The Second Kind disk file just can carry out simulation run after having to pass through parameter configuration and data processing, and although the 3rd class instance document is also a kind of disk file, but due to circuit store while also store parameter configuration and data processing after related data information, therefore, without the need to just directly simulation run can be carried out through parameter configuration and data processing link again after recalling.
" parameter configuration " refers to that circuit runs the original state of front established part components and parts (gate circuit or trigger etc.), and determines the burst being loaded into circuit input end; " data processing " is to allow system " know " annexation between the logic function of each element and circuit components, so that signal can carry out transmitting and converting according to the logic function of circuit component and specific annexation.
(2) simulation run process: the simulation run process of " DLC (digital logic circuit) CAI " need through following steps.
1st step: (after carrying out parameter configuration and data processing) reading circuit input end parameter, comprises the signal level value or input waveform sequence that are loaded into each input end.
2nd step: carry out input end emulation, namely according to the circuit input end parameter read, changes input end color (such as, redness represents high level, and blueness represents low level), shows with making the level state visual pattern of input end.
3rd step: obtain all elements of Suo Lian subordinate.The circuit connecting relation that system obtains according to " parameter configuration and data processing ", obtains all elements of the next stage that each input end connects.
4th step: if next stage element is output terminal, turns to the 9th step.
5th step: if next stage element is not output terminal (, this element one is decided to be a certain concrete element), then read the input end state of this element.
6th step: the new state determining element according to the logic function (mathematical model) of the previous status of this element, the input state of element and element.
7th step: the new state determining subordinate's line according to the new state of element.
8th step: jump to the 3rd step.
9th step: if next stage element is output terminal, carry out output terminal emulation.
10th step: detected parameters configures, and judges whether to export truth table, if so, draws truth table.
11st step: detected parameters configures, and judges whether to want output logic function expression, if so, draws logical function expression formula.
12nd step: detected parameters configures, and judges whether to want output waveform figure, if so, draws oscillogram.
13rd step: judge whether emulation terminates, and if not, jumps to the 1st step.
14th step: emulation terminates.
Based on above-mentioned thought and method, I combines experience with students for many years, has successfully developed " DLC (digital logic circuit) CAI " courseware.This courseware function is stronger, abundant in content perfect, easy to use and flexible, there is good interactive man-machine interface, can fully demonstrate the advance of computer-aided instruction, science, vividness and interest, the actual use nearly during several thousand machines and the feedback opinion of academic exchange all show: use this courseware can obtain the comparatively better teaching efficiency of traditional teaching method.
Main functional characteristics and technical indicator
Component library comprises the different components and parts of all gate circuits, trigger and 74 conventional serial medium scale integration (MSI)s etc. tens kinds, is enough to meet any circuit that may run in teaching.
Schedit circuit theory Graph editor in similar Protel, circuit design is followed one's bent.
Can the principle of work of any circuit of simulation demo and process, and synchronously generate truth table, logical function expression formula and oscillogram.
In built-in teaching material, 200 typical circuits, quote simple and efficient.
There are wave sequence pattern, synchronous truth table and expression formula pattern, disposable just four kinds of simulation run patterns such as binarization mode and continuous clock pattern.
The Dynamic simulation process of circuit is vivid.
Parameter adjustment is convenient and swift, some parameter even can in simulation process dynamic adjustments.
Virtual reality is directly perceived flexibly, uses this courseware to do virtual experimental and can obtain and truly test identical result.
Be easy to learn and use, friendly interface, convenient learn by oneself, and help system is enriched perfect.
System platform: Windows ' 95/98/2000/NT/XP/7.
A circuit is containing number of elements :≤32768.
Truth table input variable number :≤6 variablees; Output terminal number :≤10.
Logical function expression formula quantity :≤10.
Oscillogram input waveform quantity :≤10; Output waveform quantity :≤10.
Circuit simulation inputs: 1. special parameter;
2. input end binary combination;
3. the oscillogram sequence of customization;
4. the time clock of consecutive periods
Circuit simulation exports: 1. with each element of color display and the level value of signal wire;
2. truth table;
3. logical function expression formula;
4. oscillogram;
5. light emitting diode;
6. charactron
Available components kind: the 1. all various gate circuit of 2 ~ 8 input ends;
2. d type flip flop;
3. JK flip-flop;
4. common combinations logic and sequential logical number word integrated circuit;
5. light emitting diode;
6. charactron
Simulation parameter: 1. simulation velocity;
2. single step/continuation mode;
3. line style;
4. color;
5. grid etc.
Editing parameter: 1. signal wire, element character and element frame look;
2. element fill color;
3. element numbers look;
4. truth table input variable/output variable/background colour;
5. oscillogram input waveform/output waveform/background colour;
6. cursor look;
7. cursor type.
Component library Component List
(1) gate circuit
Signal link
Signal tie point
Signal terminal
Text marking
With door (2 ~ 5 input end)
Or door (2 ~ 5 input end)
Not gate (phase inverter)
Sheffer stroke gate (2 ~ 5 input end)
Rejection gate (2 ~ 5 input end)
AND OR NOT gate (2-2 input, 3-3 input)
XOR gate
With or door
D type flip flop
JK flip-flop
Light emitting diode
LED charactron
(2) digital integration combinational circuit
BCD-to-decimal decoder ... ... .7442
4-digit number comparer ... ... ... 7485
Three line-eight line code translators ... ... ..74138
Eight line-three line priority encoders ... ... .74148
Eight select a data selector ... ... .74151
Tetrad full adder ... ... .7483
3-2-2-3 inputs AND OR NOT gate ... ... .7454
4-4 inputs AND OR NOT gate (controlling without expansion) ..7455
Four select a data selector ... ... .74153
Four line-ten six line code translators ... ... 74154
42 input data selectors ... ... 74157
One-bit full addres ... ... ... .74183
8 input nand gates ... ... ... 7430
(3) digital integration sequential circuit
2-5 system Counter ... ... ... .7490
2-N-16 synchronously can give and put counter ... .74161
Can give and put BCD doubleclocking up-down counter ... ..74192
Synchronous 10 system up counters ... ... 74160
Synchronous 16 system doubleclocking up-down counters ... .74193
8 SI PO shift register ... ... 74164
8 bit parallel input shift registers ... ... 74165
4 bidirectional shift registers ... ... .74194
8D latch ... ... ... ... .74273;
Example circuit inventory
(1) combinational logic circuit
Half adder (XOR gate)
Half adder (Sheffer stroke gate)
Full adder (one)
Full adder (two)
Full adder (three)
Multidigit serial adder
Eight-three scramblers
8421BCD code coder
Three-eight code translators
8421BCD code decoder (one)
8421BCD code decoder (two)
Seven pieces digital displaying code translator
Four select a data selector
Eight select a data selector
Four circuit-switched data dividers
One digit number value comparer
Four figures value comparer
The logical diagram of 3 line-8 line code translators 74138
The logical diagram of BCD-to-decimal decoder 7442
Eight logical diagrams selecting a data selector 74152
The logical diagram of four figures value comparer 7485
The logical diagram of BCD Seven pieces digital displaying code translator 7448
The logical diagram of four carry lookahead adders 74283;
(2) trigger
Basic RS filpflop (Sheffer stroke gate)
Basic RS filpflop (rejection gate)
Synchronous rs flip-flop (Sheffer stroke gate)
Synchronous rs flip-flop (AND OR NOT gate)
Master-slave RS trigger
Master-Slave JK Flip-Flop
Hazard-free D flip-flop
The JK flip-flop of negative edging trigger
D-latch;
(3) sequential logical circuit
Rest-set flip-flop two claps receive mode digital register
Receive mode digital register clapped by rest-set flip-flop list
Receive mode digital register clapped by d type flip flop list
The unidirectional shift register that moves to right of d type flip flop
The unidirectional shift register that moves to left of d type flip flop
The unidirectional shift register that moves to right of JK flip-flop
The unidirectional shift register that moves to right of rest-set flip-flop
D type flip flop bidirectional shift register
JK flip-flop asynchronous binary up counter counter
D type flip flop asynchronous binary up counter counter
The asynchronous binary subtraction counter of JK flip-flop
The asynchronous binary subtraction counter of d type flip flop
Cascaded carry synchronous binary up counter
Parallel carry synchronous binary up counter
The controlled forward-backward counter of synchronous mould 6
Add-subtract control formula synchronous reversible counter
The controlled forward-backward counter of mould 16
Synchronous decimal addition counter
Synchronous decimal subtraction counter (8421 yards)
The asynchronous 2-N-16 system Counter () of pulse feedback formula
The asynchronous 2-N-16 system Counter (two) of pulse feedback formula
The asynchronous 5 system up counters of congestion feedback formula
Pulse sequence generator
Linear maximal sequence generator
The logical diagram of four bit synchronization binary counters 74161
The logical diagram of the synchronous 16 system add subtract counters 74191 of single clock;
(4) digital integrated circuit and application
Digital electronic clock (two) (7490)
Digital electronic clock (three) (74192)
16 line-4 line priority encoders
4 line-16 line code translators
16 select 1 data selector
The digital comparator circuit of triad
Eight beat sequential pulse generators
Tetrad addition subtraction circuit
Data selection/displacement/latch Comprehensive example ()
Data selection/displacement/latch Comprehensive example (two)
With the 5-32 code translator of 74154 expansions
Clock source is made with ring oscillator
32 bit shift register formed with 74164
5-32 code translator
Circular lamp;
(5) other
Digital electronic clock
1 type risk of combinational logic circuit
0 type risk of combinational logic circuit
The once inside out phenomenon of Master-Slave JK Flip-Flop.
To the above-mentioned explanation of the disclosed embodiments, professional and technical personnel in the field are realized or uses the present invention.To be apparent for those skilled in the art to the multiple amendment of these embodiments, General Principle as defined herein can without departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention can not be restricted to these embodiments shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.

Claims (1)

1., based on the DLC (digital logic circuit) CAI structure of " element " and an implementation method for simulation run, it is characterized in that: first should build with lower module;
(1) component library module: all elements determining component library, and founding mathematical models, mathematical model, for describing the logic function of element, is again basis and the foundation of Computer Simulation simultaneously;
(2) circuit diagram editor module: provide the Graph editor of the Schedit circuit theory in a similar Protel to user, editting function should be enriched perfect, enables user edit any circuit of structure quickly and easily;
(3) circuit identification module: this module is used for user in circuit editing process or after completing, and determines each interelement interconnected relationship of forming circuit figure;
(4) parameter configuration and data processing module: " parameter configuration " refers to that circuit runs the original state of front established part components and parts, and determines the burst being loaded into circuit input end; " data processing " is to allow system " know " annexation between the logic function of each element and circuit components, so that signal can carry out transmitting and converting according to the logic function of circuit component and specific annexation;
(5) simulation run and Environmental Support module: can simulation run be done after circuit identification and parameter configuration complete;
The process of simulation run is from input signal is added to circuit input end, and advance until output terminal backward step by step, the working condition of the complete Reality simulation circuit of whole process, just reduces several orders of magnitude by the operating rate of circuit, facilitate user's observation analysis; This module should also provide the necessary support environment of simulation run, as the setting of operational factor, simulation velocity, line style, color scheme;
The step of simulation run process is as follows:
1st step: reading circuit input end parameter after carrying out parameter configuration and data processing, comprises the signal level value or input waveform sequence that are loaded into each input end;
2nd step: carry out input end emulation, namely according to the circuit input end parameter read, changes input end color, shows with making the level state visual pattern of input end;
3rd step: obtain all elements of Suo Lian subordinate; And according to the circuit connecting relation that " parameter configuration and data processing " obtains, obtain all elements of the next stage that each input end connects;
4th step: if next stage element is output terminal, turns to the 9th step;
5th step: if next stage element is not output terminal, then this element one is decided to be a certain concrete element, then read the input end state of this element;
6th step: the new state determining element according to the logic function of the previous status of this element, the input state of element and element;
7th step: the new state determining subordinate's line according to the new state of element;
8th step: jump to the 3rd step;
9th step: if next stage element is output terminal, carry out output terminal emulation;
10th step: detected parameters configures, and judges whether to export truth table, if so, draws truth table;
11st step: detected parameters configures, and judges whether to want output logic function expression, if so, draws logical function expression formula;
12nd step: detected parameters configures, and judges whether to want output waveform figure, if so, draws oscillogram;
13rd step: judge whether emulation terminates, and if not, jumps to the 1st step;
14th step: emulation terminates.
CN201510754258.5A 2015-11-09 2015-11-09 'Component' based digital logic circuit CAI construction and simulation running realization method Pending CN105404733A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510754258.5A CN105404733A (en) 2015-11-09 2015-11-09 'Component' based digital logic circuit CAI construction and simulation running realization method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510754258.5A CN105404733A (en) 2015-11-09 2015-11-09 'Component' based digital logic circuit CAI construction and simulation running realization method

Publications (1)

Publication Number Publication Date
CN105404733A true CN105404733A (en) 2016-03-16

Family

ID=55470220

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510754258.5A Pending CN105404733A (en) 2015-11-09 2015-11-09 'Component' based digital logic circuit CAI construction and simulation running realization method

Country Status (1)

Country Link
CN (1) CN105404733A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110428684A (en) * 2019-07-19 2019-11-08 暨南大学 The Physical Experiment artificial intelligence automotive engine system and working method of virtual reality
CN113705143A (en) * 2020-05-22 2021-11-26 华为技术有限公司 Automatic simulation system and automatic simulation method
CN114509957A (en) * 2021-12-29 2022-05-17 上海科梁信息科技股份有限公司 Method, device and system for developing model of ionic electric propulsion system and storage medium
CN115994502A (en) * 2023-03-13 2023-04-21 北京芯愿景软件技术股份有限公司 Circuit display method, device and equipment
CN116227402A (en) * 2023-05-09 2023-06-06 北京芯愿景软件技术股份有限公司 Modeling method and device of analog circuit and electronic equipment

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110428684A (en) * 2019-07-19 2019-11-08 暨南大学 The Physical Experiment artificial intelligence automotive engine system and working method of virtual reality
CN113705143A (en) * 2020-05-22 2021-11-26 华为技术有限公司 Automatic simulation system and automatic simulation method
CN113705143B (en) * 2020-05-22 2024-03-26 华为技术有限公司 Automatic simulation system and automatic simulation method
CN114509957A (en) * 2021-12-29 2022-05-17 上海科梁信息科技股份有限公司 Method, device and system for developing model of ionic electric propulsion system and storage medium
CN115994502A (en) * 2023-03-13 2023-04-21 北京芯愿景软件技术股份有限公司 Circuit display method, device and equipment
CN116227402A (en) * 2023-05-09 2023-06-06 北京芯愿景软件技术股份有限公司 Modeling method and device of analog circuit and electronic equipment
CN116227402B (en) * 2023-05-09 2023-11-28 北京芯愿景软件技术股份有限公司 Modeling method and device of analog circuit and electronic equipment

Similar Documents

Publication Publication Date Title
CN105404733A (en) 'Component' based digital logic circuit CAI construction and simulation running realization method
Bau et al. Learnable programming: blocks and beyond
Jerome Virtual instrumentation using LabVIEW
JP3016783B2 (en) Computer programming method
Glinert et al. Pict: An interactive graphical programming environment
Analytis et al. Creating Paper Robots increases designers’ confidence to prototype with microcontrollers and electronics
KR102316919B1 (en) coding education material using physical computing software and coding education method using the same
Shcherbatov et al. Applying of modeling tools pack SimInTech in the engineering personnel preparation for the energy sector
Paton Fundamentals of digital electronics
Damm et al. Solving digital logic assignments with automatic verification in scorm modules
Petrescu et al. Project-based learning for programmable electronic systems with fpga
Korrapati et al. System modeling using virtual instruments
Xu The design concept of a virtual experiment teaching platform for digital logic based on LabVIEW
Li et al. Make experimental device to be a toy-the experimental teaching in digital logic circuit course
Sheng et al. A virtual laboratory based on HTML5
Stuart Simulating the ENIAC [Scanning our Past]
Parab et al. Learning by Doing with National Instruments Development Boards
Horvatić et al. USING A GRAPHICALLY PROGRAMMED CONFIGURABLE USB INTERFACE DEVICE IN THE DIGITAL ELECTRONICS COURSE
Lawson Integrating an educational simulation into a Logic Design course
Roberts ‘A new user interface for collaborative remote music performance
Abuzir The development of virtual laboratory using SEMMLABS in Al-Quds Open University
Faust et al. Getting practical with digital: An integrated electronic design project for undergraduates
Henke et al. Laboratory works on discipline “Technologies and systems of virtual and remote engineering”
Kanukov et al. Virtual dynamic objects designing for computer training complexes
Piera et al. Generating custom Timing Diagrams in Digital Systems

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160316