Dokument erweitert
This commit is contained in:
@@ -1,14 +1,11 @@
|
||||
// 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/builtIn/HalfAdder.hdl
|
||||
|
||||
// File name: tools/builtInChips/HalfAdder.hdl
|
||||
/**
|
||||
* Half adder. Computes sum, the least significnat bit of a + b,
|
||||
* and carry, the most significnat bit of a + b.
|
||||
* Computes the sum of two bits.
|
||||
*/
|
||||
|
||||
CHIP HalfAdder {
|
||||
CHIP HalfAdder {
|
||||
|
||||
IN a, b;
|
||||
OUT sum, // LSB of a + b
|
||||
|
||||
Reference in New Issue
Block a user