Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Modular operation method with variable bit width, and modular operation circuit

A modulo operation and variable technology, applied in CAD circuit design, calculation, electrical and digital data processing, etc., can solve problems such as conflicts, consumption of DSP resources, etc., to achieve high efficiency, flexible and configurable effects

Pending Publication Date: 2021-11-30
XI AN JIAOTONG UNIV
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The hardware implementation of these two algorithms can accelerate different types of modulo operations, but their disadvantage is that they consume precious DSP resources on the FPGA, which conflicts with the use of DSP by the main logic operation unit

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
  • Modular operation method with variable bit width, and modular operation circuit
  • Modular operation method with variable bit width, and modular operation circuit
  • Modular operation method with variable bit width, and modular operation circuit

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] The present invention will be further described in detail below in conjunction with specific embodiments, which are explanations of the present invention rather than limitations.

[0036] A modulo calculation method with variable bit width of the present invention comprises the following steps:

[0037] Step 1. Perform a left-shift operation on the modulus to obtain N left-shifted results. Use these left-shifted results and the modulus to combine the bit width of the operand to form N+1 intervals in order from large to small. Record the minimum value of the i-th interval as M i , i=1, 2, 3...n or n+1;

[0038] Step 2, when the modulus is shifted to the left by one bit, perform step 2a, when the modulus is shifted to the left by two or more bits, judge the interval where the operand is located, and then jump the operand to the corresponding Interval, according to the M of the interval i , combined with the M that appears in subsequent steps i , jump to the correspond...

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 modular operation method with the variable bit width, and a modular operation circuit. Firstly, a modulus is shifted leftwards, the left shifting result and the modulus are combined with the bit width of an operand, N+1 intervals are formed according to the sequence from large to small, one bit is shifted leftwards, the minimum value of the first interval is subtracted from the operand, and the size of the obtained result and the value is judged; when the result is greater than the value, the result is used for replacing the operand to continue subtraction operation until the obtained result is smaller than the operand, then next interval operation is carried out, if the result is smaller than the operand at the beginning, the next interval is directly entered, the operation is repeated until the last interval is entered, subtraction and comparison operation is carried out, and modular operation is completed; and when left shifting is carried out by two or more bits, the interval where the operand is located is judged, then the operand skips to the corresponding interval, and c subtraction and comparison operation are directly performed on the later interval according to the previous process; and corresponding circuits need to be configured with a plurality of shifters, registers, subtracters and selectors.

Description

technical field [0001] The invention relates to the technical field of digital circuits, in particular to a modulo calculation method and a modulo calculation circuit with variable bit width. Background technique [0002] With the rapid development of information science and technology, information network has been widely used. Cryptography is the core of information security and the cornerstone of cyberspace security. Cryptography is a technique for encrypting, analyzing, identifying and confirming information, and managing keys. The field of development and application of cryptography is constantly evolving. Currently, the new generation of cryptographic technology standards being formulated by the National Institute of Standards and Technology (NIST) in the United States is the post-quantum cryptographic standard. Post-quantum cryptography is a new generation of cryptographic algorithms that can resist the attacks of quantum computers on existing cryptographic algorith...

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): G06F30/34G06F7/498
CPCG06F30/34G06F7/4981
Inventor 杨晨刘依维杨泽鹏苏阳
Owner XI AN JIAOTONG UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products