Data storage device and data determination device

A data storage device and storage bit technology, applied in the computer field, can solve the problems of floating-point storage storage space and power consumption waste, and achieve the effects of improving storage accuracy and reducing waste.

Active Publication Date: 2022-03-04
AEROSPACE INFORMATION
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The present invention provides a data storage device and a data determination device to overcome the waste of storage space and power consumption in floating-point number storage

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data storage device and data determination device
  • Data storage device and data determination device
  • Data storage device and data determination device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0186] The following describes the steps for storing the decimal -5.12 using the data storage device provided by the present invention.

[0187] Here, the data storage device includes 24 binary bits, that is, 3 bytes; wherein, the highest bit is the sign bit, the integer length bits are fixed at 6 bits, and the decimal length bits are fixed at 6 bits. The integer part (decimal digits) corresponds, the decimal storage bit corresponds to the fractional part (decimal digits) of the value V, and the rest is stuffing bits, and the length of the stuffing bits is variable.

[0188] 1) According to the fact that -5.12 is a negative number, it is determined that the value of the sign bit located at the highest bit (bit index is n-1) is 1.

[0189] 2) The integer part is (5), and the binary representation of (5) in decimal is 101; the length of binary 101 is 3 bits (binary bits), and the binary representation of (3) is 11, so the integer length of 6 bits is fixed The value of the bit i...

Embodiment 2

[0200] The following description adopts the data acquisition device provided by the present invention to obtain the decimal value of the target number X stored in the memory of the computing device: 00000001 10000101 11111111 11111111 11111111 11111111 11111111 11111000. As listed in Table 4, the target number X occupies 8 bytes of memory in the computing device, that is, 64 bits of storage space. It can be predetermined that the target number X includes 1 sign bit, 6 integer length bits, and 6 fractional length bits.

[0201] Table 4 Example of the storage method of the target number X in the computer

[0202]

[0203]

[0204] 1), extract the numerical value of sign bit, determine that the numerical value of sign bit is 0, so target number X is a positive number;

[0205] 2), extracting the value of the integer length bit whose length is fixed to 6 is determined to be 000000, then the number of integer length bits is zero, that is, in the storage space, the number of ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The present invention provides a data storage device, comprising: an integer length bit and value determination module 10; a decimal length bit and value determination module 20; an integer storage bit and value determination module 30; a decimal storage bit and value determination module 40; Module 50. The data storage device provided by the present invention stores the fractional part in an integer manner, which greatly improves the storage accuracy of the decimal; length bits representing the length of the integer part and the length of the fractional part are respectively provided, so that the target number occupies the storage space of the computing device. The number of bits can be flexibly adjusted and changed according to the target value, which can make full use of the storage space and reduce the waste of power consumption on registers and storage.

Description

technical field [0001] The present invention relates to the field of computer technology, and more specifically, to a data storage device and a data determination device. Background technique [0002] From the weight measurement that is close to life, to the satellite orbit change at the forefront of science and technology, we are dealing with decimals almost all the time. When using computers to process these decimals, programmers usually choose to use IEEE standard single-precision floating-point numbers (float) and double-precision floating-point numbers (double) to store and calculate values. While the floating point numbers described by the IEEE standard use Although the representation range is very wide, ranging from astronomical figures down to electronic masses, its effective number of digits and precision are limited. [0003] Specifically, the number of significant digits of a floating-point number described by the IEEE standard depends on the precision of the b...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F7/483
Inventor 曾晨宸赵轶民张磊张朝阳卢孟维石雪景任天翔
Owner AEROSPACE INFORMATION
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products