Anpassungen Path-Struktur
This commit is contained in:
16
original/tools/builtInChips/FullAdder.hdl
Normal file
16
original/tools/builtInChips/FullAdder.hdl
Normal file
@@ -0,0 +1,16 @@
|
||||
// This file is part of www.nand2tetris.org
|
||||
// and the book "The Elements of Computing Systems"
|
||||
// by Nisan and Schocken, MIT Press.
|
||||
// File name: tools/builtInChips/FullAdder.hdl
|
||||
/**
|
||||
* Computes the sum of three bits.
|
||||
*/
|
||||
CHIP FullAdder {
|
||||
|
||||
IN a, b, c;
|
||||
OUT sum, // LSB of a + b + c
|
||||
carry; // MSB of a + b + c
|
||||
|
||||
BUILTIN FullAdder;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user