CN103440120B - Instruction decoding shielding harness and the method for electric energy metrical signal processor - Google Patents

Instruction decoding shielding harness and the method for electric energy metrical signal processor Download PDF

Info

Publication number
CN103440120B
CN103440120B CN201310372604.4A CN201310372604A CN103440120B CN 103440120 B CN103440120 B CN 103440120B CN 201310372604 A CN201310372604 A CN 201310372604A CN 103440120 B CN103440120 B CN 103440120B
Authority
CN
China
Prior art keywords
instruction
signal processor
value
decoding
data
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.)
Active
Application number
CN201310372604.4A
Other languages
Chinese (zh)
Other versions
CN103440120A (en
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.)
Hangzhou hi tech Limited by Share Ltd
Original Assignee
Wangao (hangzhou) Technology Co Ltd
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 Wangao (hangzhou) Technology Co Ltd filed Critical Wangao (hangzhou) Technology Co Ltd
Priority to CN201310372604.4A priority Critical patent/CN103440120B/en
Publication of CN103440120A publication Critical patent/CN103440120A/en
Application granted granted Critical
Publication of CN103440120B publication Critical patent/CN103440120B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

An Instruction decoding shielding harness for electric energy metrical signal processor, comprises command memory, digital signal processor, data storage and decoding logic unit. wherein stores has all control instructions of this electric energy metrical signal processor, digital signal processor is from this command memory reading command, data storage stores the data that computing is relevant, decoding logic unit receiving digital signals processor is by the instruction of reading from the command memory row decoding of going forward side by side, wherein in this command memory, store the instruction of masking instruction decoding, digital signal processor reads the instruction of this masking instruction decoding and this instruction is resolved, judge whether to shield follow-up instruction, if need shielding, digital signal processor is sent non-operation instruction into decoding logic unit, otherwise digital signal processor is sent the instruction of reading from command memory into decoding logic unit.

Description

Instruction decoding shielding harness and the method for electric energy metrical signal processor
[technical field]
The control system and the method that the present invention relates to digital signal processor, be specially adapted to electric energy metricalField, convenient operation frequency control system and the method that realizes the repeatedly down-sampled computing to multiple signals.
[background technology]
Electric energy meter is simply several from early stage mechanical power energy meter, register digital electricity meter, liquid crystalWord electric energy meter develops to intelligent electric meter gradually. Its function increases gradually from simple metering energy, progressivelyAdd reactive measurement, virtual value measurement, fundamental power metering, first-harmonic virtual value to measure. RecentlyDevelopment trend in, increased again the survey of the direct current such as relay status, external electromagnetic field, AC signalAmount and monitoring etc. These functions to electric energy metered system, number and the property of analog-to-digital conversion circuitCan all have higher requirement.
The realization of the core of electric energy metrical processing at present has several different methods: special custom circuit, data signal placeReason device, powerful general purpose microprocessor etc. The method of special custom circuit can farthest reduceThe cost of single chips, but the construction cycle is relatively long and flexibility is inadequate. General purpose microprocessorImplementation is more flexible, but high expensive. The implementation method of digital signal processor is between above-mentionedBetween the two.
Conventional digital signal processor is in the time of the algorithm of processing under different power consumption pattern, according to outside input barPart, carries out the code of different length and realizes by jump instruction. In electric energy metrical field, some defeatedEnter signal and tend under each frequency band, calculate successively, thereby obtain last result. For this reason,Conventional digital signal processor is in the time that electric energy metrical application is used, and programming need to be under each frequency allRealize instruction redirect, and according to different situations realize extra instruction redirect or configuration ensure due toThe variation of carrying out instruction number can not cause the variation of each operation frequency, and this makes ten of programing work changeDivide complicated or operational precision reduction in the time of low-power consumption mode.
[summary of the invention]
The object of the present invention is to provide a kind of Instruction decoding shielding harness of electric energy metrical signal processorWith method, compile when the algorithm of processing under different power consumption pattern in order to solve existing digital signal processorJourney work problem complicated or that operational precision reduces in the time of low-power consumption mode.
For achieving the above object, implement the Instruction decoding shielding of electric energy metrical signal processor of the present inventionSystem comprises command memory, digital signal processor, data storage and decoding logic unit, itsMiddle stores has all control instructions of this electric energy metrical signal processor, data signal placeReason device is from this command memory reading command, and data storage stores the data that computing is relevant,Decoding logic unit receiving digital signals processor is by the instruction of reading from command memory and translateCode, wherein stores the instruction of masking instruction decoding in this command memory, digital signal processor is readGet the instruction of this masking instruction decoding and this instruction is resolved, judging whether need to be to follow-up fingerOrder shields, if need shielding, digital signal processor is sent non-operation instruction into decoding logicUnit, on the contrary digital signal processor is sent the instruction of reading from command memory into decoding logic listUnit, wherein the instruction of this masking instruction decoding comprises the bit that instruction flag, control bit, data readPosition and data read address, when the instruction flag of this instruction that digital signal processor is read, judge thisWhether instruction is the instruction of masking instruction decoding, if the instruction of masking instruction decoding, numeral letterNumber processor reads this address from the address of the indicated data storage of the data read address of this instructionData, the represented specific bit position reading out data specific bit of bit reading according to data afterwardsThe value of position, determines the value of a default mark afterwards again according to the value of control bit, if the value of control bit is 0,Make the value of default mark equal the value of the specific bit position of data streams read, if the value of control bit is1, make the value of default mark equal the inverted value of the value of the specific bit position of data streams read, when in advanceIf the value of mark be 0, shield the instruction after this instruction, if 1, do not shield.
For achieving the above object, implement the Instruction decoding shielding of electric energy metrical signal processor of the present inventionMethod comprise the steps:
The instruction of storing in the first read instruction memory of digital signal processor is also separated this instructionAnalyse, judge whether to shield instruction;
Read next instruction, if need shielding, digital signal processor is sent into non-operation instructionDecoding logic unit, on the contrary digital signal processor is sent into the instruction of reading from command memory to translateCode logical block:
Wherein the instruction of this masking instruction decoding comprises the bit that instruction flag, control bit, data readPosition and data read address, when the instruction flag of this instruction that digital signal processor is read, judge thisWhether instruction is the instruction of masking instruction decoding, if the instruction of masking instruction decoding, numeral letterNumber processor reads this address from the address of the indicated data storage of the data read address of this instructionData, the represented specific bit position reading out data specific bit of bit reading according to data afterwardsThe value of position, determines the value of a default mark afterwards again according to the value of control bit, if the value of control bit is 0,Make the value of default mark equal the value of the specific bit position of data streams read, if the value of control bit is1, make the value of default mark equal the inverted value of the value of the specific bit position of data streams read, when in advanceIf the value of mark be 0, shield the instruction after this instruction, if 1, do not shield.
Compared with prior art, whether the present invention works to reach with redirect by control decoding unit and refers toMake identical being used for reduce the power consumption of system, thus do not change simultaneously order that code carries out ensure withoutExtra operation just can ensure that each operation frequency is constant, and the direct benefit of bringing is thus that programming becomesVery simple, reduce the risk that software programming mistake is brought. Meanwhile, consolidating due to code execution sequenceFixed, the program that can realize easily and more is accurately carried out monitoring.
[subordinate list explanation]
Fig. 1 is the system of implementing the Instruction decoding screen method of electric energy metrical signal processor of the present inventionOrganization Chart.
Fig. 2 is the flow process of implementing the Instruction decoding screen method of electric energy metrical signal processor of the present inventionFigure.
[detailed description of the invention]
Refer to shown in Fig. 1, for implementing the Instruction decoding screen of electric energy metrical signal processor of the present inventionCover the system architecture diagram of method, implement the Instruction decoding shielding of electric energy metrical signal processor of the present inventionThe system of method mainly comprises that command memory, digital signal processor, data storage and decoding patrolsCollect unit. Wherein stores has all control instructions of this electric energy metrical signal processor,Digital signal processor is from this command memory reading command, and data storage stores computing phaseThe data of closing, decoding logic unit receiving digital signals processor is by the finger of reading from command memoryMake the row decoding of going forward side by side, wherein in this command memory, store the instruction of masking instruction decoding, numeral letterNumber processor reads the instruction of this masking instruction decoding and this instruction is resolved, and judges whether needsFollow-up instruction is shielded, if need shielding, digital signal processor send non-operation instructionEnter decoding logic unit, otherwise digital signal processor is sent into the instruction of reading from command memoryDecoding logic unit.
Refer to shown in Fig. 2, for implementing the Instruction decoding screen of electric energy metrical signal processor of the present inventionThe flow chart that covers method, the method comprises the steps:
The instruction of storing in the first read instruction memory of digital signal processor is also separated this instructionAnalyse, judge whether to shield follow-up instruction;
Read next instruction, if need shielding, digital signal processor is sent into non-operation instructionDecoding logic unit, on the contrary digital signal processor is sent into the instruction of reading from command memory to translateCode logical block.
In the specific implementation, the instruction of masking instruction decoding comprises that instruction flag, control bit, data readThe bit of getting and data read address, its concrete form is as follows:
Wherein ADDR_MSK is data read address, and BIT_MSK is the bit that data read;S/C is control bit; In above-mentioned instruction ARS be MSK instruction flag, i.e. decoding masking instructionMark. (data read address ADDR_MSK, data read bit to other 3 codingsBIT_MSK and control bit S/C) be all programmable, arrange according to the needs of program. WhenThe 12nd of the instruction that digital signal processor is read is the code set of ARS and MSK to the 15thWhile closing, this coded combination pre-defines, such as 4 bit sequences of definition are 0110 o'clock, and tableDirective command decoding masking operation. The 16 bit instructions of reading from command memory when processor high by 4Position is 0110 o'clock, represents that this instruction is decoding masking instruction. Wherein 01 representative is ARS instructionLarge class, 10 representatives be MSK instruction group, MSK has been included in ARS instruction type,Carry out the judgement of Instruction decoding shielding, judged result has determined to start whether to refer to from next instructionMake decoding shielding, and this instruction decoded shielding never, if masking instruction decodingInstruction, digital signal processor reads from the address of the indicated data storage of ADDR_MSKThe data DATA of this address, afterwards the specific bit position reading out data represented according to BIT_MSKThe information DATA[BIT of DATA specific bit], what BIT_MSK represented is a certain of DATAPosition; Determine again afterwards the value (specifically can realize by a register device) of default mark according to the value of S/C,If i.e. S/C=0, default mark=DATA[BIT]; If S/C=1, default mark=~DATA[BIT], i.e. DATA[BIT] value negate; The default shielding cue mark that is masked as, represents whether shieldCover this instruction instruction afterwards, if default mark=1 represents not shield, indicate=0 if default,Shielding.
In the specific implementation, deposit the ADDR_MSK address of configuration information and only have 6, i.e. addressing modelEncloses and only have 64 Word, and the width of BIT_MSK reaches 5, addressable 32bit arbitrarily thanThe foundation of the special value as default mark.
Compared with prior art, the present invention is by arranging the instruction of masking instruction decoding, thus in programmingTime in the time of needs masking instruction, add this control instruction, so digital signal processor is reading instructionAfter this instruction of storing in memory parsing, judge whether to shield instruction, so controlThe work whether decoding unit works to reach identical with jump instruction in order to reduce the power consumption of system, not simultaneouslyThereby the order that changes code execution ensures just can ensure each operation frequency not without extra operationBecome, the direct benefit brought is thus that programming becomes very simple, and has reduced that software programming mistake bringsRisk. Meanwhile, due to fixing of code execution sequence, can realize easily and more accurately journeyOrder is carried out monitoring.
Be understandable that, for those of ordinary skills, can be according to technical side of the present inventionCase and inventive concept thereof are equal to replaces or changes, and all these changes or replacement all should belong to thisThe protection domain of bright appended claim.

Claims (2)

1. an Instruction decoding shielding harness for electric energy metrical signal processor, is characterized in that: this isTurnkey is drawn together command memory, digital signal processor, data storage and decoding logic unit, whereinStores has all control instructions of this electric energy metrical signal processor, Digital Signal ProcessingDevice is from this command memory reading command, and data storage stores the data that computing is relevant, translatesCode logical block receiving digital signals processor is by the instruction of reading from command memory and translateCode, wherein stores the instruction of masking instruction decoding in this command memory, digital signal processor is readGet the instruction of this masking instruction decoding and the instruction of masking instruction decoding is resolved, judging whether needsShield follow-up instruction, if need shielding, digital signal processor is by non-operation instructionSend into decoding logic unit, otherwise digital signal processor send the instruction of reading from command memoryEnter decoding logic unit, wherein the instruction of this masking instruction decoding comprises instruction flag, control bit, numberAccording to the bit reading and data read address, this masking instruction decoding that digital signal processor is readThe instruction flag of instruction time, judge whether this instruction is the instruction of masking instruction decoding, if screenCover the instruction of Instruction decoding, digital signal processor is read from the data of the instruction of this masking instruction decodingGet the address of the indicated data storage in address and read the data of the address of this data storage, afterwardsThe value of the represented reading out data specific bit position, specific bit position of the bit that reads according to data, itAfter determine again the value of a default mark according to the value of control bit, if the value of control bit is 0, order is defaultThe value of mark equal the value of the specific bit position of data streams read, if the value of control bit is 1, orderThe value of default mark equals the inverted value of the value of the specific bit position of data streams read, when default markValue be 0, shield the instruction after the instruction of this masking instruction decoding, if 1, do not shield.
2. one kind is utilized the Instruction decoding shielding system of the electric energy metrical signal processor described in claim 1System is realized the method for Instruction decoding shielding, it is characterized in that the method comprises the steps:
The instruction of storing in the first read instruction memory of digital signal processor to this masking instruction decodingInstruction resolve, judge whether to shield instruction;
Read next instruction, if need shielding, digital signal processor is sent into non-operation instructionDecoding logic unit, on the contrary digital signal processor is sent into the instruction of reading from command memory to translateCode logical block:
Wherein the instruction of this masking instruction decoding comprises the bit that instruction flag, control bit, data readPosition and data read address, the instruction of the instruction of this masking instruction decoding that digital signal processor is readWhen mark, judge whether this instruction is the instruction of masking instruction decoding, if masking instruction decodingInstruction, digital signal processor is indicated from the data read address of the instruction of this masking instruction decodingThe address of data storage read the data of the address of this data storage, read according to data afterwardsThe value of the represented reading out data specific bit position, specific bit position of bit, afterwards again according to controlThe value of position is determined the value of a default mark, if the value of control bit is 0, makes the value of default mark etc.In the value of the specific bit position of data streams read, if the value of control bit is 1, make default markValue equals the inverted value of the value of the specific bit position of data streams read, when the value of default mark is 0,Shield the instruction after the instruction of this masking instruction decoding, if 1, do not shield.
CN201310372604.4A 2013-08-23 2013-08-23 Instruction decoding shielding harness and the method for electric energy metrical signal processor Active CN103440120B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310372604.4A CN103440120B (en) 2013-08-23 2013-08-23 Instruction decoding shielding harness and the method for electric energy metrical signal processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310372604.4A CN103440120B (en) 2013-08-23 2013-08-23 Instruction decoding shielding harness and the method for electric energy metrical signal processor

Publications (2)

Publication Number Publication Date
CN103440120A CN103440120A (en) 2013-12-11
CN103440120B true CN103440120B (en) 2016-05-18

Family

ID=49693811

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310372604.4A Active CN103440120B (en) 2013-08-23 2013-08-23 Instruction decoding shielding harness and the method for electric energy metrical signal processor

Country Status (1)

Country Link
CN (1) CN103440120B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112834819B (en) * 2021-01-04 2024-04-02 杭州万高科技股份有限公司 Digital signal processing device and method for electric energy metering chip
CN117497022B (en) * 2023-12-21 2024-03-26 长鑫存储技术(西安)有限公司 Decoding shielding circuit and memory

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5603023A (en) * 1993-11-01 1997-02-11 Mitsubishi Denki Kabushiki Kaisha Processor circuit for heapsorting
CN2577295Y (en) * 2002-10-16 2003-10-01 陈立珉 Intelligent electric-energy metering and controlling integrated electricity meter
CN102141904A (en) * 2011-03-31 2011-08-03 杭州中天微系统有限公司 Data processor supporting interrupt shielding instruction

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5603023A (en) * 1993-11-01 1997-02-11 Mitsubishi Denki Kabushiki Kaisha Processor circuit for heapsorting
CN2577295Y (en) * 2002-10-16 2003-10-01 陈立珉 Intelligent electric-energy metering and controlling integrated electricity meter
CN102141904A (en) * 2011-03-31 2011-08-03 杭州中天微系统有限公司 Data processor supporting interrupt shielding instruction

Also Published As

Publication number Publication date
CN103440120A (en) 2013-12-11

Similar Documents

Publication Publication Date Title
CN101154183B (en) Microcontroller built-in type on-line simulation debugging system
CN106055308A (en) Apparatus for Low Energy Accelerator Processor Architecture
CN103150146A (en) ASIP (application-specific instruction-set processor) based on extensible processor architecture and realizing method thereof
US9996127B2 (en) Method and apparatus for proactive throttling for improved power transitions in a processor core
CN101211256A (en) Special-purpose double production line RISC instruction system and its operation method
CN103440120B (en) Instruction decoding shielding harness and the method for electric energy metrical signal processor
CN104007954A (en) Processor and control method for processor
CN103268282B (en) Based on CPU method for designing and the system of remote computer hardware experimental system
CN109388430A (en) Realize microprocessor to the method for peripheral hardware hardware controls
CN103324496B (en) One USB flash disk realizes centralized automatic meter-reading terminal local maintaining method
CN102243578A (en) Method, system and device for decoding command of chip
CN102193860B (en) Microcontroller online debugging circuit and method as well as microcontroller
CN200997136Y (en) Micro-controller structure of built-in comparater
CN103207824B (en) Not by the emulator of the interference that resets under monitoring mode
CN105446859A (en) Automatic generation method of software condition monitoring and wave file for power consumption analysis
US20130305012A1 (en) Implementation of counters using trace hardware
CN100474266C (en) Debugging system used for digital signal processor and debug method thereof
CN108920188A (en) Method and device for expanding register file
CN100430890C (en) Novel 8 digit RISC micro controller frame
CN103268218A (en) Data processor
CN103454492B (en) The operation frequency control method of electric energy metrical signal processor
CN101685389A (en) Processor structure
CN101923631B (en) CPLD-based low-frequency ID card real-time simulator
CN101694644A (en) Embedded flash controller
TWI683202B (en) Digital waveform signal generation 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
C56 Change in the name or address of the patentee
CP01 Change in the name or title of a patent holder

Address after: Hangzhou City, Zhejiang province 310051 Binjiang District Dangfeng Road No. 788 sea floor of Building 9

Patentee after: Hangzhou hi tech Limited by Share Ltd

Address before: Hangzhou City, Zhejiang province 310051 Binjiang District Dangfeng Road No. 788 sea floor of Building 9

Patentee before: Wangao (Hangzhou) Technology Co.Ltd