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

What's hot

Unit2 input output
Unit2 input outputUnit2 input output
Unit2 input output
deepak kumbhar
 
Lesson 9. Pattern 1. Magic numbers
Lesson 9. Pattern 1. Magic numbersLesson 9. Pattern 1. Magic numbers
Lesson 9. Pattern 1. Magic numbers
PVS-Studio
 
100 c interview questions answers
100 c interview questions answers100 c interview questions answers
100 c interview questions answersSareen Kumar
 
Pointers
 Pointers Pointers
See through C
See through CSee through C
See through C
Tushar B Kute
 
05. Conditional Statements
05. Conditional Statements05. Conditional Statements
05. Conditional Statements
Intro C# Book
 
Computer Science Assignment Help
 Computer Science Assignment Help  Computer Science Assignment Help
Computer Science Assignment Help
Programming Homework Help
 
04. Console Input Output
04. Console Input Output 04. Console Input Output
04. Console Input Output
Intro C# Book
 
Programming python quick intro for schools
Programming python quick intro for schoolsProgramming python quick intro for schools
Programming python quick intro for schools
Dan Bowen
 
Multidimensional arrays in C++
Multidimensional arrays in C++Multidimensional arrays in C++
Multidimensional arrays in C++
Ilio Catallo
 
Arrays in C++
Arrays in C++Arrays in C++
Arrays in C++
Ilio Catallo
 
02. Primitive Data Types and Variables
02. Primitive Data Types and Variables02. Primitive Data Types and Variables
02. Primitive Data Types and Variables
Intro C# Book
 
Operators and Control Statements in Python
Operators and Control Statements in PythonOperators and Control Statements in Python
Operators and Control Statements in Python
RajeswariA8
 
Embedded C - Lecture 2
Embedded C - Lecture 2Embedded C - Lecture 2
Embedded C - Lecture 2
Mohamed Abdallah
 
Managing console input
Managing console inputManaging console input
Managing console input
rajshreemuthiah
 
Erlang And ActorDB
Erlang And ActorDB Erlang And ActorDB
Erlang And ActorDB
Ino Murko
 

What's hot (20)

Unit2 input output
Unit2 input outputUnit2 input output
Unit2 input output
 
Lesson 9. Pattern 1. Magic numbers
Lesson 9. Pattern 1. Magic numbersLesson 9. Pattern 1. Magic numbers
Lesson 9. Pattern 1. Magic numbers
 
100 c interview questions answers
100 c interview questions answers100 c interview questions answers
100 c interview questions answers
 
Pointers
 Pointers Pointers
Pointers
 
See through C
See through CSee through C
See through C
 
05. Conditional Statements
05. Conditional Statements05. Conditional Statements
05. Conditional Statements
 
Computer Science Assignment Help
 Computer Science Assignment Help  Computer Science Assignment Help
Computer Science Assignment Help
 
14 arrays
14 arrays14 arrays
14 arrays
 
PSI 3 Integration
PSI 3 IntegrationPSI 3 Integration
PSI 3 Integration
 
04. Console Input Output
04. Console Input Output 04. Console Input Output
04. Console Input Output
 
Programming python quick intro for schools
Programming python quick intro for schoolsProgramming python quick intro for schools
Programming python quick intro for schools
 
Multidimensional arrays in C++
Multidimensional arrays in C++Multidimensional arrays in C++
Multidimensional arrays in C++
 
Arrays in C++
Arrays in C++Arrays in C++
Arrays in C++
 
02. Primitive Data Types and Variables
02. Primitive Data Types and Variables02. Primitive Data Types and Variables
02. Primitive Data Types and Variables
 
1
11
1
 
Operators and Control Statements in Python
Operators and Control Statements in PythonOperators and Control Statements in Python
Operators and Control Statements in Python
 
Manipulators
ManipulatorsManipulators
Manipulators
 
Embedded C - Lecture 2
Embedded C - Lecture 2Embedded C - Lecture 2
Embedded C - Lecture 2
 
Managing console input
Managing console inputManaging console input
Managing console input
 
Erlang And ActorDB
Erlang And ActorDB Erlang And ActorDB
Erlang And ActorDB
 

Viewers also liked

How to Upload File in SFC.
How to Upload File in SFC.How to Upload File in SFC.
How to Upload File in SFC.
Shuya Osaki
 
RG_LT大会_SFCで車通学をする
RG_LT大会_SFCで車通学をするRG_LT大会_SFCで車通学をする
RG_LT大会_SFCで車通学をする
Shuya Osaki
 
RG講義_SSH
RG講義_SSHRG講義_SSH
RG講義_SSH
Shuya Osaki
 
Primer to Browser Netwroking
Primer to Browser NetwrokingPrimer to Browser Netwroking
Primer to Browser Netwroking
Shuya Osaki
 
Introduction to QUIC
Introduction to QUICIntroduction to QUIC
Introduction to QUIC
Shuya Osaki
 
自動運転の概要
自動運転の概要自動運転の概要
自動運転の概要
Shuya Osaki
 
Binary Arithmetic
Binary ArithmeticBinary Arithmetic
Binary Arithmeticgavhays
 
TEP 2014 RESUMEN DE ESTUDIO EN ESPAÑOL ESC CARDIO
TEP 2014 RESUMEN DE ESTUDIO EN ESPAÑOL ESC CARDIO TEP 2014 RESUMEN DE ESTUDIO EN ESPAÑOL ESC CARDIO
TEP 2014 RESUMEN DE ESTUDIO EN ESPAÑOL ESC CARDIO
Mauricio Alejandro Usme Arango
 
JARenetiFullCV21December2015
JARenetiFullCV21December2015JARenetiFullCV21December2015
JARenetiFullCV21December2015Jenny Reneti
 
الجمعية العربية للروبوت
الجمعية العربية للروبوتالجمعية العربية للروبوت
الجمعية العربية للروبوت
Ismail Y. Hasan
 
Козяр Валентина
Козяр ВалентинаКозяр Валентина
Козяр Валентина
vanchikia
 
Epidemologi
EpidemologiEpidemologi
Epidemologi
Azis Maulana Yusup
 
GST updates by CA. Vinay Bhushan
GST updates by CA. Vinay BhushanGST updates by CA. Vinay Bhushan
GST updates by CA. Vinay Bhushan
Vinay Bhushan
 

Viewers also liked (14)

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

Similar to Nand2 tetris 1and2

CSCI 2121- Computer Organization and Assembly Language Labor.docx
CSCI 2121- Computer Organization and Assembly Language Labor.docxCSCI 2121- Computer Organization and Assembly Language Labor.docx
CSCI 2121- Computer Organization and Assembly Language Labor.docx
annettsparrow
 
Analyzing the Blender project with PVS-Studio
Analyzing the Blender project with PVS-StudioAnalyzing the Blender project with PVS-Studio
Analyzing the Blender project with PVS-Studio
PVS-Studio
 
Digital Logic & Design (DLD) presentation
Digital Logic & Design (DLD) presentationDigital Logic & Design (DLD) presentation
Digital Logic & Design (DLD) presentation
foyez ahammad
 
Implementing of classical synchronization problem by using semaphores
Implementing of classical synchronization problem by using semaphoresImplementing of classical synchronization problem by using semaphores
Implementing of classical synchronization problem by using semaphores
Gowtham Reddy
 
Porting to Python 3
Porting to Python 3Porting to Python 3
Porting to Python 3
Lennart Regebro
 
Fpga 07-port-rules-gate-delay-data-flow-carry-look-ahead-adder
Fpga 07-port-rules-gate-delay-data-flow-carry-look-ahead-adderFpga 07-port-rules-gate-delay-data-flow-carry-look-ahead-adder
Fpga 07-port-rules-gate-delay-data-flow-carry-look-ahead-adderMalik Tauqir Hasan
 
EC6612 VLSI Design Lab Manual
EC6612 VLSI Design Lab ManualEC6612 VLSI Design Lab Manual
EC6612 VLSI Design Lab Manual
tamil arasan
 
Lab 2-Simple Combinational Logic
Lab 2-Simple Combinational LogicLab 2-Simple Combinational Logic
Lab 2-Simple Combinational Logic
Katrina Little
 
Ch7 OS
Ch7 OSCh7 OS
Ch7 OSC.U
 
C++ Loops General Discussion of Loops A loop is a.docx
C++ Loops  General Discussion of Loops A loop is a.docxC++ Loops  General Discussion of Loops A loop is a.docx
C++ Loops General Discussion of Loops A loop is a.docx
humphrieskalyn
 
Micro c lab2(led patterns)
Micro c lab2(led patterns)Micro c lab2(led patterns)
Micro c lab2(led patterns)
Mashood
 
vlsi design using verilog presentaion 1
vlsi design using verilog   presentaion 1vlsi design using verilog   presentaion 1
vlsi design using verilog presentaion 1
MANDHASAIGOUD1
 
Accord.Net: Looking for a Bug that Could Help Machines Conquer Humankind
Accord.Net: Looking for a Bug that Could Help Machines Conquer HumankindAccord.Net: Looking for a Bug that Could Help Machines Conquer Humankind
Accord.Net: Looking for a Bug that Could Help Machines Conquer Humankind
PVS-Studio
 
Explain Half Adder and Full Adder with Truth Table
Explain Half Adder and Full Adder with Truth TableExplain Half Adder and Full Adder with Truth Table
Explain Half Adder and Full Adder with Truth Table
elprocus
 
additional.pptx
additional.pptxadditional.pptx
additional.pptx
Yuvraj994432
 
Datapath Design of Computer Architecture
Datapath Design of Computer ArchitectureDatapath Design of Computer Architecture
Datapath Design of Computer Architecture
Abu Zaman
 
Operating System
Operating SystemOperating System
Operating System
Subhasis Dash
 
Java căn bản - Chapter6
Java căn bản - Chapter6Java căn bản - Chapter6
Java căn bản - Chapter6Vince Vo
 

Similar to Nand2 tetris 1and2 (20)

CSCI 2121- Computer Organization and Assembly Language Labor.docx
CSCI 2121- Computer Organization and Assembly Language Labor.docxCSCI 2121- Computer Organization and Assembly Language Labor.docx
CSCI 2121- Computer Organization and Assembly Language Labor.docx
 
Analyzing the Blender project with PVS-Studio
Analyzing the Blender project with PVS-StudioAnalyzing the Blender project with PVS-Studio
Analyzing the Blender project with PVS-Studio
 
Digital Logic & Design (DLD) presentation
Digital Logic & Design (DLD) presentationDigital Logic & Design (DLD) presentation
Digital Logic & Design (DLD) presentation
 
Implementing of classical synchronization problem by using semaphores
Implementing of classical synchronization problem by using semaphoresImplementing of classical synchronization problem by using semaphores
Implementing of classical synchronization problem by using semaphores
 
Porting to Python 3
Porting to Python 3Porting to Python 3
Porting to Python 3
 
Fpga 07-port-rules-gate-delay-data-flow-carry-look-ahead-adder
Fpga 07-port-rules-gate-delay-data-flow-carry-look-ahead-adderFpga 07-port-rules-gate-delay-data-flow-carry-look-ahead-adder
Fpga 07-port-rules-gate-delay-data-flow-carry-look-ahead-adder
 
EC6612 VLSI Design Lab Manual
EC6612 VLSI Design Lab ManualEC6612 VLSI Design Lab Manual
EC6612 VLSI Design Lab Manual
 
Lab 2-Simple Combinational Logic
Lab 2-Simple Combinational LogicLab 2-Simple Combinational Logic
Lab 2-Simple Combinational Logic
 
Ch7 OS
Ch7 OSCh7 OS
Ch7 OS
 
C++ Loops General Discussion of Loops A loop is a.docx
C++ Loops  General Discussion of Loops A loop is a.docxC++ Loops  General Discussion of Loops A loop is a.docx
C++ Loops General Discussion of Loops A loop is a.docx
 
Micro c lab2(led patterns)
Micro c lab2(led patterns)Micro c lab2(led patterns)
Micro c lab2(led patterns)
 
vlsi design using verilog presentaion 1
vlsi design using verilog   presentaion 1vlsi design using verilog   presentaion 1
vlsi design using verilog presentaion 1
 
OS_Ch7
OS_Ch7OS_Ch7
OS_Ch7
 
OSCh7
OSCh7OSCh7
OSCh7
 
Accord.Net: Looking for a Bug that Could Help Machines Conquer Humankind
Accord.Net: Looking for a Bug that Could Help Machines Conquer HumankindAccord.Net: Looking for a Bug that Could Help Machines Conquer Humankind
Accord.Net: Looking for a Bug that Could Help Machines Conquer Humankind
 
Explain Half Adder and Full Adder with Truth Table
Explain Half Adder and Full Adder with Truth TableExplain Half Adder and Full Adder with Truth Table
Explain Half Adder and Full Adder with Truth Table
 
additional.pptx
additional.pptxadditional.pptx
additional.pptx
 
Datapath Design of Computer Architecture
Datapath Design of Computer ArchitectureDatapath Design of Computer Architecture
Datapath Design of Computer Architecture
 
Operating System
Operating SystemOperating System
Operating System
 
Java căn bản - Chapter6
Java căn bản - Chapter6Java căn bản - Chapter6
Java căn bản - Chapter6
 

More from Shuya Osaki

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

More from Shuya Osaki (9)

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

Recently uploaded

Schematic Diagram MSI MS-7309 - REV 1.0 PDF .pdf
Schematic Diagram MSI MS-7309 - REV 1.0 PDF .pdfSchematic Diagram MSI MS-7309 - REV 1.0 PDF .pdf
Schematic Diagram MSI MS-7309 - REV 1.0 PDF .pdf
nikoloco007
 
Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR - Slides Onl...
Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR - Slides Onl...Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR - Slides Onl...
Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR - Slides Onl...
Peter Gallagher
 
欧洲杯冠军-欧洲杯冠军网站-欧洲杯冠军|【​网址​🎉ac123.net🎉​】领先全球的买球投注平台
欧洲杯冠军-欧洲杯冠军网站-欧洲杯冠军|【​网址​🎉ac123.net🎉​】领先全球的买球投注平台欧洲杯冠军-欧洲杯冠军网站-欧洲杯冠军|【​网址​🎉ac123.net🎉​】领先全球的买球投注平台
欧洲杯冠军-欧洲杯冠军网站-欧洲杯冠军|【​网址​🎉ac123.net🎉​】领先全球的买球投注平台
andreassenrolf537
 
天博体育下载-可靠的网络天博体育下载-网络天博体育下载|【​网址​🎉ac123.net🎉​】
天博体育下载-可靠的网络天博体育下载-网络天博体育下载|【​网址​🎉ac123.net🎉​】天博体育下载-可靠的网络天博体育下载-网络天博体育下载|【​网址​🎉ac123.net🎉​】
天博体育下载-可靠的网络天博体育下载-网络天博体育下载|【​网址​🎉ac123.net🎉​】
arcosarturo900
 
LORRAINE ANDREI_LEQUIGAN_GOOGLE CALENDAR
LORRAINE ANDREI_LEQUIGAN_GOOGLE CALENDARLORRAINE ANDREI_LEQUIGAN_GOOGLE CALENDAR
LORRAINE ANDREI_LEQUIGAN_GOOGLE CALENDAR
lorraineandreiamcidl
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证如何办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证如何办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证如何办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证如何办理
aozcue
 
一比一原版(UCSB毕业证)圣塔芭芭拉社区大学毕业证如何办理
一比一原版(UCSB毕业证)圣塔芭芭拉社区大学毕业证如何办理一比一原版(UCSB毕业证)圣塔芭芭拉社区大学毕业证如何办理
一比一原版(UCSB毕业证)圣塔芭芭拉社区大学毕业证如何办理
aozcue
 
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证如何办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证如何办理一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证如何办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证如何办理
peuce
 

Recently uploaded (8)

Schematic Diagram MSI MS-7309 - REV 1.0 PDF .pdf
Schematic Diagram MSI MS-7309 - REV 1.0 PDF .pdfSchematic Diagram MSI MS-7309 - REV 1.0 PDF .pdf
Schematic Diagram MSI MS-7309 - REV 1.0 PDF .pdf
 
Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR - Slides Onl...
Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR - Slides Onl...Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR - Slides Onl...
Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR - Slides Onl...
 
欧洲杯冠军-欧洲杯冠军网站-欧洲杯冠军|【​网址​🎉ac123.net🎉​】领先全球的买球投注平台
欧洲杯冠军-欧洲杯冠军网站-欧洲杯冠军|【​网址​🎉ac123.net🎉​】领先全球的买球投注平台欧洲杯冠军-欧洲杯冠军网站-欧洲杯冠军|【​网址​🎉ac123.net🎉​】领先全球的买球投注平台
欧洲杯冠军-欧洲杯冠军网站-欧洲杯冠军|【​网址​🎉ac123.net🎉​】领先全球的买球投注平台
 
天博体育下载-可靠的网络天博体育下载-网络天博体育下载|【​网址​🎉ac123.net🎉​】
天博体育下载-可靠的网络天博体育下载-网络天博体育下载|【​网址​🎉ac123.net🎉​】天博体育下载-可靠的网络天博体育下载-网络天博体育下载|【​网址​🎉ac123.net🎉​】
天博体育下载-可靠的网络天博体育下载-网络天博体育下载|【​网址​🎉ac123.net🎉​】
 
LORRAINE ANDREI_LEQUIGAN_GOOGLE CALENDAR
LORRAINE ANDREI_LEQUIGAN_GOOGLE CALENDARLORRAINE ANDREI_LEQUIGAN_GOOGLE CALENDAR
LORRAINE ANDREI_LEQUIGAN_GOOGLE CALENDAR
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证如何办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证如何办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证如何办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证如何办理
 
一比一原版(UCSB毕业证)圣塔芭芭拉社区大学毕业证如何办理
一比一原版(UCSB毕业证)圣塔芭芭拉社区大学毕业证如何办理一比一原版(UCSB毕业证)圣塔芭芭拉社区大学毕业证如何办理
一比一原版(UCSB毕业证)圣塔芭芭拉社区大学毕业证如何办理
 
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证如何办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证如何办理一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证如何办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证如何办理
 

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.