Closed MoSonLee closed 2 years ago
e.g., perf stat -r 10... ( 10번 실행해줌)
프로세서를 논리회로 관점에서 보면
스위치 open = 0( 열려있다 = 불이 꺼져 있다)
스위치 close = 1(닫혀있다 = 불이 켜져 있다)
And: 둘 다 close여야 1(불이 켜짐)
Or: 둘 중 하나만 close여도 불이 켜짐
현재 입력만이 출력에 영향을 주는 것
Representations
메모리가 추가되어 출력이 입력뿐만 아니라 이전 값에도 영향을 받을 때
산술 연산, 비트 확장.. 등등 연산
Identity law : A + 0 = A, A*1 =A
Zero and One laws : A + 1 =1, A*0 = 0
Inverse laws: A + A^ = 1, A * A^ = 0
Commutative laws : A + B = B+A, A B = B A
Associative laws : A + (B + C) = ( A + B) + C, A (B C) = (AB) C
Distributive laws : A (B+C) = AB + AC, A+(BC) = (A+B)(A+C)
DeMorgans's laws : (A+B)^ = A^ B^, (AB)^ = A^ + B^
프로세서논리회로 관점에 나뉘는데
Run- time Variations
e.g., perf stat -r 10... ( 10번 실행해줌)
Profiling
프로세서를 논리회로 관점에서 보면
Switches
스위치 open = 0( 열려있다 = 불이 꺼져 있다)
스위치 close = 1(닫혀있다 = 불이 켜져 있다)
And: 둘 다 close여야 1(불이 켜짐)
Or: 둘 중 하나만 close여도 불이 켜짐
Combinational logic
현재 입력만이 출력에 영향을 주는 것
Representations
Sequential logic
메모리가 추가되어 출력이 입력뿐만 아니라 이전 값에도 영향을 받을 때
ALU( Arithmetic Logic Unit)
산술 연산, 비트 확장.. 등등 연산
Laws of Boolean Algebra
Identity law : A + 0 = A, A*1 =A
Zero and One laws : A + 1 =1, A*0 = 0
Inverse laws: A + A^ = 1, A * A^ = 0
Commutative laws : A + B = B+A, A B = B A
Associative laws : A + (B + C) = ( A + B) + C, A (B C) = (AB) C
Distributive laws : A (B+C) = AB + AC, A+(BC) = (A+B)(A+C)
DeMorgans's laws : (A+B)^ = A^ B^, (AB)^ = A^ + B^