Safe floating point operation method and system

A floating-point calculation and floating-point calculation technology, which is applied in calculation, instrumentation, electrical digital data processing, etc., can solve the problems of poor real-time performance, large consumption of computing resources, and low efficiency, so as to ensure safety, consume less computing resources, and high efficiency effect

Pending Publication Date: 2021-12-10
CASCO SIGNAL
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The first implementation method will greatly limit the usage scenarios of the security platform, which will limit the scope of application of the platform
The second implementation method needs to consume a lot of computing resources during calculation, which has low efficiency and poor real-time performance. The input and output of parameters have not been verified, and its functional safety has certain defects.

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
  • Safe floating point operation method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] based on the following figure 1 Preferred embodiments of the present invention will be described in detail.

[0023] The present invention provides a floating-point calculation method, comprising the following steps:

[0024] Step S1. Use the standard hard floating-point computing unit (FPU) built into the general-purpose computing CPU to calculate the incoming floating-point numbers (x1, x2...) to obtain a floating-point number calculation result (Y). There are only hard floating-point calculations, and floating-point safe calculations cannot be implemented.

[0025] Step S2, convert the incoming floating-point numbers (x1, x2...) into fixed-point numbers (x_1, x_2), calculate the fixed-point numbers (x_1, x_2), obtain the fixed-point number calculation result (Z), and convert the fixed-point number calculation result (Z) is converted to a float (Z1).

[0026] Step S3, compare the floating-point number (Z1) with the previous calculation result (Y) to check whether t...

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 invention relates to a safe floating point calculation method, which adopts two different calculation methods, namely a hard floating point calculation method and a fixed point calculation method, to carry out calculation, and carries out difference comparison on a hard floating point calculation result and a fixed point calculation result so as to ensure the safety of a floating point calculation function. According to the invention, system floating point operation safety is ensured, operation resource consumption is low, and efficiency is high.

Description

technical field [0001] The invention relates to a safe floating-point calculation method and system. Background technique [0002] At present, on the safety platform, the floating-point operation function is divided into two implementation methods in terms of functional safety design. One is to not consider this function as a safety function, and the other is to use soft floating point. The transfer is also done through registers or stacks, and is usually implemented by using integer numbers to simulate floating-point general function calls and library function calls. [0003] These two types of methods have corresponding disadvantages. The first implementation method will greatly limit the use scenarios of the security platform, which will limit the scope of application of the platform. The second implementation method needs to consume a lot of computing resources during calculation, and has low efficiency and poor real-time performance. The input and output of parameters...

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 Applications(China)
IPC IPC(8): G06F7/483H03M7/24
CPCG06F7/483H03M7/24
Inventor 王澜张立鹏周庭梁
Owner CASCO SIGNAL
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