Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
|
|
@ -1,8 +1,17 @@
|
|||
[[wp:Gray code|Gray code]] is a form of binary encoding where transitions between consecutive numbers differ by only one bit. This is a useful encoding for reducing hardware data hazards with values that change rapidly and/or connect to slower hardware as inputs. It is also useful for generating inputs for [[wp:Karnaugh map|Karnaugh maps]] in order from left to right or top to bottom.
|
||||
[[wp:Gray code|Gray code]] is a form of binary encoding
|
||||
where transitions between consecutive numbers differ by only one bit.
|
||||
This is a useful encoding for reducing hardware data hazards
|
||||
with values that change rapidly and/or connect to slower hardware as inputs.
|
||||
It is also useful for generating inputs for [[wp:Karnaugh map|Karnaugh maps]]
|
||||
in order from left to right or top to bottom.
|
||||
|
||||
Create functions to encode a number to and decode a number from Gray code. Display the normal binary representations, Gray code representations, and decoded Gray code values for all 5-bit binary numbers (0-31 inclusive, leading 0's not necessary).
|
||||
Create functions to encode a number to and decode a number from Gray code.
|
||||
Display the normal binary representations, Gray code representations,
|
||||
and decoded Gray code values for all 5-bit binary numbers (0-31 inclusive,
|
||||
leading 0's not necessary).
|
||||
|
||||
There are many possible Gray codes. The following encodes what is called "binary reflected Gray code."
|
||||
There are many possible Gray codes.
|
||||
The following encodes what is called "binary reflected Gray code."
|
||||
|
||||
Encoding (MSB is bit 0, b is binary, g is Gray code):
|
||||
<pre>if b[i-1] = 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue