RTL-Openenv / tasks /task2 /context.md
NeerjaK's picture
Upload folder using huggingface_hub
cce6ee4 verified
|
Raw
History Blame Contribute Delete
485 Bytes
### TASK: Debug Combinational Logic (Binary to Gray Code Converter)
### SPECIFICATION:
- Implement a Binary to Gray Code Converter.
- Inputs: 'binary' (N-bit binary number).
- Output: 'gray' (N-bit gray code).
- Behavior: 'gray' should be the gray code representation of 'binary'.
Binary code is the standard way of representing numbers in digital systems using bits (0s and 1s). Gray code is a modified binary representation where consecutive values differ by only one bit.