Supercharge Your Innovation With Domain-Expert AI Agents!

Method for decoding one-bit hot code into binary code and one-bit hot code encoder

A binary code and decoder technology, applied in code conversion, electrical components, etc., can solve the problems of multi-control logic and complexity of devices, and achieve the effects of simplified product structure, reduced product cost, and strong scalability

Inactive Publication Date: 2007-11-28
江苏博悦物联网技术有限公司
View PDF0 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] The present invention provides a method for decoding one-hot code into binary code and a one-hot code decoder to solve the problems in the prior art When one-hot code is decoded, many devices are required and the control logic is complicated

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
  • Method for decoding one-bit hot code into binary code and one-bit hot code encoder
  • Method for decoding one-bit hot code into binary code and one-bit hot code encoder
  • Method for decoding one-bit hot code into binary code and one-bit hot code encoder

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0047] Please refer to Fig. 4, which is a flow chart of decoding 16-bit one-hot codes into 8421 codes in Embodiment 1 of the present invention, which mainly includes steps:

[0048] Step S40, determine the codeword length L of the 8421 code corresponding to the 16-bit one-hot code b , due to L b =cell(log 2 (L o )), where cell(X) means to take the smallest integer greater than X, L o is the codeword length of one-hot code, so the codeword length of 8421 code corresponding to 16-bit one-hot code is equal to 5.

[0049] raw one-hot code

Corresponding to 8421 binary code

0000000000000001

0

0

0

0

1

0000000000000010

0

0

0

1

0

0000000000000100

0

0

0

1

1

0000000000001000

0

0

1

0

0

0000000000010000

0

0

1

0

1

0000000000100000

0

0

1

1

0

...

Embodiment 2

[0061] Please refer to FIG. 6, which is a flow chart of decoding 16-bit one-hot codes into Gray codes in Embodiment 2 of the present invention, which mainly includes steps:

[0062] Step S60, determine the codeword length L of the Gray code corresponding to the 16-bit one-hot code b , due to L b =cell(log 2 (L o )), where cell(X) means to take the smallest integer greater than X, L o is the codeword length of one-hot code, so the codeword length of Gray code corresponding to 16-bit one-hot code is equal to 5.

[0063] raw one-hot code

Corresponding Gray code

0000000000000001

0

0

0

0

1

0000000000000010

0

0

0

1

1

0000000000000100

0

0

0

1

0

[0064] 0000000000001000

0

0

1

1

0

0000000000010000

0

0

1

1

1

0000000000100000

0

0

1

0

...

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 discloses a decoding method to decode one-bit heat code into binary code and one-bit heat code decoder, which comprises the following parts: building the binary code matrix corresponding to the one-bit heat code; making the input one-bit heat code and each row of matrix do 'and' operation respectively; or making '1' position of each row in the matrix and the vector extracted from one-bit heat code do 'or' operation; obtaining the binary code sequence corresponding to one-bit heat code according to split condition. The one-bit heat code decoder consists of logic calculating mode and ordering mode. The invention simplifies the structure of one-bit heat code decoder, which reduces the cost with high decoding speed.

Description

technical field [0001] The invention relates to a decoding technology, in particular to a method for decoding a one-hot code into a binary code and a one-hot code decoder. Background technique [0002] In the design of modern digital logic circuits, one-hot encoding method is a common encoding method. It is characterized in that for any given state, at most one state bit is "1" and all other state bits are "0". For example, use "0001" to represent "1", "0010" to represent "2"..."1000" to represent "4" and so on. [0003] The advantages of adopting one-hot code encoding method are: easy to synthesize, easy to find critical paths, and easy to perform static timing analysis. Specifically, to determine whether it is currently in a certain state, it only needs to determine whether the corresponding state bit is "1" or "0". Considering a typical output, it outputs 1 in some specific states, and outputs 0 in the rest of the states, you only need to "OR" the state bits correspond...

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
IPC IPC(8): H03M7/04
Inventor 邹杨
Owner 江苏博悦物联网技术有限公司
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More