Spaces:
Sleeping
Sleeping
| ### 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. |