Half Adder:
module ha(s,c,a,b);
output s,c;
input a,b;
assign s = a ^ b,
c = a & b;
endmodule
Full Adder:
module fa(s,cout,a,b,c);
output s,cout;
input a,b,c;
assign s = a ^ b ^ c;
assign cout = (a & b) | (b & c) | (a & c);
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