CN108170374A - Digital independent control method, device and computing system - Google Patents
Digital independent control method, device and computing system Download PDFInfo
- Publication number
- CN108170374A CN108170374A CN201711378483.9A CN201711378483A CN108170374A CN 108170374 A CN108170374 A CN 108170374A CN 201711378483 A CN201711378483 A CN 201711378483A CN 108170374 A CN108170374 A CN 108170374A
- Authority
- CN
- China
- Prior art keywords
- data
- calculated
- digit
- vector
- read
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0614—Improving the reliability of storage systems
- G06F3/0619—Improving the reliability of storage systems in relation to data integrity, e.g. data losses, bit errors
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0638—Organizing or formatting or addressing of data
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/0671—In-line storage system
- G06F3/0673—Single storage device
- G06F3/0679—Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Complex Calculations (AREA)
Abstract
The disclosure is directed to digital independent control method, device and computing systems.This method includes:Data to be calculated are read from memory;When the digit of the data to be calculated read is less than the presetting digit capacity, the data to be calculated are supplemented 0, until the digit of the data to be calculated is equal to the presetting digit capacity;The data to be calculated of the presetting digit capacity are sent to vector operation device.The technical solution avoids causing subsequently to calculate mistake due to the junk data in memory, the accuracy of calculating is improved, in addition, avoiding additional vectorial zero padding code in software programming.
Description
Technical field
This disclosure relates to technical field of data processing more particularly to digital independent control method, device and computing system.
Background technology
At present, with the fast development of computer technology, in system application, it is often necessary to which mass data is counted
It calculates.When reading data to be calculated from memory, the data amount check to be calculated once read is fixed, such as reads 128 every time
The data to be calculated of position if each data to be calculated are 32, once can be read 4 data to be calculated and be calculated.But
If total data amount check to be calculated is not 4 integral multiple, when reading data to be calculated for the last time, reads and wait to count less than 4
Count evidence, i.e., less than 128, then reads existing extraneous data in memory, and the extraneous data is rubbish for this calculating
Rubbish data), the data read for the last time are supplied 128.
But when calculating data to be calculated, since the junk data in memory also be used to calculate, it can cause
It malfunctions to the calculating of data to be calculated.
Invention content
The embodiment of the present disclosure provides digital independent control method, device and computing system.The technical solution is as follows:
According to the embodiment of the present disclosure in a first aspect, provide a kind of digital independent control method, including:
Data to be calculated are read from memory;
When the digit of the data to be calculated read is less than the presetting digit capacity, the data to be calculated are supplemented
0, until the digit of the data to be calculated is equal to the presetting digit capacity;
The data to be calculated of the presetting digit capacity are sent to vector operation device.
Optionally, the data to be calculated include at least one vector data, and the digit of each vector data is d, described
Presetting digit capacity is N times of the vector data digit, and N is the integer more than 1, and the presetting digit capacity is Nd;
It is described to read data to be calculated from memory, including:
N vector data is read from the memory, the digit of the data to be calculated read is nd;
When the digit of the data to be calculated read is less than the presetting digit capacity, the data to be calculated are supplemented
0, until the digit of the data to be calculated is equal to the presetting digit capacity, including:
When n is less than N, determine that the digit of the data to be calculated read is less than the presetting digit capacity;
By described data supplement (N-n) d a 0 to be calculated, the data to be calculated for including N number of vector data are obtained;
The data to be calculated of the presetting digit capacity are sent to vector operation device, including:
Data to be calculated including N number of vector data are sent to the vector operation device.
According to the second aspect of the embodiment of the present disclosure, a kind of digital independent control device is provided, including:
Read module, for reading data to be calculated from memory;
Processing module, described in when the digit of the data to be calculated read is less than the presetting digit capacity, inciting somebody to action
Data supplement 0 to be calculated, until the digit of the data to be calculated is equal to the presetting digit capacity;
Sending module, for the data to be calculated of the presetting digit capacity to be sent to vector operation device.
Optionally, the data to be calculated include at least one vector data, and the digit of each vector data is d, described
Presetting digit capacity is N times of the vector data digit, and N is the integer more than 1, and the presetting digit capacity is Nd;
The read module, for reading n vector data from the memory, the data to be calculated read
Digit is nd;
The processing module includes:
Determination sub-module, for when n is less than N, it is described pre- to determine that the digit of the data to be calculated read is less than
If digit;
Submodule is handled, for the data to be calculated to be supplemented (N-n) d 0, obtains including treating for N number of vector data
Calculate data;
The sending module, for the data to be calculated for including N number of vector data to be sent to the vector operation device.
According to the third aspect of the embodiment of the present disclosure, a kind of computing system is provided, including:
Memory, for storing data to be calculated;
Digital independent control device, for reading data to be calculated from the memory;It is described to be calculated when what is read
When the digit of data is less than the presetting digit capacity, the data to be calculated are supplemented 0, until digit of the data to be calculated etc.
In the presetting digit capacity;The data to be calculated of the presetting digit capacity are sent to vector operation device;
The vector operation device calculates for the data to be calculated according to the presetting digit capacity into row vector.
Optionally, the data to be calculated include at least one vector data, and the digit of each vector data is d, described
Presetting digit capacity is N times of the vector data digit, and N is the integer more than 1, and the presetting digit capacity is Nd;
The digital independent control device reads n vector data from the memory;The number to be calculated read
According to digit be nd;When n is less than N, determine that the digit of the data to be calculated read is less than the presetting digit capacity;By institute
Data supplement (N-n) d a 0 to be calculated is stated, obtains the data to be calculated for including N number of vector data;It will be including N number of vector data
Data to be calculated are sent to the vector operation device.
Optionally, the vector operation device includes:Data distribution module, at least two cache modules and computing module;
The data distribution module, for receiving the data to be calculated for including N number of vector data, by the vector data point
It is sent to corresponding cache module;
The vector data for caching vector data, and is sent to corresponding computing module by the cache module;
The computing module is calculated according to the vector data received.
The technical scheme provided by this disclosed embodiment can include the following benefits:When the data read from memory
During insufficient presetting digit capacity, 0 is employed certainly and is supplied.In this way, avoiding causing subsequently to calculate mistake due to the junk data in memory, improve
The accuracy calculated, in addition, avoid additional vectorial zero padding code in software programming.
It should be understood that above general description and following detailed description are only exemplary and explanatory, not
The disclosure can be limited.
Description of the drawings
Attached drawing herein is incorporated into specification and forms the part of this specification, shows the implementation for meeting the disclosure
Example, and for explaining the principle of the disclosure together with specification.
Fig. 1 is the flow chart according to a kind of digital independent control method shown in an exemplary embodiment.
Fig. 2 is the flow chart of a kind of digital independent control method shown according to another exemplary embodiment.
Fig. 3 is the block diagram according to a kind of digital independent control device shown in an exemplary embodiment.
Fig. 4 is the block diagram according to the processing module shown in an exemplary embodiment.
Fig. 5 is the block diagram according to a kind of computing system shown in an exemplary embodiment.
Fig. 6 is the block diagram according to the arithmetic unit shown in an exemplary embodiment.
Specific embodiment
Here exemplary embodiment will be illustrated in detail, example is illustrated in the accompanying drawings.Following description is related to
During attached drawing, unless otherwise indicated, the same numbers in different attached drawings represent the same or similar element.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 be according to a kind of flow chart of digital independent control method shown in an exemplary embodiment, as shown in Figure 1,
This method includes the following steps:
Step S11 reads data to be calculated from memory;
Data to be calculated when the digit of data to be calculated read is less than presetting digit capacity, are supplemented 0, directly by step S12
Digit to data to be calculated is equal to presetting digit capacity;
The data to be calculated of presetting digit capacity are sent to vector operation device by step S13.
In one embodiment, data to be calculated include at least one vector data, and the digit of each vector data is d,
Presetting digit capacity is N times of vector data digit, and N is the integer more than 1, presetting digit capacity Nd.
Data to be calculated are read from memory, including:
N vector data is read from memory, the digit of data to be calculated read is nd;
When the digit of data to be calculated read is less than presetting digit capacity, data to be calculated are supplemented 0, until to be calculated
The digit of data is equal to presetting digit capacity, including:
When n is less than N, determine that the digit of data to be calculated read is less than presetting digit capacity;
By data to be calculated supplement (N-n) d 0, the data to be calculated for including N number of vector data are obtained;
The data to be calculated of presetting digit capacity are sent to vector operation device, including:
Data to be calculated including N number of vector data are sent to vector operation device.
Fig. 2 is the flow chart of a kind of digital independent control method shown according to another exemplary embodiment, such as Fig. 2 institutes
Show, this method includes the following steps:
Step S21 reads n vector data from memory;
Step S22, judges whether n is less than N, if so, performing step S23;If not, when i.e. n is equal to N, step is performed
S24;
Step S23 by data to be calculated supplement (N-n) d 0, obtains the data to be calculated for including N number of vector data;
Data to be calculated are sent to vector operation device by step S24.
For example, reading the data to be calculated of 128 from memory every time, if each data to be calculated are 32, once may be used
4 data to be calculated are read to be calculated.But if total data amount check to be calculated is not 4 integral multiple, last time
When reading data to be calculated, less than 4 data to be calculated are read, i.e., less than 128.At this moment, 0 is filled automatically, by number to be calculated
According to supplying 128.If the data to be calculated that last time is read are 2,64, then it is supplemented 64 0.
In the present embodiment, when the data deficiencies presetting digit capacity read from memory, 0 is employed certainly and is supplied.In this way, avoid by
Cause subsequently to calculate mistake in memory junk data, improve the accuracy of calculating, in addition, avoided in software programming it is additional to
Measure zero padding code.
Following is embodiment of the present disclosure, can be used for performing embodiments of the present disclosure.
Fig. 3 is according to a kind of block diagram of digital independent control device shown in an exemplary embodiment, which can lead to
Cross software, hardware or both be implemented in combination with it is some or all of as electronic equipment.As shown in figure 3, the digital independent
Control device includes:
Read module 31, for reading data to be calculated from memory;
Processing module 32, for when the digit of data to be calculated read be less than presetting digit capacity when, by data to be calculated
Supplement 0, until the digit of data to be calculated is equal to presetting digit capacity;
Sending module 33, for the data to be calculated of presetting digit capacity to be sent to vector operation device.
In the present embodiment, data to be calculated include at least one vector data, and the digit of each vector data is d, is preset
Digit is N times of vector data digit, and N is the integer more than 1, presetting digit capacity Nd.
Read module 31, for reading n vector data from memory, the digit of data to be calculated read is nd.
Fig. 4 is according to the block diagram of the processing module shown in an exemplary embodiment, as shown in figure 4, processing module 32 includes:
Determination sub-module 41, for when n is less than N, determining that the digit of data to be calculated read is less than presetting digit capacity;
Submodule 42 is handled, waits to count for by data to be calculated supplement (N-n) d 0, obtaining including N number of vector data
Count evidence.
Sending module 33, for the data to be calculated for including N number of vector data to be sent to vector operation device.
In the present embodiment, when the data deficiencies presetting digit capacity that digital independent control device is read from memory, 0 is employed certainly
It supplies.In this way, avoiding causing subsequently to calculate mistake due to the junk data in memory, the accuracy of calculating is improved, in addition, soft
Additional vectorial zero padding code is avoided in part programming.
Fig. 5 is according to a kind of block diagram of computing system shown in an exemplary embodiment, as shown in figure 5, the computing system
Including:
Memory 51, for storing data to be calculated;
Digital independent control device 52, for reading data to be calculated from memory;When the data to be calculated read
When digit is less than presetting digit capacity, data to be calculated are supplemented 0, until the digit of data to be calculated is equal to presetting digit capacity;It will be default
The data to be calculated of digit are sent to vector operation device;
Vector operation device 53 calculates for the data to be calculated according to presetting digit capacity into row vector.
In the present embodiment, data to be calculated include at least one vector data, and the digit of each vector data is d, is preset
Digit is N times of vector data digit, and N is the integer more than 1, presetting digit capacity Nd.
Digital independent control device 52 reads n vector data from memory;The digit of data to be calculated read is
nd;When n is less than N, determine that the digit of data to be calculated read is less than presetting digit capacity;Data to be calculated are supplemented into (N-n) d
A 0, obtain the data to be calculated for including N number of vector data;Data to be calculated including N number of vector data are sent to vectorial fortune
Calculate device
Fig. 6 is according to the block diagram of the arithmetic unit shown in an exemplary embodiment, as shown in fig. 6, vector operation device 53
Including:Data distribution module 61, at least two cache module 62a, 62b and computing module 63;
Data distribution module 61 includes the data to be calculated of N number of vector data for receiving, and vector data is distributed to pair
The cache module 62a or 62b answered;
Vector data for caching vector data, and is sent to corresponding computing module 63 by cache module 62a or 62b;
Computing module 63 is calculated according to the vector data received.
In the present embodiment, when the data deficiencies presetting digit capacity that digital independent control device is read from memory, 0 is employed certainly
It supplies.In this way, avoiding causing subsequently to calculate mistake due to the junk data in memory, the accuracy of calculating is improved, in addition, soft
Additional vectorial zero padding code is avoided in part programming.
Those skilled in the art will readily occur to the disclosure its after considering specification and putting into practice disclosure disclosed herein
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or
Person's adaptive change follows the general principle of the disclosure and including the undocumented common knowledge in the art of the disclosure
Or conventional techniques.Description and embodiments are considered only as illustratively, and the true scope and spirit of the disclosure are by following
Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by appended claim.
Claims (7)
1. a kind of digital independent control method, which is characterized in that including:
Data to be calculated are read from memory;
When the digit of the data to be calculated read is less than the presetting digit capacity, the data to be calculated are supplemented 0, directly
Digit to the data to be calculated is equal to the presetting digit capacity;
The data to be calculated of the presetting digit capacity are sent to vector operation device.
2. according to the method described in claim 1, it is characterized in that, the data to be calculated include at least one vector data,
The digit of each vector data is d, and the presetting digit capacity is N times of the vector data digit, and N is the integer more than 1, described
Presetting digit capacity is Nd;
It is described to read data to be calculated from memory, including:
N vector data is read from the memory, the digit of the data to be calculated read is nd;
When the digit of the data to be calculated read is less than the presetting digit capacity, the data to be calculated are supplemented 0, directly
Digit to the data to be calculated is equal to the presetting digit capacity, including:
When n is less than N, determine that the digit of the data to be calculated read is less than the presetting digit capacity;
By described data supplement (N-n) d a 0 to be calculated, the data to be calculated for including N number of vector data are obtained;
The data to be calculated of the presetting digit capacity are sent to vector operation device, including:
Data to be calculated including N number of vector data are sent to the vector operation device.
3. a kind of digital independent control device, which is characterized in that including:
Read module, for reading data to be calculated from memory;
Processing module, for when the digit of the data to be calculated read is less than the presetting digit capacity, waiting to count by described
It counts according to supplement 0, until the digit of the data to be calculated is equal to the presetting digit capacity;
Sending module, for the data to be calculated of the presetting digit capacity to be sent to vector operation device.
4. device according to claim 3, which is characterized in that the data to be calculated include at least one vector data,
The digit of each vector data is d, and the presetting digit capacity is N times of the vector data digit, and N is the integer more than 1, described
Presetting digit capacity is Nd;
The read module, for reading n vector data, the digit of the data to be calculated read from the memory
For nd;
The processing module includes:
Determination sub-module, for when n is less than N, determining that the digit of the data to be calculated read is less than the default position
Number;
Submodule is handled, for the data to be calculated to be supplemented (N-n) d 0, obtains including the to be calculated of N number of vector data
Data;
The sending module, for the data to be calculated for including N number of vector data to be sent to the vector operation device.
5. a kind of computing system, which is characterized in that including:
Memory, for storing data to be calculated;
Digital independent control device, for reading data to be calculated from the memory;When the data to be calculated read
Digit when being less than the presetting digit capacity, will the data to be calculated supplement 0, until the digit of the data to be calculated is equal to institute
State presetting digit capacity;The data to be calculated of the presetting digit capacity are sent to vector operation device;
The vector operation device calculates for the data to be calculated according to the presetting digit capacity into row vector.
6. system according to claim 5, which is characterized in that the data to be calculated include at least one vector data,
The digit of each vector data is d, and the presetting digit capacity is N times of the vector data digit, and N is the integer more than 1, described
Presetting digit capacity is Nd;
The digital independent control device reads n vector data from the memory;The data to be calculated read
Digit is nd;When n is less than N, determine that the digit of the data to be calculated read is less than the presetting digit capacity;It is treated described
Data supplement (N-n) d 0 is calculated, obtains the data to be calculated for including N number of vector data;It will wait to count including N number of vector data
The evidence that counts is sent to the vector operation device.
7. system according to claim 6, which is characterized in that the vector operation device includes:Data distribution module, extremely
Few two cache modules and computing module;
For receiving the data to be calculated for including N number of vector data, the vector data is distributed to for the data distribution module
Corresponding cache module;
The vector data for caching vector data, and is sent to corresponding computing module by the cache module;
The computing module is calculated according to the vector data received.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711378483.9A CN108170374A (en) | 2017-12-19 | 2017-12-19 | Digital independent control method, device and computing system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711378483.9A CN108170374A (en) | 2017-12-19 | 2017-12-19 | Digital independent control method, device and computing system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108170374A true CN108170374A (en) | 2018-06-15 |
Family
ID=62522711
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711378483.9A Pending CN108170374A (en) | 2017-12-19 | 2017-12-19 | Digital independent control method, device and computing system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108170374A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1688104A (en) * | 2005-06-20 | 2005-10-26 | 北京中星微电子有限公司 | Digital signal processing method and apparatus |
CN102680945A (en) * | 2012-05-22 | 2012-09-19 | 西安电子科技大学 | Doppler modulation frequency estimation method based on field programmable gate array (FPGA) |
CN103020901A (en) * | 2012-12-05 | 2013-04-03 | 上海电力学院 | Blind estimation method of rotation angles of digital images |
-
2017
- 2017-12-19 CN CN201711378483.9A patent/CN108170374A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1688104A (en) * | 2005-06-20 | 2005-10-26 | 北京中星微电子有限公司 | Digital signal processing method and apparatus |
CN102680945A (en) * | 2012-05-22 | 2012-09-19 | 西安电子科技大学 | Doppler modulation frequency estimation method based on field programmable gate array (FPGA) |
CN103020901A (en) * | 2012-12-05 | 2013-04-03 | 上海电力学院 | Blind estimation method of rotation angles of digital images |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107818509B (en) | Service data checking method and device, storage medium and electronic equipment | |
CN107196900A (en) | A kind of method and device for verification of knowing together | |
US10152551B2 (en) | Calibration data in a sensor system | |
CN111049756B (en) | Request response method and device, electronic equipment and computer readable storage medium | |
CN106131083A (en) | A kind of attack message detection and take precautions against method and switch | |
CN109525500A (en) | A kind of information processing method and information processing unit of self-adjusting threshold value | |
CN109902103A (en) | Service data management method, device, equipment and computer readable storage medium | |
CN110458184B (en) | Optical character recognition assistance method, device, computer equipment and storage medium | |
CN113326170B (en) | Task delay risk detection method, electronic equipment and storage medium | |
US20100312924A1 (en) | Network processor, reception controller and data reception processing method performing direct memory access transfer | |
CN116524206B (en) | Target image identification method and device | |
CN108170374A (en) | Digital independent control method, device and computing system | |
US7308518B2 (en) | Interrupt controlling circuit | |
CN112328822A (en) | Picture pre-labeling method and device and terminal equipment | |
CN108629219B (en) | Method and device for identifying one-dimensional code | |
CN115129297B (en) | Multi-point multiplication operation system, method, graphic processor, electronic device and equipment | |
CN117009221A (en) | Processing method, device, equipment, storage medium and program product for product test | |
US8112639B2 (en) | Methods, systems and computer program products for detecting tampering of electronic equipment based on constrained time to obtain computational result | |
CN111159009A (en) | Pressure testing method and device for log service system | |
CN112905542A (en) | File processing method, device, server, equipment and storage medium | |
CN114205160B (en) | Block chain-based data processing method and device and electronic equipment | |
US7843844B2 (en) | Method, apparatus and system for the adaptive optimization of transport protocols when transmitting images | |
CN111026579B (en) | Verification method and device for data error detection capability, terminal equipment and medium | |
WO2020164275A1 (en) | Processing result prediction method and apparatus based on prediction model, and server | |
CN110620636B (en) | Data transmission checking device and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180615 |
|
RJ01 | Rejection of invention patent application after publication |