Binary to Gray:
module b2g(g,b);
output [3:0] g;
input [3:0] b;
assign g[3] = b[3],
g[2] = b[3] ^ b[2],
g[1] = b[2] ^ b[1],
g[0] = b[1] ^ b[0];
endmodule
Raspberry Pi,MQTT, Thing Speak, Wi-Fi, BLE, Ethernet, I2C, SPI, UART, 8085, 8086, 8051, PIC, ATMEGA, Arduino, NodeMCU, LPC 2148, ARM cortex M0, ARM cortex M1, ARM cortex M3, MSP430, EFM32LG.
0 comments:
Post a Comment
if you have any doubt please let me know