SlideShare a Scribd company logo
1
B3 shuya
The Elements of Computing System
- Ⅰ.Boolean Logic Ⅱ.Boolean Arithmetic -
B3 shuya
2
Ⅰ. Boolean Logic
3Introduction
Every digital device is composed by chips. 

The component of chips is Logic Gate.

This chapter focus on Boolean Gate

which is simple and physically represent bool function.

This chapter implement boolean gate by using simulator.

I will show later how to use simulator.
3
3Boolean Algebra 4
1.1.1 Boolean Algebra
Boolean algebra uses binary values.

This is labeled true/false, 0/1, yes/no, on/off.
The expresion of Bool function
Truth Table

Boolean expression

Canonical representation
Truth Table
f(x, y, z) = (x + y) · ¯z
Boolean expression
Canonical expression
f(x, y, z) = ¯xy¯z + x¯y¯z + xy¯z
Composite implementation of a three-way And gate
3Logic Gate 5
1.1.2 Logic gate
Gate is a physical device which implements function.

The simplest gates of all are made from tiny switching devices, 

called transistors.
Primitive gate
Composite gate
This gate is combination of Primitive one.

This assembly called Logic design.
6
Usage of Simulator
3Usage of Simulator 7
Environmental construction
Download

http://www.nand2tetris.org/software/mac_guide.html

Setup

$ cd /usr/local/bin

$ ln -s ~/nand2tetris/tools/HardwareSimulator.sh HardwareSimulator

$ chmod +x HardwareSimulator

$ HardwareSimulator
Usage of Software
Click and load .hdl file. Click and load .tst file.
Run script
8
Ⅱ. Boolean Arithmetic
3Introduction
This chapter aims to make ALU.



All calculation on Computer executes by ALU.



The first section gives a brief Back-ground on 

how binary codes and Boolean arithmetic can be used.



The Specification section describes a succession of

adder chips.
9
3Usage of Simulator 10
Environmental construction
Download

http://www.nand2tetris.org/software/mac_guide.html

Setup

$ cd /usr/local/bin

$ ln -s ~/nand2tetris/tools/HardwareSimulator.sh HardwareSimulator

$ chmod +x HardwareSimulator

$ HardwareSimulator
Usage of Software
Click and load .hdl file. Click and load .tst file.
Run script
3Boolean Arithmetic 11
Binary Numbers
Unlike the decimal system, which is founded on base 10, 

the bi-nary system is founded on base.
Binary Addition
A pair of binary numbers can be added digit by digit from right to

left, the same method used in decimal addition.
3Boolean Arithmetic 12
Signed Binary Numbers
The method used by almost all com-puters is called the

2’s complementmethod, also known asradix complement.



How to make 2’s complement
0101
1010
1011
Reverse bit order
1’s comlementmethod
add 1
2’s comlementmethod
3Adders 13
half adder
This is designed to add two bits

sum = LSB of a + b, 

carry = MSB of a + b
full adder
This is designed to add three bits

sum = LSB of a + b + c, 

carry = MSB of a + b + c
adder
Designed to add two n-bit numbers

out = a + b
3ALU 14
Arithmetic Logic Unit
ALU is component of PC. This executes boolean logic and arithmetic.

Previous gate is hold for any computer.

This section describes an ALU which is uniq one in this text.

More Related Content

PDF
C programming day#2.
PPTX
03. Operators Expressions and statements
PDF
C programming part2
PDF
PPTX
Notes on assignment in r
PDF
Arduino reference
PPTX
Python Programming Essentials - M16 - Control Flow Statements and Loops
PDF
Python-02| Input, Output & Import
C programming day#2.
03. Operators Expressions and statements
C programming part2
Notes on assignment in r
Arduino reference
Python Programming Essentials - M16 - Control Flow Statements and Loops
Python-02| Input, Output & Import

What's hot (20)

PPTX
Unit2 input output
PDF
Lesson 9. Pattern 1. Magic numbers
PDF
100 c interview questions answers
PPTX
PDF
See through C
PPTX
05. Conditional Statements
PPTX
Computer Science Assignment Help
PPT
14 arrays
PDF
PSI 3 Integration
PPTX
04. Console Input Output
PPTX
Programming python quick intro for schools
PDF
Multidimensional arrays in C++
PDF
Arrays in C++
PPTX
02. Primitive Data Types and Variables
PPTX
Operators and Control Statements in Python
PDF
Manipulators
PDF
Embedded C - Lecture 2
PPTX
Managing console input
PPTX
Erlang And ActorDB
Unit2 input output
Lesson 9. Pattern 1. Magic numbers
100 c interview questions answers
See through C
05. Conditional Statements
Computer Science Assignment Help
14 arrays
PSI 3 Integration
04. Console Input Output
Programming python quick intro for schools
Multidimensional arrays in C++
Arrays in C++
02. Primitive Data Types and Variables
Operators and Control Statements in Python
Manipulators
Embedded C - Lecture 2
Managing console input
Erlang And ActorDB
Ad

Viewers also liked (14)

PDF
How to Upload File in SFC.
PDF
RG_LT大会_SFCで車通学をする
PDF
RG講義_SSH
PDF
Primer to Browser Netwroking
PDF
Introduction to QUIC
PDF
自動運転の概要
PPT
Binary Arithmetic
PDF
THE HUNTED
PPTX
TEP 2014 RESUMEN DE ESTUDIO EN ESPAÑOL ESC CARDIO
DOCX
JARenetiFullCV21December2015
PDF
الجمعية العربية للروبوت
PPSX
Козяр Валентина
PDF
Epidemologi
PDF
GST updates by CA. Vinay Bhushan
How to Upload File in SFC.
RG_LT大会_SFCで車通学をする
RG講義_SSH
Primer to Browser Netwroking
Introduction to QUIC
自動運転の概要
Binary Arithmetic
THE HUNTED
TEP 2014 RESUMEN DE ESTUDIO EN ESPAÑOL ESC CARDIO
JARenetiFullCV21December2015
الجمعية العربية للروبوت
Козяр Валентина
Epidemologi
GST updates by CA. Vinay Bhushan
Ad

Similar to Nand2 tetris 1and2 (20)

PDF
nand2tetris 舊版投影片 -- 第二章 布林算術
PPT
lecture 02 Boolean arithmetic.ppt
PDF
Boolean arithmetic
PPTX
Chapter 5 boolean algebra
PDF
Digital Electronics basics book1_pdf.pdf
PPT
An Introduction to Computer Logic and Digital Design.ppt
PPT
Data Structure and AlgorithmChapter1.ppt
PDF
Boolean arithmetic/nandtotetris/lecture_2
PPTX
Introduction to Digital System eLECTRONICS
PPTX
Introduction to digital logic
PPT
341-12-4-2001.ppt
PPT
Chapter1
PPTX
Introduction to computer Architecture. this will be helpful for Information T...
PPT
IS 139 Lecture 3 - 2015
PPT
IS 139 Lecture 3
PDF
Digital electronics & microprocessor Batu- s y computer engineering- arvind p...
PPT
Chapter1.ppt
PPT
computer logic and digital design chapter 1
PPT
Digital logic
nand2tetris 舊版投影片 -- 第二章 布林算術
lecture 02 Boolean arithmetic.ppt
Boolean arithmetic
Chapter 5 boolean algebra
Digital Electronics basics book1_pdf.pdf
An Introduction to Computer Logic and Digital Design.ppt
Data Structure and AlgorithmChapter1.ppt
Boolean arithmetic/nandtotetris/lecture_2
Introduction to Digital System eLECTRONICS
Introduction to digital logic
341-12-4-2001.ppt
Chapter1
Introduction to computer Architecture. this will be helpful for Information T...
IS 139 Lecture 3 - 2015
IS 139 Lecture 3
Digital electronics & microprocessor Batu- s y computer engineering- arvind p...
Chapter1.ppt
computer logic and digital design chapter 1
Digital logic

More from Shuya Osaki (9)

PDF
第2章 プロトコル
PDF
公的個人認証サービスを用いたスマートエスクロー
PDF
学部紹介セミナー[森村学園高等部]
PDF
OSTEP Chapter2 Introduction
PDF
Summarized of UNIX Time Sharing System
PDF
マスタリングTCP/IP 入門編 1章
PDF
How to Use Email in SFC.
PDF
ハイパフォーマンスブラウザネットワーキング2
PDF
ハイパフォーマンスブラウザネットワーキング1
第2章 プロトコル
公的個人認証サービスを用いたスマートエスクロー
学部紹介セミナー[森村学園高等部]
OSTEP Chapter2 Introduction
Summarized of UNIX Time Sharing System
マスタリングTCP/IP 入門編 1章
How to Use Email in SFC.
ハイパフォーマンスブラウザネットワーキング2
ハイパフォーマンスブラウザネットワーキング1

Recently uploaded (20)

PPTX
quadraticequations-111211090004-phpapp02.pptx
PPTX
sdn_based_controller_for_mobile_network_traffic_management1.pptx
PPTX
Lecture-3-Computer-programming for BS InfoTech
PPTX
Entre CHtzyshshshshshshshzhhzzhhz 4MSt.pptx
PPT
Hypersensitivity Namisha1111111111-WPS.ppt
PPTX
Operating System Processes_Scheduler OSS
PPTX
Prograce_Present.....ggation_Simple.pptx
PPTX
Presentacion compuuuuuuuuuuuuuuuuuuuuuuu
PPTX
title _yeOPC_Poisoning_Presentation.pptx
PDF
How NGOs Save Costs with Affordable IT Rentals
PDF
PPT Determiners.pdf.......................
PPTX
Nanokeyer nano keyekr kano ketkker nano keyer
PPTX
DEATH AUDIT MAY 2025.pptxurjrjejektjtjyjjy
PPTX
Lecture 3b C Library _ ESP32.pptxjfjfjffkkfkfk
PPTX
A Clear View_ Interpreting Scope Numbers and Features
PDF
Dozuki_Solution-hardware minimalization.
PPTX
"Fundamentals of Digital Image Processing: A Visual Approach"
PPTX
Sem-8 project ppt fortvfvmat uyyjhuj.pptx
PPTX
PROGRAMMING-QUARTER-2-PYTHON.pptxnsnsndn
DOCX
fsdffdghjjgfxfdghjvhjvgfdfcbchghgghgcbjghf
quadraticequations-111211090004-phpapp02.pptx
sdn_based_controller_for_mobile_network_traffic_management1.pptx
Lecture-3-Computer-programming for BS InfoTech
Entre CHtzyshshshshshshshzhhzzhhz 4MSt.pptx
Hypersensitivity Namisha1111111111-WPS.ppt
Operating System Processes_Scheduler OSS
Prograce_Present.....ggation_Simple.pptx
Presentacion compuuuuuuuuuuuuuuuuuuuuuuu
title _yeOPC_Poisoning_Presentation.pptx
How NGOs Save Costs with Affordable IT Rentals
PPT Determiners.pdf.......................
Nanokeyer nano keyekr kano ketkker nano keyer
DEATH AUDIT MAY 2025.pptxurjrjejektjtjyjjy
Lecture 3b C Library _ ESP32.pptxjfjfjffkkfkfk
A Clear View_ Interpreting Scope Numbers and Features
Dozuki_Solution-hardware minimalization.
"Fundamentals of Digital Image Processing: A Visual Approach"
Sem-8 project ppt fortvfvmat uyyjhuj.pptx
PROGRAMMING-QUARTER-2-PYTHON.pptxnsnsndn
fsdffdghjjgfxfdghjvhjvgfdfcbchghgghgcbjghf

Nand2 tetris 1and2

  • 1. 1 B3 shuya The Elements of Computing System - Ⅰ.Boolean Logic Ⅱ.Boolean Arithmetic - B3 shuya
  • 3. 3Introduction Every digital device is composed by chips. 
 The component of chips is Logic Gate.
 This chapter focus on Boolean Gate
 which is simple and physically represent bool function.
 This chapter implement boolean gate by using simulator.
 I will show later how to use simulator. 3
  • 4. 3Boolean Algebra 4 1.1.1 Boolean Algebra Boolean algebra uses binary values.
 This is labeled true/false, 0/1, yes/no, on/off. The expresion of Bool function Truth Table
 Boolean expression
 Canonical representation Truth Table f(x, y, z) = (x + y) · ¯z Boolean expression Canonical expression f(x, y, z) = ¯xy¯z + x¯y¯z + xy¯z
  • 5. Composite implementation of a three-way And gate 3Logic Gate 5 1.1.2 Logic gate Gate is a physical device which implements function.
 The simplest gates of all are made from tiny switching devices, 
 called transistors. Primitive gate Composite gate This gate is combination of Primitive one.
 This assembly called Logic design.
  • 7. 3Usage of Simulator 7 Environmental construction Download
 http://www.nand2tetris.org/software/mac_guide.html
 Setup
 $ cd /usr/local/bin
 $ ln -s ~/nand2tetris/tools/HardwareSimulator.sh HardwareSimulator
 $ chmod +x HardwareSimulator
 $ HardwareSimulator Usage of Software Click and load .hdl file. Click and load .tst file. Run script
  • 9. 3Introduction This chapter aims to make ALU.
 
 All calculation on Computer executes by ALU.
 
 The first section gives a brief Back-ground on 
 how binary codes and Boolean arithmetic can be used.
 
 The Specification section describes a succession of
 adder chips. 9
  • 10. 3Usage of Simulator 10 Environmental construction Download
 http://www.nand2tetris.org/software/mac_guide.html
 Setup
 $ cd /usr/local/bin
 $ ln -s ~/nand2tetris/tools/HardwareSimulator.sh HardwareSimulator
 $ chmod +x HardwareSimulator
 $ HardwareSimulator Usage of Software Click and load .hdl file. Click and load .tst file. Run script
  • 11. 3Boolean Arithmetic 11 Binary Numbers Unlike the decimal system, which is founded on base 10, 
 the bi-nary system is founded on base. Binary Addition A pair of binary numbers can be added digit by digit from right to
 left, the same method used in decimal addition.
  • 12. 3Boolean Arithmetic 12 Signed Binary Numbers The method used by almost all com-puters is called the
 2’s complementmethod, also known asradix complement. 
 How to make 2’s complement 0101 1010 1011 Reverse bit order 1’s comlementmethod add 1 2’s comlementmethod
  • 13. 3Adders 13 half adder This is designed to add two bits
 sum = LSB of a + b, 
 carry = MSB of a + b full adder This is designed to add three bits
 sum = LSB of a + b + c, 
 carry = MSB of a + b + c adder Designed to add two n-bit numbers
 out = a + b
  • 14. 3ALU 14 Arithmetic Logic Unit ALU is component of PC. This executes boolean logic and arithmetic.
 Previous gate is hold for any computer. This section describes an ALU which is uniq one in this text.