CN102809936A - Multi-switching-value combinational logic state implementation method - Google Patents
Multi-switching-value combinational logic state implementation method Download PDFInfo
- Publication number
- CN102809936A CN102809936A CN2012102788585A CN201210278858A CN102809936A CN 102809936 A CN102809936 A CN 102809936A CN 2012102788585 A CN2012102788585 A CN 2012102788585A CN 201210278858 A CN201210278858 A CN 201210278858A CN 102809936 A CN102809936 A CN 102809936A
- Authority
- CN
- China
- Prior art keywords
- logical
- state
- item
- data
- switching value
- 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.)
- Granted
Links
Images
Abstract
The invention discloses a multi-switching-value combinational logic state implementation method, and relates to the field of control of multimedia systems. The multi-switching-value combinational logic state implementation method includes steps of 1), generating a switching-value logic definition data table; 2), initiating parameters; and 3), forming a switching-value combinational logic state. A traditional switching-value logic state implementation method is improved, so that the design of a hardware circuit is simplified, applicability and programmability are strengthened, processing capacity of a multimedia integrated controller is expanded, and hardware cost is lowered.
Description
Technical field
The present invention relates to multimedia system control field, refer more particularly to a kind of implementation method of many switching values combinatorial logic state.
Background technology
In multimedia system control field; In order to realize that the multimedia equipment with different classes of control interface is controlled; Can use the equipment of a kind of multimedia concentrated controller (controlling in the abbreviation); This equipment has multimedia equipment control interface commonly used, like infrared remote control mouth, RS232 serial ports, RS485 mouth etc.This equipment also has the interface that connects PC, and through this interface, the user can be through a unified software interface control linkage in the multimedia equipment of its interface, to accomplish the centralized control functions to multimedia equipment.
Control is a kind of of multimedia concentrated controller in able to programme; Control is except the function that can realize traditional Centralized Controller in able to programme; Can also detect the output of the sensor in the system; And predeterminable condition, when sensor output reaches pre-conditioned, middle control able to programme will be carried out the pairing control action of this condition.Yet switch output type sensor has plurality of applications in multimedia system.Therefore, the programmable media Centralized Controller all need detect on off state.
In the prior art; Control has two kinds of methods in able to programme when detector switch amount state: first method is switch value input interface to be connected on the PLD (PLD); The output of PLD is connected in the IO interface of microprocessor; Through regrouping the logic of PLD, can realize the function that the single switch amount detects or many switching values combinational logic forms.Adopt this kind method in the prior art, when using, can exist these defectives: a, needs to use additional hardware to realize switching logic; B, the special logic of needs customization, and use special cd-rom recorder to carry out burning.Therefore, this kind method only is suitable for the known users demand, by user's request customization respective logic, can't accomplish the site of deployment logic programmable, causes hardware cost to strengthen and the shortage dirigibility.Second method is the IO mouth that switching value is directly connected to microprocessor; By microprocessor read switch amount input state; But present this mode only can detect single switch amount state, can't realize the processing to a plurality of switching value combinational logics, can not well be applicable to the more application more.
Summary of the invention
In order to overcome the problem that exists in the prior art; The invention provides a kind of implementation method of many switching values combinatorial logic state, simplify circuit design to reach, reduce hardware cost, strengthen the purpose of using programmability, expanding the multimedia concentrated controller processing power.
For addressing the above problem, the present invention has adopted following technical scheme, and concrete steps are following.
1, generate switching value logical definition tables of data, its process is following.
A, the simplest logical expression of formation: the state of switching value is represented with Binary Zero and 1 according to Boolean algebra, but the equal abbreviation of any one many switching values combinatorial logic state is a logical expression the simplest.
B, generate switching value logical definition data according to the simplest logical expression: the logical expression of abbreviation gained by some and item mutually or constitute, single logical and item is made up of the original variable and the complemented variable thereof of all inputs, supposes the virgin state use
I n Expression, its complementary state uses
Expression, then single logical and item can be expressed as:
In the formula:
Do not comprise input quantity x if use in 0 this logical and item of expression, 1 this logical and item of expression comprises input quantity x, then can this logical and item be used the bit sequence description by this principle, and this binary bit sequence is the definition of data of this logical and item.Owing to comprise a plurality of logical and items in a combinational logic abbreviation formula, therefore a combinational logic reality can use a plurality of logical and item definition of data to describe.
C, utilize able to programme in the DLL of control switching value logical definition data are written in its nonvolatile memory, and, finally form switching value logical definition tables of data by certain format storage.
2, parameter initialization process: be about to be stored in logical definition data load in the nonvolatile memory in RAM.
3, the switching value combinatorial logic state forms, and its process is following.
A, the amount of opening the light state read in: promptly read in the amount of opening the light virgin state by program, calculate its complementary state, and virgin state and complementary state thereof are temporary in the input state working storage.
B, logical multiply product term forming process, promptly according to the logical definition tables of data that loads, calculate in pairing all the logic simplest formulas of responsive input item that detected with the item result, and the result is stored in product term as a result in the working storage.
C, net result forming process promptly according to the logical definition table content that is loaded and product term working storage content as a result, with each carries out logical OR in the working storage, finally form logic output result.
In brief; The present invention utilizes the microprocessor executive routine, and through changing logical definition tables of data content, may command is the sensitivity amount of the product term of simple logical expression; And then realize the realization of any switching value combinatorial logic state, reached many switching values combinational logic output result's purpose.Thereby simplified hardware circuit design, reduced hardware cost, strengthened the application programmability, expanded the multimedia concentrated controller processing power.
Description of drawings
Fig. 1 is the formation process flow diagram of the inventive method.
Fig. 2 is the data table stores form of the inventive method.
Fig. 3 is the initialize routine process flow diagram of the inventive method.
Fig. 4 is the process flow diagram of the combinational logic forming process of the inventive method.
Embodiment
In order to make those skilled in the art person better understand the scheme of embodiment of the present invention, do further detailed explanation below in conjunction with the accompanying drawing specific embodiments of the invention.
As shown in Figure 1, be the formation process flow diagram of the inventive method, comprise the steps: step 101, generate switching value logical definition tables of data; Step 102, parameter initialization; Step 103, switch two combinatorial logic states form.
As shown in Figure 2, be the storage format of the logical definition tables of data of the inventive method.This storage format has following characteristics: 1) by each list item memory address relation, with realize in its each corresponding the simplest logical formula that a switching value combinatorial logic state needs with the item control word by coming continuous storage space, i.e. delegation in the table; 2) in list item, have a CRC effect word, when supplying program initialization in this table of effect data whether have mistake.
This table has the capable k row of n, and each cell is being deposited a control word
CB N (k-1) Expression for k-1 of the pairing the simplest logical formula of the combinational logic of realizing n needs and realizing with a control word; This control word structurally has following characteristics: 1) this control word is divided into high half control word and low half control word; High half control word is being controlled the original switch state and whether is being participated in this and item formation, and whether the complementary state that low half control word is being controlled the original switch state participates in this forms with item; 2) each value of this control word is corresponding one by one with original switch amount state and complementary state opsition dependent thereof; The decision corresponding positions whether just with formation, when certain position is 1, this pairing state will be participated in and operated; When a certain place value is 0, represent that this position do not participate in this logical term and form.
As shown in Figure 3, be the initialize routine process flow diagram of the inventive method, comprise the steps.
As shown in Figure 4, be the process flow diagram of the combinational logic forming process of the inventive method, comprise the steps.
After step 401, program are read in the switching value virgin state, with the virgin state negate, result after virgin state and the negate is left in the input state working storage, the high position of this working storage is placed virgin state again, and low level is placed the state after the virgin state negate.
According to many switching values combinatorial logic state that the method for the specific embodiment of the invention realizes, method is simple, hardware designs optimization; Hardware cost is lower; Simultaneously also strengthened the application programmability, expanded the multimedia concentrated controller processing power, be fit to multimedia system control field and be widely used.
The present invention is not limited to above-mentioned embodiment, and the person of ordinary skill in the field in not breaking away from technical scheme scope of the present invention, makes various variations to the present invention in form with on the details, is protection scope of the present invention.
Claims (4)
1), generate switching value logical definition tables of data 1. the implementation method of switching value combinatorial logic state more than a kind is characterized in that, its step comprises:; 2), parameter initialization; 3), the switching value combinatorial logic state forms.
2. the implementation method of a kind of many switching values combinatorial logic state according to claim 1 is characterized in that, the generative process of said switching value logical definition tables of data may further comprise the steps:
(2-1) form the simplest logical expression: the state of switching value is represented with Binary Zero and 1 according to Boolean algebra, any one many switching values combinational logic all can turn to a logical expression the simplest;
(2-2) generate the amount of opening the light logical definition tables of data: will the simplest logical expression by some with mutually or constitute; Single logical and item is made up of the original variable and the complemented variable thereof of all inputs; Suppose that virgin state use In representes; Expression that its complementary state uses
, then single logical and item can be expressed as:
Do not comprise input quantity x if use in 0 this logical and item of expression, comprise input quantity x in 1 this logical and item of expression, then can use a scale-of-two to be sequence description this logical and item by this principle, this binary bit sequence be the definition of data of this logical and item;
Owing to comprise a plurality of logical and items in a combinational logic abbreviation formula, therefore a combinational logic reality can use a plurality of logical and item definition of data to describe;
(2-3) utilize the DLL of middle control able to programme that switching value logical definition data are written in its nonvolatile memory, and, finally form switching value logical definition tables of data by the certain format storage.
3. the implementation method of a kind of many switching values combinatorial logic state according to claim 1 is characterized in that, said parameter initialization is to realize in RAM through the logical definition data load that will be stored in the nonvolatile memory.
4. the implementation method of a kind of many switching values combinatorial logic state according to claim 1 is characterized in that, said switching value combinatorial logic state forming process comprises the steps:
(4-1) the switching value state reads in: read in the switching value virgin state by microprocessor program, calculate its complementary state, and virgin state and complementary state thereof are temporary in the input state working storage;
(4-2) the logical multiply product term forms: according to the logical definition tables of data that loads, calculate in pairing all the logic simplest formulas of responsive input item that detected with the item result, and the result is stored in product term as a result in the working storage;
(4-3) net result forms: according to the logical definition table content that is loaded and product term working storage content as a result, with each carries out logical OR in the working storage, form logic output result.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210278858.5A CN102809936B (en) | 2012-08-08 | 2012-08-08 | Multi-switching-value combinational logic state implementation method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210278858.5A CN102809936B (en) | 2012-08-08 | 2012-08-08 | Multi-switching-value combinational logic state implementation method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102809936A true CN102809936A (en) | 2012-12-05 |
CN102809936B CN102809936B (en) | 2015-05-06 |
Family
ID=47233662
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210278858.5A Active CN102809936B (en) | 2012-08-08 | 2012-08-08 | Multi-switching-value combinational logic state implementation method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102809936B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103823384A (en) * | 2014-03-13 | 2014-05-28 | 南京南瑞继保电气有限公司 | Method for controlling switch position in digital simulation model |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1181524A (en) * | 1997-09-08 | 1998-05-13 | 刘从章 | Logic controller and its logic control method |
CN101097653A (en) * | 2007-07-17 | 2008-01-02 | 东北大学 | Electric energy quality and electrical power system malfunction detection wave recording device and method |
CN101707402A (en) * | 2009-11-12 | 2010-05-12 | 安徽鑫龙电器股份有限公司 | Power system on-off amount remote monitoring module and monitoring method thereof |
CN101916092A (en) * | 2010-07-19 | 2010-12-15 | 北京中电飞华通信股份有限公司 | Switching value controller, interactive terminal and intelligent home control system and method |
CN102354193A (en) * | 2011-09-08 | 2012-02-15 | 山东科汇电力自动化有限公司 | Switching signal acquisition method |
-
2012
- 2012-08-08 CN CN201210278858.5A patent/CN102809936B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1181524A (en) * | 1997-09-08 | 1998-05-13 | 刘从章 | Logic controller and its logic control method |
CN101097653A (en) * | 2007-07-17 | 2008-01-02 | 东北大学 | Electric energy quality and electrical power system malfunction detection wave recording device and method |
CN101707402A (en) * | 2009-11-12 | 2010-05-12 | 安徽鑫龙电器股份有限公司 | Power system on-off amount remote monitoring module and monitoring method thereof |
CN101916092A (en) * | 2010-07-19 | 2010-12-15 | 北京中电飞华通信股份有限公司 | Switching value controller, interactive terminal and intelligent home control system and method |
CN102354193A (en) * | 2011-09-08 | 2012-02-15 | 山东科汇电力自动化有限公司 | Switching signal acquisition method |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103823384A (en) * | 2014-03-13 | 2014-05-28 | 南京南瑞继保电气有限公司 | Method for controlling switch position in digital simulation model |
CN103823384B (en) * | 2014-03-13 | 2016-07-06 | 南京南瑞继保电气有限公司 | The control method of digital simulation model breaker in middle position |
Also Published As
Publication number | Publication date |
---|---|
CN102809936B (en) | 2015-05-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106647412B (en) | A kind of data sharing method between distributed director based on configuration element | |
US7881323B2 (en) | Configurable ASIC for use with a programmable I/O module | |
CN107861716B (en) | Software-defined control system and control method | |
CN100474187C (en) | State machine function block with a user modifiable output configuration database | |
CN102736980B (en) | Random test case generation method facing Java program | |
CN103325411B (en) | A kind of anti-single particle overturn hardened system and method thereof for FPGA | |
US8640120B2 (en) | Approach to automatically encode application enumeration values to enable reuse of applications across various controllers | |
Bao et al. | FPGA-based reconfigurable data acquisition system for industrial sensors | |
CN103019947B (en) | A kind of stratification construction method of fpga chip configuration information model | |
Ho et al. | Configurable memristive logic block for memristive-based FPGA architectures | |
CN100462985C (en) | Quickly configuration method of field programmable gate array | |
CN102809936A (en) | Multi-switching-value combinational logic state implementation method | |
CN104615436B (en) | A kind of control method at HMI interfaces | |
CN102819218B (en) | Discrete event system monitor on basis of event control function and control method thereof | |
CN104570913B (en) | A kind of PLC control process methods of frequency converter | |
CN105527919A (en) | Parallel bus backboard of PLC controller | |
CN203105849U (en) | Control device of insole machine | |
Qela et al. | Simulation of large wireless sensor networks using Cell-DEVS | |
CN101576744A (en) | Method for executing programmable logic controller (PLC) code | |
CN102495743B (en) | Device and method for realizing FPGA (field programmable gate array) configuration by using Xilinx PROM (programmable read only memory) | |
CN109416530A (en) | A kind of input and output control method, main control device and digital control system from equipment | |
Irwan et al. | Distributed Coal Mill Simulator based on IEC 61499 | |
CN105573130A (en) | Control panel and control method | |
CN110400081A (en) | The configuration method and device of Regional Energy system | |
CN105278861A (en) | Preset input mode control method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20180628 Address after: 518000 Shenzhen, Guangdong, Baoan District Xixiang street, linen community, Le Zhu corner resident group Hongye Industrial Park, five building, east side A (office space), five Patentee after: ATER TECHNOLOGY CO., LTD. Address before: No. 5, gaon Boulevard, high tech Zone, Chengdu, Sichuan Province Patentee before: Sichuan Ater Technology Co., Ltd. |
|
TR01 | Transfer of patent right |